0

Is it possible to add a website link in layout XML file of an Android app without touching Java file? Someone already posted this code but I don't know how to use it in the XML file.

<TextView android:textSize="18sp" android:autoLink="web" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="16dp" android:text="http://www.example.com" tools:ignore="HardcodedText" />
jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Anti Atlas Dev
  • 416
  • 1
  • 4
  • 15
  • 1
    Check this out https://stackoverflow.com/questions/2734270/how-to-make-links-in-a-textview-clickable – Zain Mar 10 '23 at 23:41

0 Answers0