Material Date Picker text color

后端 未结 2 735
暖寄归人
暖寄归人 2020-12-18 11:00

I am trying to change the text color of my DatePicker

 

        
相关标签:
2条回答
  • 2020-12-18 11:40

    As with most components, the DatePicker's text color is effected by textColorPrimary:

    <item name="android:textColorPrimary">@color/Black</item>
    
    0 讨论(0)
  • 2020-12-18 11:41

    I don't know what your style have but you can do it this way:

    <style name="MyDatePicker" parent="@android:style/Widget.DeviceDefault.DatePicker">
    
      <item name="android:textColor">#FF0000</item>
    
    </style>
    
    0 讨论(0)
提交回复
热议问题