Friday, October 14, 2011

Re: [android-developers] sorting the listview

@Vani,

It is not clear that what data you are adapting to the ListView. Anyway, use some standard algorithms to sort yourData by date just before a line something like this in your code appears.

yourListView.this.getListView().setAdapter(new yourAdapter(yourListView.this, R.layout.your_row, yourData));

Hope that helps.

--
Subin Sebastian
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subin
http://www.facebook.com/subinsebastien

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate