I want to change the hyperlink color of TextView

Asked 2 years ago, Updated 2 years ago, 92 views

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

I'm using hyperlinks like this. The basic color is blue, right? I want to change it to a different color, what should I do?

textview android hyperlink

2022-09-21 15:37

1 Answers

Put android:textColorLink="#Rgb value you want" in the text view properties. You can put the desired rgb value in #112233. 11 is the Red value 22 is the Green value 33 is the Red is the Blue value.


2022-09-21 15:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.