Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在单击按钮时执行此操作,如果再次单击,则从顶部列出的列表显示最后一项
这该怎么做
对不起我糟糕的英语
要重新定位您的列表视图,请使用setSelection,例如:
setSelection
position = data.lenght() - 1; listView.setSelection(position);