Use DatePicker in an Activity [closed]

2

Hello, I'm trying to make a datepicker part of the activity layout as shown below:

I've been looking for the internet, but all the examples I'm talking about datePickerDialog, and that's not what I wanted. Any solution? Thanks!

    
asked by anonymous 25.10.2016 / 22:27

1 answer

2

The DatePicker can be used as a view normal in any layout .

In order to be presented as it is in the question image, you must use the datePickerMode and calendarViewShown attributes with the following values:

android:datePickerMode="spinner"
android:calendarViewShown="false"
    
26.10.2016 / 16:57