Re: [android-developers] sorting the listview

2011-10-17 Thread Subin Sebastian
Hi Vani, Hope you will probably be using an array list in your application. I cannot specifically answer you unless I see the code. Anyway, if you are using ArrayList type implementation, sort the list using a getter method in YourDataType class. Then you can adapt the data into the list view. You

Re: [android-developers] sorting the listview

2011-10-17 Thread vani reddy
Hi Subin, I am using custom listview , it contains title, location and date format in the form of Friday, Aug 12, 2011.,Can u tell me how to sort the list by date ? On Sat, Oct 15, 2011 at 8:18 AM, Subin Sebastian wrote: > @Vani, > > It is not clear that what data you are adapting to the ListVie

Re: [android-developers] sorting the listview

2011-10-14 Thread Subin Sebastian
@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, yourD

Re: [android-developers] sorting the listview

2011-10-14 Thread Mark Murphy
On Fri, Oct 14, 2011 at 7:52 AM, vani reddy wrote: > How to sort the listview by date? Sort the data you give to your adapter by date. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Code

[android-developers] sorting the listview

2011-10-14 Thread vani reddy
Hi friends , How to sort the listview by date? My date format is Friday, Aug 12, 2011. I am able to sort the title but not the date. Please reply. Thanks. -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post