How to change textsize in datepicker?

前端 未结 6 1159
梦如初夏
梦如初夏 2020-12-10 14:22

The default textsize in datepicker is too big for my app. I\'ve seen a way suggested to change it here, but fishing around for the textviews nested inside the datepicker cl

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 14:42

    Sean's code works. but it is changing font size for all the other components also(textViews, buttons, etc...) So Here is the solution.

    Create different style for time picker and use it on time picker theme.

    
    

    and use it on your timepicker

    android:theme="@style/my_time_picker_style"
    

    Look at video, how I did https://youtu.be/JMJ2ujhk9c0

提交回复
热议问题