[android-developers] Disabling records in a List View

2010-04-18 Thread Prathamesh Shetye
I have a list view which is populated via records from the database. Now i have to make some records visible but unavailable for selection, how can i achieve that? here's my code public class SomeClass extends ListActivity { private static ListString products; private

Re: [android-developers] Disabling records in a List View

2010-04-18 Thread Mark Murphy
Prathamesh Shetye wrote: I have a list view which is populated via records from the database. Now i have to make some records visible but unavailable for selection, how can i achieve that? Step #1: Create your own subclass of ArrayAdapter Step #2: Override areAllItemsEnabled() in that