Android Textview Links Don't Highlight When Clicked
I have an android TextView which has a link in it. The link looks fine and performs the correct action when the user taps on it, but while the user's finger is down the link doesn'
Solution 1:
You could create an item selector with diff states, for example...
<?xml version="1.0" encoding="utf-8"?><selectorxmlns:android="http://schemas.android.com/apk/res/android"><itemandroid:state_pressed="true"android:color="#FEFEFE" /><!-- highlight --><itemandroid:state_focused="true"android:color="#000000" /><itemandroid:color="#FFFFFF" /><!-- default --></selector>
And then in your layout...
<TextView...android:textColor="@color/above_selector"/>
Post a Comment for "Android Textview Links Don't Highlight When Clicked"