简体   繁体   中英

Android: How to scroll SpinnerView to item at position by default?

我有一个“微调框视图”,显示的数字介于1500-1400之间,我想在用户将其打开到指定位置时自动滚动微调框,例如:专注于1436。我该怎么办?

You can use spinner.setselection(position) method. Where position is the position value of the spinner item,which you want to get selected by default.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM