[android-developers] Re: TextView Highlight/Select Issue
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 mscw...@gmail.com 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 mscw...@gmail.com 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,mscwd01mscw...@gmail.com 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=#FF / item android:state_pressed=true android:color=#FF / item android:color=#00 / /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 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 -~--~~~~--~~--~--~---
[android-developers] Re: TextView Highlight/Select Issue
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 mscw...@gmail.com 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,mscwd01mscw...@gmail.com 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=#FF / item android:state_pressed=true android:color=#FF / item android:color=#00 / /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 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 -~--~~~~--~~--~--~---
[android-developers] Re: TextView Highlight/Select Issue
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 mscw...@gmail.com 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=#FF / item android:state_pressed=true android:color=#FF / item android:color=#00 / /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 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 -~--~~~~--~~--~--~---