How to change Android DatePicker Dialog's “Dividers” Colors

前端 未结 6 1395
無奈伤痛
無奈伤痛 2021-01-04 18:50

I\'m trying to create a custom dialog, basically I\'m using DatePickerDialog.THEME_HOLO_DARK but I want to change the \"divider\" color and the text color.

6条回答
  •  鱼传尺愫
    2021-01-04 19:32

    I know it's a late reply but I would like to share my findings with those who experienced or will experience this problem in the future.

    I searched many places, and the only solution I found was SimonVT's Pickers.

    After implementing the library, it was very easy to change the colors. In numberpicker- the library uses images that can be simply replaced with the desired designs.

    This example has three pickers: NumberPicker, DatePicker and TimerPicker.

    https://github.com/rodrigobusata/android-pickers

    I hope you find it useful.


    UPDATED

    The above link do not existe anymore, now you must use Material Design https://github.com/wdullaer/MaterialDateTimePicker.

提交回复
热议问题