WheelPicker比較好的實現數據選擇器,地址:
https://github.com/SuperRabbitD/NumberPicker
使用的時候
app:textSize=“36dp”
app:max=“50”
app:min=“0”
app:wheelItemCount=“5”
app:selectedTextColor="@color/normal_bottom"
app:textColor="@color/normal_yeallow"
app:wrapSelectorWheel=“true”
這些個屬性能在xml就在xml上申明,放到代碼中去寫的時候,我再調用
numPick.scrollTo(22); 這個方法沒有效果