Try disabling the clickable and longClickable properties of your textView - this should disable the dimming effect you described.
android:clickable="false" android:longClickable="false" if you still want your links clickable, enable this by adding the property android:linksClickable="true" On 29 Mai, 14:37, mscwd01 <[email protected]> wrote: > Please, this is getting so frustrating now. I have tried setting > theTextViewhighlight 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 thetextViewremains on top. > > If I apply a normal style to theTextViewit 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 theTextView. Can anyone explain why this would allow theTextView > > 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 aTextViewwhich 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 theTextViewfont > > > 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 theTextViewgets 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" theTextViewso 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 -~----------~----~----~----~------~----~------~--~---

