On Wed, Oct 27, 2010 at 4:41 AM, Mutturaj <[email protected]> wrote:
> I want to disable few items in List View and i am using Simple Adapter
> to do that.
> I am not getting how to disable the items.
> Can any one help me to come out of this???

Step #1: Extend SimpleAdapter to make AjjSimpleAdapter

Step #2: In AjjSimpleAdapter, override areAllItemsEnabled() to return false

Step #3: In AjjSimpleAdapter, override isItemEnabled() to return false
for whichever positions should be disabled.

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

Android 2.2 Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to