Monday, 14 July 2014

Using "autoLink" in android make the whole text click able, how to avoid that?



I am making a text view in which i am pro-grammatically setting the support email and the site link of my website, its working fine but the problem is that the whole simple text which is not email or the link is clickable. When i click the screen the colour changes, i want to disable that can anyone please help.


I have tried : 1) clickable = false 2) longclick = false 3) focusable = false


but to no vial, if anyone knows the solution kindly let me know. Thanks a lot.



<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:clickable="false"
android:focusable="false"
android:autoLink="web|email"
android:textAppearance="?android:attr/textAppearanceMedium" />

No comments:

Post a Comment