To enable Linkify
behavior, I do this in code:
textView.setMovementMethod(LinkMovementMethod.getInstance());
Is there a way to set this in the layout xml
for the textview
?
Use the "autoLink" property in the XML layout
No, there is not. If you are using setMovementMethod(LinkMovementMethod.getInstance());
in so many places in your app that you want to avoid it, you should consider creating and using a custom class extending TextView
which executes that method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With