Creating an Android Studio datepicker

0

I want to create a datepicker as shown below.

ButwhenIcreateone,itstaysthatway.

But when I use some example that creates one according to the first image, it ends up being the same as the second image.

I want to create the datepicker the same as the first image, because I find it easier to select the desired date and more quickly.

Could anyone give me an example, to create the datepicker I'm looking for?

    
asked by anonymous 16.11.2015 / 04:23

1 answer

2

This happens because the DatePicker of the second image is from Android 5.0 (Lollipop). If you test on old devices, it will look like the first image. The best and easiest thing to do is to leave it that way, so Android shows the correct DatePicker as the system version.

    
16.11.2015 / 04:49