Pregunta

In Android, I'm setting the android:autoLink property to all for my TextView. Is it possible to change the color for any links that are found? (I'm not in love with the default blue.)

¿Fue útil?

Solución

Try for TextView in the XML:

android:textColorLink="@android:color/someColor"

and in Java code

 textview.setLinkTextColor(Color.RED);

Otros consejos

i think it works

   android:textColorLink="/*color*/"
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top