Thanks for your reply, What do you mean by disable the items in my adapter?
On Mar 4, 4:27 pm, Romain Guy <[email protected]> wrote: > That's not the way to do it. Simply use an OnItemClickListener on your > ListView and modify your adapter to disable the items you don't want > clickable. Do NOT attempt to change the properties of the children in > this way. > > On Wed, Mar 4, 2009 at 3:06 AM, [email protected] > > > > <[email protected]> wrote: > > > Hi, > > > I'm in a situation where I have a ListView in which I want some of the > > entries to be clickable and some not to be. Setting > > listView.setClickable(false) disables clicks on everything even if > > textView.setClickable(true) is set when the child view is being added > > in my customised ArrayAdapter. Conversely, leaving clickableness of a > > ListView at the default of true, textView.setClickable(false) doesn't > > work. > > > I've tried: > > > textView.setClickable(false); > > textView.setFocusable(false); > > textView.setFocusableInTouchMode(false); > > textView.setLinksClickable(false); > > textView.setLongClickable(false); > > parent.setClickable(false); > > parent.setFocusable(false); > > parent.setFocusableInTouchMode(false); > > parent.setLongClickable(false); > > > but none of them have any effect. > > > The issue at > >http://code.google.com/p/android/issues/detail?id=625&can=1&q=clickab... > > notes that clicks don't go to the child view in a ListView. This being > > the case, is it even possible to disable clicks for an individual > > element which isn't a header? > > > Thanks =]. > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

