Use a ColorStateList as your background. This is what the default implementation does as I recall. You could hunt around and find the state list for ListView and use that for a starting point.
http://developer.android.com/guide/topics/resources/color-list-resource.html or more generally a StateListDrawable http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList On Dec 28, 3:48 pm, dashman <erjdri...@gmail.com> wrote: > I've got an ExpandableListActivity. > > If I change the background color of a row > programatically - when the user selects > the row - it's not hi-lighted - i.e. no visual > feedback. > > if i don't set the background color - the default > yellow hi-light appears. > > how can i fix this. -- 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