Hello,
I have been trying to set the color of the current item in a number picker.
I thought the following would work in the onValueChange or onScrollStateChange
((EditText)numberPicker.getChildAt(numberPicker.getValue())).setTextColor(Color.RED);
But it just crashes the emulator.
Does anybody know how to set the colour of just the current child within a number picker?
Thanks in advance
I have been trying to set the color of the current item in a number picker.
I thought the following would work in the onValueChange or onScrollStateChange
((EditText)numberPicker.getChildAt(numberPicker.getValue())).setTextColor(Color.RED);
But it just crashes the emulator.
Does anybody know how to set the colour of just the current child within a number picker?
Thanks in advance