开发者

ScrollView containing TextView does not scroll

开发者 https://www.devze.com 2022-12-27 11:01 出处:网络
I have a textview displaying many individual words, each word is a link using Spans and setMovementMethod(LinkMovementMethod.getInstance());The textview is wrapped by a ScrollView.

I have a textview displaying many individual words, each word is a link using Spans and setMovementMethod(LinkMovementMethod.getInstance()); The textview is wrapped by a ScrollView.

However the ScrollView does not work as the links in the TextView are activated instead.

Is there 开发者_Python百科a way to combine a ScrollView and TextView so that both the scrolling and links in the text work?


This might be because the links or the TextView are consuming the touches. A starting point might be to play around with the onTouch() of the views involved to find out where the touches are consumed and then passing those touches to the ScrollView.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号