android - How can I override TimePicker to change text color -


my view has white background, , has stay way. have timepicker on white background.everything woking fine android 2.3.3 android 4.0.3 has new timepicker style. numbers have bright color. hard see them on white background, , didn't find direct way change textcolor. don't want change background because not good.

is there way override , set color of numbers black?

sincerly, wolfen

take @ android source styles.xml

https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/styles.xml

you set style on activity/timepicker looks this:

<style name="mytimepicker" parent="@android:style/widget.timepicker">     <item name="android:textcolor">#000000</item> </style> 

or maybe (3.0 , above only)

<style name="myholotimepicker" parent="@android:style/widget.holo.timepicker">     <item name="android:textcolor">#000000</item> </style> 

then xml be:

<timepicker  style="@style/myholotimepicker"  android:layout_width="fill_parent"  android:layout_height="fill_parent" /> 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -