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.
我正在创建一个数字选择器,如下图所示,但如果空间可用,我想显示 3 个以上的值。这个选择器有 20 个项目,并且有足够的空间来显示超过 3 个值。这可以使用 NumberPicker 完成吗?
只需以编程方式设置numberPicker.setWheelItemCount(10);
numberPicker.setWheelItemCount(10);