Search code examples
androidandroid-layout

how to change color of textview hyperlink?


I am using this code for hyperlink:

<TextView 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:id="@+id/hyperlink" 
    android:text="@string/hyperlink"
    android:autoLink="web"/>

By default it is showing blue color, but how do I change color of hyperlink in Android?


Solution

  • Add android:textColorLink="yourcolorhere" to your TextView