mike5v / viewmore-textview

A simple library for hide and show text with animation.
Apache License 2.0
89 stars 13 forks source link

Can't set Linkify #3

Open bhavin1994 opened 4 years ago

bhavin1994 commented 4 years ago

How to make textview clickable if there is any link in string?

I want to show link and it's clickable also

Linkify.addLinks(viewMore, Linkify.WEB_URLS) Linkify.addLinks(viewMore, Linkify.PHONE_NUMBERS) Linkify.addLinks(viewMore, Linkify.ALL)

mehdisamavat commented 1 year ago

@bhavin1994 Hi add .toString to isAllTextVisible

like this: private fun String.isAllTextVisible(): Boolean = this == text.toString()

and add these lines to the XML code: android:autoLink="web" android:clickable="true" android:focusable="true"