I am making a registration form for users and I have the following message at the bottom of the screen:
strings.xml
<string name="message_activity_register">By clicking Register, you agree to our <a href="file:///android_asset/terms_and_conditions.html">Terms and Conditions</a> and that you have read our <a href="file:///android_asset/open_source_license.html">Privacy Policy</a>.</string>
layout.xml
<TextView
android:id="@+id/messageTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:autoLink="web"
android:layout_marginTop="16dp"
android:text="@string/message_activity_register"
android:textAlignment="center"
android:textColor="@android:color/black"
android:textSize="12sp" />
At least it is underlined but, I can not click, any idea of the cause ?. I want to be able to click to send them to a WebView.
I've also tried this and it does not work either:
messageTextView.setMovementMethod(LinkMovementMethod.getInstance());