You can use ColorStateList to set the Button background on focus. The post below has a nice example on using it: http://groups.google.com/group/android-developers/msg/0714e077e25d63a6
2008/9/24 Shaun <[EMAIL PROTECTED]> > > > I have some buttons without backgrounds ( produced either by > setBackgroundDrawable(null) or setBackgroundColor(0x00000000) ) -- > that part works fine. However, when the button does not have a > background it never gets the orange focus highlight and hence is not > navigable via trackball. It does actually get focus since my focus > callback is invoked. > > My question is: is there some method I can use to cause the button to > highlight when it's focused or alternatively what's the > android.R.drawable resource for the orange background highlighting (I > can do the focus-handling myself with that). > > Thanks. > > SPT > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

