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.
当我的应用程序加载时,我希望列表视图中的第一个项目已经被选中。我怎样才能做到这一点?
在您的列表视图活动中
getListView().setSelection(0);