Jeff, are you sure the simple example from the first post has anything to do with focus? All I want to do is to set the background of a TextView to the android.R.drawable.list_selector_background which should render in 'orange mode' as opposed to setting background to a single color (which works) or creating a custom drawable (which sounds silly in my case).
On May 6, 9:49 pm, Jeff Sharkey <[email protected]> wrote: > > When user selects a TextView it 'slips' (which is indicated by > > background color change) and the user is expected to select(tap) > > another view then. Not every tap should lead to the first view losing > > 'focus'. That's the motivation behind setting background drawable > > programmatically. > > Ouch, this is actually more of a touch mode question. When the device > goes into touch mode, there isn't a visible concept of focus in > ListViews (when you scroll the list, any highlighted item reverts > back). > > You might be looking for android:focusableInTouchMode, but this isn't > used many places on the platform. > > -- > Jeff Sharkey > [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

