Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
ListView sorting
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Wolfgang  
View profile  
 More options Aug 9 2012, 2:48 pm
From: Wolfgang <wolfgangemm...@yahoo.com>
Date: Thu, 9 Aug 2012 11:48:41 -0700 (PDT)
Local: Thurs, Aug 9 2012 2:48 pm
Subject: ListView sorting

Hey guys,

I'm using a ListView that displays a list of ChartInfo. ChartInfo is a
class I wrote that contains two strings: name, type; and a boolean:
notification. The ListView is sorting the charts based on name. I would
prefer that it sorts first based on the boolean, notification, and then
sorts by the string, name. Can someone point me to a good resource to
accomplish this or give me some guidance. Here is an example of what I
would like to accomplish:
<https://lh3.googleusercontent.com/-fV_JkTnTw_Q/UCQFm2NfFlI/AAAAAAAAAA...>

<https://lh3.googleusercontent.com/-fV_JkTnTw_Q/UCQFm2NfFlI/AAAAAAAAAA...>
Thanks,
-W


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Murphy  
View profile  
 More options Aug 9 2012, 4:21 pm
From: Mark Murphy <mmur...@commonsware.com>
Date: Thu, 9 Aug 2012 16:21:14 -0400
Local: Thurs, Aug 9 2012 4:21 pm
Subject: Re: [android-developers] ListView sorting

You need to either sort the data before you hand it to the adapter, or
teach the adapter how to do the sorting.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wolfgang  
View profile  
 More options Aug 10 2012, 10:43 am
From: Wolfgang <wolfgangemm...@yahoo.com>
Date: Fri, 10 Aug 2012 07:43:54 -0700 (PDT)
Local: Fri, Aug 10 2012 10:43 am
Subject: Re: [android-developers] ListView sorting

Thanks for the reply. I figured it out. I sorted in the ArrayAdapter.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aparna Ks  
View profile  
 More options Aug 11 2012, 8:15 am
From: Aparna Ks <aparnak...@gmail.com>
Date: Sat, 11 Aug 2012 05:15:15 -0700 (PDT)
Local: Sat, Aug 11 2012 8:15 am
Subject: Re: ListView sorting

i hop tis wil help you
http://www.ezzylearning.com/tutorial.aspx?tid=6816874
http://www.josecgomez.com/2010/05/03/android-putting-custom-objects-i...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »