DatePicker crash in samsung with android 5.0

前端 未结 3 1801
有刺的猬
有刺的猬 2020-12-29 04:12

I am having trouble with creating a datepicker in samsung note 2 device with lollipop 5.0. The exception is:

java.util.IllegalFormatConversionException: %d c         


        
3条回答
  •  执笔经年
    2020-12-29 04:52

    Forget about the built-in date picker. There's only one way to get rid of the crash: use a library that provides an independent implementation.

    For a date picker fragment: https://github.com/flavienlaurent/datetimepicker

    For a date picker widget: https://github.com/SingleCycleKing/CustomTimePicker (this is more a starting point than a ready-to-use-solution)

提交回复
热议问题