Creating a datepicker Android Studio

Asked

Viewed 737 times

0

I’m wanting to create a datepicker as image below.

inserir a descrição da imagem aqui

But when I create one, it gets that way.

inserir a descrição da imagem aqui

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

I want to create the datepicker equal to the first image, because I find it easier to select the desired date and faster.

Could someone pass me some example, to create the datepicker that I’m wanting?

1 answer

2


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

  • Got it! Valew Luiz for clearing my doubt!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.