How to change textsize in datepicker?

前端 未结 6 1160
梦如初夏
梦如初夏 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

    Setting a theme to DatePicker layout and adding android:textSize to it works for me.

    In your layout's xml add a DatePicker applying a theme as shown below -

    
    

    and then define the NumberPickerStyle in styles.xml specifying android:textSize like this -

    
    

提交回复
热议问题