Search code examples
androidandroid-datepickerandroid-timepicker

How can I get the dimensions of Material TimePicker/DatePicker?


Google's Material.io website has the specs for many components, except for TimePicker/DatePicker (docs for Dialogs). I need to create a custom dialog with a header like these components, so I need to know the header height and text sizes.

How can I find these information?

DatePicker


Solution

  • AS per @Juliano Nunes Silva Oliveira Comment. Following link is useful.

    You can get dimension from source code of DatePicker