The problem is probably that your list item is opaque. The selector is, by default, drawn *behind* the list item. either use a different selector, or draw it on top (which requires a different selector anyway since the default one is opaque) or make your list items' background support the selected state.
Also, instead of setting a single solid color, you should use colors that support states. On Mon, Feb 16, 2009 at 6:59 PM, Greg Krimer <gkri...@gmail.com> wrote: > > Hi, can you check out this thread to see if it is the same problem you > are having: > http://groups.google.com/group/android-developers/browse_thread/thread/ccb475c855e8785a/05a180ddac2c702c > > Basically, try setting the text color to an explicit value (as opposed > to a style). > > Also, have a look at: > http://developer.android.com/reference/android/widget/AbsListView.html#setSelector(int) > or its XML equivalent android:listSelector. > > If neither of these help, post your code. > > On Feb 16, 2:46 pm, Selmi <se...@centrum.sk> wrote: >> when i have listview and i use some listadapter provided by android >> api then when you touch item in list it flashes with orange colour and >> then action is processed >> >> if i have my own adapter this flash doesn't happen. instead text color >> changes to black for a moment (and becomes unreadable) is there >> something special i need to do to enable it? >> >> my adapter is actually based on cursoradapter and all it does is that >> it adds onClick handlers to some of controls used in list item layout >> and sets values of some widgets which are not handled by >> simplecursoradapter by default > > > -- Romain Guy Android framework engineer romain...@android.com 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 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 -~----------~----~----~----~------~----~------~--~---