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(position, animate)
setSelection(position, animate)
使用此方法:
gallery.setSelected(true); gallery.setSelection(position);