开发者

How do I calculate HorizontalScrollView length including its child view

开发者 https://www.devze.com 2023-01-27 23:06 出处:网络
I want to calculate length of horizontal scroll view and I want to identify when user scrol开发者_如何学Gol to its end.I solved it.

I want to calculate length of horizontal scroll view and I want to identify when user scrol开发者_如何学Gol to its end.


I solved it.

we have to use Hscrollview.getMeasuredWidth();

this method have to be used after all child updated in that scrollview completely. After UIThread completed its work.

0

精彩评论

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

关注公众号