开发者

Problems forcing a ScrollView to move to the top

开发者 https://www.devze.com 2023-04-04 21:27 出处:网络
I have a ScrollView that I want to move programatically to the top. I do the following: scrollll5.fullS开发者_开发问答croll(View.FOCUS_UP);

I have a ScrollView that I want to move programatically to the top.

I do the following:

scrollll5.fullS开发者_开发问答croll(View.FOCUS_UP); scrollll5.postInvalidate();

and it works, but only if the ScrollView is NOT at the bottom already...

has anybody found a similar problem (and its solution)?


scrollTo(0,0) or smoothScrollTo(0,0) should work.

0

精彩评论

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