[Android]NumberPicker selected item change color

后端 未结 4 590
星月不相逢
星月不相逢 2021-01-17 20:09

Is it possible to change color of the selected item in numberpicker so each time a new center child TextView appear change its color to whatever I like I did not find any st

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-17 20:36

    I think you can use a NumberPicker.OnValueChangeListener using the method setOnValueChangedListener(...)of the widget.

    In the callback you get the picker and can change the style the way you want.

提交回复
热议问题