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.
是否可以在 listFragment 上设置初始选择?我想显示一个按时间排序的事件列表,如果向上滚动,可以选择查看过去的事件。
getListView().setSelection(position);
看这里