tags:

views:

598

answers:

3

Let's say I have following text in TextView:

Hey there, visit www.example.com

If I set TextView's attribute autoLink="all" www.example.com will be properly detected. However, if I now touch TextView, TextView's text that's not link ('Hey there, visit' part) will go gray. Is there a way to prevent this behavior?

Thanks!

A: 

Tried changing any of these properties of your TextView ?

android:focusable - Boolean that controls whether a view can take focus. 

android:focusableInTouchMode - Boolean that controls whether a view can take focus while in touch mode. 

android:hapticFeedbackEnabled - Boolean that controls whether a view should have haptic feedback enabled for events such as long presses. 

android:clickable - Defines whether this view reacts to click events. 

I guess setting one of these to false would disable the visual feedback on the text elements.

PHP_Jedi
nope... none of them works... :(
kape123
+1  A: 

Adding:

android:textColor="#ffffff"

to TextView element in xml solves problem... it seems that overriding textcolor overrides other color styles related to element... see this question: http://stackoverflow.com/questions/1342410/android-text-view-color-dont-change-when-disabled

kape123
A: 

Guys, looks like a weird bug to me, but i found a solution, use HTML to give the text a shade of white:

text.append(Html.fromHtml("

That's it! With #FFFFFF it blinks, without, not. duh.

Martijn