michaelmuenzer / ScrollableNumberPicker

Easy to use customizable number picker for Android mobile and tv
MIT License
78 stars 22 forks source link

Question #7

Closed benoffi7 closed 6 years ago

benoffi7 commented 6 years ago

Hi! I use create the component via Java and I need to change the color of the arrows and the text appearance (app:snp_value_text_appearance)

How can I do that ?

Thanks!

michaelmuenzer commented 6 years ago

Hello benoffi7, you can change the color of the arrow by using a colored drawable with the xml-attribute app:snp_buttonIconLeft. An example is the arrow_up_bold_circle_outline.xml where you could change the android:fillColor to achieve that.

Changing the text-appearance is working the same way. You just need to pass a style which matches your requirements. E.g.

Insert a new style in styles.xml `