Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Different appearience on UI of date and time picker

I am using date and time picker in my application and referred the tutorial from here but the problem is that when i run it on kitkat 4.2.2 it show output as follows:enter image description here but when i run it on lollipop 5.1.1 it shows output enter image description here

showing two different UI on same code i dont know how to fix this problem.I have also applied some validations on it but its working with first case but not with second case.Please help.

like image 316
Dhiraj Avatar asked Dec 07 '25 23:12

Dhiraj


1 Answers

if you want it identical to the first one you can add

android:datePickerMode="spinner" 
android:calendarViewShown="false"
like image 117
Maxi Avatar answered Dec 09 '25 14:12

Maxi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!