Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to add style to a NumberPicker in Android
- <style name="myPicker">
- <item name="android:textColor">#FFFFFF</item>
- </style>
- np.setValue(10);
- np.setMinValue(5);
- np.setMaxValue(50);
- // retrieve the textview reference
- TextView npTextView = (TextView) np.giftAmount.getChildAt(1); // since indexing begins at 0
- npTextView.setTextColor(getResources().getColor(
- R.color.my_custom_color)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement