我想使用以下代码滚动页面。我没有得到我错的地方。我正在使用这段代码
scroll = (ScrollView)findViewById(R.id.scroll);
scroll.post(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
scroll.fullScroll(ScrollView.FOCUS_DOWN);
}
});
when i run this code it is not scrolling
答案 0 :(得分:0)
试试这个
scroll.post(new Runnable() {
@Override
public void run() {
/*
* Scrolling to bottom every time when new
* element is created
*/
scroll.fullScroll(View.FOCUS_DOWN);
}
});
我希望这会对你有所帮助。