Thanks Mark, I'll try it out.....

Cheers!

On Apr 18, 6:20 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> 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 subclass to return false
>
> Step #3: Override isItemEnabled() in that subclass to return true for
> the enabled positions and false for the disabled positions
>
> Note that disabled rows do not get dividers around them. Dividers only
> separate a pair of enabled rows.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to