开发者

ScrollView containing TextView does not scroll

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜