【发布时间】:2014-04-15 16:50:37
【问题描述】:
数字选择器
np = (NumberPicker) findViewById(R.id.numberPicker1);
np.setMaxValue(200);
np.setMinValue(1);
Button b = (Button) findViewById(R.id.button1);
当我滚动数字时应该去 1 2 3 ... etc ..
我想要的是在滚动时它应该是 5 10 15 等
怎么做?
【问题讨论】:
-
你不能用
NumberPicker.setDisplayedValues(String[] values)这个方法吗?
标签: java android numberpicker