Please, this is getting so frustrating now. I have tried setting the
TextView highlight colour to transparent but that doesn't work. If I
set the ListView selector to draw on top, it covers the ImageView I
have on the row but the textView remains on top.

If I apply a normal style to the TextView it doesn't highlight when
tapped but as soon as I apply a selector drawable to it, it causes
thos highlight on tap issue.

This is my last plea for help ;)

On May 29, 1:14 am, mscwd01 <[email protected]> wrote:
> It seems the problem only occurs when the selector drawable is applied
> to the TextView. Can anyone explain why this would allow the TextView
> to be selected/highlighted when tapped?
>
> On May 28, 11:00 am,mscwd01<[email protected]> wrote:
>
> > Hey,
>
> > I have a ListView where each row is a layout inflated from an xml
> > file. Within each layout I have a TextView which is defined by the
> > following:
> > <TextView  style="@style/MenuItem" android:paddingLeft="10sp"
> > android:textColor="@drawable/menu_item" />
>
> > The style attribute sets the font size and style, the textColor
> > attribute is a selector drawable which changes the TextView font
> > colour depending on whether it is currently selected or not. This is
> > defined by the following:
> > <selector xmlns:android="http://schemas.android.com/apk/res/android";>
> >     <item android:state_selected="true" android:color="#FFFFFF" />
> >     <item android:state_pressed="true" android:color="#FFFFFF" />
> >     <item android:color="#000000" />
> > </selector>
>
> > However, when I use this selector drawable to set the font colour it
> > results in a weird issue where the TextView gets highlighted when the
> > row is tapped, or tapped and dragged. See this screenshot for a better
> > idea:
>
> >http://i39.tinypic.com/v4q90n.jpg
>
> > Is there anyway I can "disable" the TextView so it cannot be
> > highlighted when tapped?
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
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