saket / Better-Link-Movement-Method

Attempts to improve how clickable links are detected, highlighted and handled in TextView
Apache License 2.0
780 stars 78 forks source link

Recyclerview scrolls automatically #28

Closed sidtact closed 5 years ago

sidtact commented 5 years ago

I am using this lib with Markwon. markwon is parsing html urls and the i am applying Linkify Spans over it. it is working but when i scroll recyclerview up and click on any link nothing happens and recyclerview scrolls up by 1 page

saket commented 5 years ago

I guess you've already figured this out. For the record, I think this is a problem with the layout. I have seen this happening when focusable views are present inside a RecyclerView. Is this correct, @sidtact?

sidtact commented 5 years ago

@saket well.... actually i was only having textviews and my recycler view was having descendent focusability to block descendent but it did not help. At the end I found that this is caused by line Selection.setSelection in highlightLink, I still dont know the reason why its happening on that line.

saket commented 5 years ago

Ah okay. 🙂👍