arcadefire / nice-spinner

A nice spinner for Android
Apache License 2.0
2.84k stars 446 forks source link

怎么设置默认不选择任何选项 #138

Open 2318423730 opened 4 years ago

sorrybeman commented 4 years ago

可以设置一个没有任何状态的状态比如-1

2318423730 commented 4 years ago

是用setSelectedIndex吗?会报错 java.lang.IllegalArgumentException: Position must be lower than adapter count!

Annriy07 commented 4 years ago

同问啊

aizizai commented 3 years ago

同问,这个功能貌似很基本啊,怎么默认为空白内容?

skyhzx commented 3 years ago

同問同問

nocrisis commented 3 years ago

同问,有大佬支持一下吗

linrty commented 3 years ago

可以setText("");

StoneBang commented 2 years ago

niceSpinner.attachDataSource(cabinetListBean.getData()); niceSpinner.setText("");

liu402883451 commented 1 year ago

setText("")不行、数据源也变了,第一次看不到第一项