ListView works just fine. You apparently changed the color of the
background or of the ListView itself, which means you need to change
the cacheColorHint (use android:cacheColorHint="yourcolor" or
setCacheColorHint(yourcolor), where yourcolor can be #00000000 or 0 to
disable the optimization.)

If you don't get a highlight when you press an item, then you did
something wrong in your code, and without looking at it, I can't help
you more. But there is *no reason* to hack anything to make ListView
work normally.

On Thu, Oct 23, 2008 at 7:43 PM, michael <[EMAIL PROTECTED]> wrote:
>
> Well, I for one don't see any alternative but to do this.  Not only
> does my plain and simple ListView NOT give any visible indicator when
> an item is tapped (unless I build in my own onTouch handler), but in
> fact, when I touch and drag, every list item turns black.  I've
> disabled every element of my code that I could, and this behavior
> persists (including disabling all touch and click handlers, all
> selection drawables, etc...).  If the basic ListView isn't working as
> is, is there any alternative but to try and override every single
> inherent list behavior to get it to work?
>
> Michael
>
> On Oct 7, 10:57 am, "Romain Guy" <[EMAIL PROTECTED]> wrote:
>> No :) Also, do *NOT* try to change the behavior of the touch mode.
>> This is how the UI framework is designed and trying to work around it
>> will only cause more issues since the framework tries to enforce it.
>> This is also how all standard Android applications behave and you
>> should remain consistent with this behavior.
>>
>> On Tue, Oct 7, 2008 at 10:40 AM, skink <[EMAIL PROTECTED]> wrote:
>>
>> > hi,
>>
>> > i know that normally when in touch mode ListView's selector is not
>> > focused/highlighted.
>>
>> > but... isn't there any way (even dirty) to have selector focused in
>> > touch mode?
>>
>> > skink
>>
>> --
>> Romain Guywww.curious-creature.org
>
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to