I have link https://google.com . i want that link just change to string "google"
showed in the TextView is "google"
but actually in google have link https://google.com . and possible to clicked
i have xml :
<TextView
android:id="@+id/social"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="30dp"
android:layout_marginTop="350dp"
android:autoLink="web"
android:linksClickable="true"
android:text="in here social"/>
i have java class :
TextView social = (TextView) findViewById(R.id.social);
String text = "<a href='https://google.com'> Google </a>";
social.setText(Html.fromHtml(text));