Android ScrollView 滑动到底部

Android About 270 words

滚动到底部

scrollView.fullScroll(ScrollView.FOCUS_DOWN);

滚动到顶部

scrollView.fullScroll(ScrollView.FOCUS_UP);

子线程可使用post

mScrollView.post(new Runnable() {
        @Override
        public void run() {
            mScrollView.fullScroll(ScrollView.FOCUS_DOWN);
        }
    });
Views: 4,384 · Posted: 2019-04-09

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh