Material Date Picker Custom Styling

前端 未结 4 843
清酒与你
清酒与你 2021-02-09 03:18

i have used range date picker from google material with this library

implementation \'com.google.android.material:material:1.2.0-alpha02\'

4条回答
  •  后悔当初
    2021-02-09 04:15

    Changing between fullscreen and dialog version can be as easy as that:

    fullscreen:

    val picker = MaterialDatePicker.Builder.dateRangePicker().setTheme(R.style.ThemeOverlay_MaterialComponents_MaterialCalendar_Fullscreen).build()
    

    dialog:

    val picker = MaterialDatePicker.Builder.dateRangePicker().setTheme(R.style.ThemeOverlay_MaterialComponents_MaterialCalendar).build()
    

提交回复
热议问题