This is performed by the adapter: http://d.android.com/reference/android/widget/ListAdapter.html#isEnabled(int)
On Fri, Dec 11, 2009 at 4:50 PM, rexowner <[email protected]> wrote: > I also want to do this, and after hunting around for half a day, have > not found a way to do it, > and am moving on to some other priorities. > > I also would be very interested in this useful behavior. > > Sorry I can't be of more help, but if you find a way, please post. > > Thanks! > > On Dec 10, 4:36 pm, Keith Wiley <[email protected]> wrote: >> How do I disable (gray out, make unselectable) an item in a Spinner? >> I tried calling View.disable() on the associated child of the Spinner, >> but it remains black text (not gray) and selectable. >> >> There must be some way of showing but leaving unselectable certain >> items in a spinner, right? This is a standard "menu" behavior that >> goes back decades. Android permits it, right? I want the user to see >> that certain options are possible under certain circumstances even if >> they are impossible at the immediate moment...exactly the way items in >> the main Android menu-button invoked menu can be visible but >> unselectable. >> >> Thanks a lot. I'm sure I'm just missing something obvious here. >> >> Cheers! > > -- > 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 > -- 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

