开发者

Problems forcing a ScrollView to move to the top

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜