tableLayout 我的观点的数据 /tableLayout
/滚动
我显示的数据。当我看最后一排男,一旦我的UI更新我想滚动到顶部位置。
什么应该是我需要为此操作完成的代码。提前致谢。
tableLayout 我的观点的数据 /tableLayout
/滚动
我显示的数据。当我看最后一排男,一旦我的UI更新我想滚动到顶部位置。
什么应该是我需要为此操作完成的代码。提前致谢。
scrollView.fullScroll(ScrollView.FOCUS_UP);
OR
scrollView.scrollTo(0, 0);
应该工作
call listView.setSelectionAfterHeaderView();滚动到顶部
你可以,做这样的
int idx = list.getFirstVisiblePosition();
View vfirst = list.getChildAt(0);
int pos = 0;
if (vfirst != null) pos = vfirst.getTop();
//Restore the position
list.setSelectionFromTop(idx, pos);