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...>
On Thu, Aug 9, 2012 at 2:48 PM, Wolfgang <wolfgangemm...@yahoo.com> wrote:
> 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...>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
On Friday, 10 August 2012 00:18:41 UTC+5:30, Wolfgang wrote:
> 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: