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.
我使用以下方法在一定间隔后更改微调器项目:spinner.setSelection(spinner.getSelectedItemPosition()+1); 当所有项目获取完成的应用程序崩溃时。请协助我确定我何时到达微调器项目的最后位置
spinner.setSelection(spinner.getSelectedItemPosition()+1);
您可以使用它来获取微调器中的项目计数:
mSpinner.getAdapter().getCount();