I want to add new button,which is clear button, to date picker widget and time picker widget in my android application. In default, these widgets have two button,set and cancel. How can I add one more button to these two button
Is it possible? If yes, can you give some example?
Thanks
This is how I implemented the “Clear” button in my app. When the user clicks Clear, the year/month/day values are all 0. You can use onDateSet() in your app for both the Set button and Clear button this way.
I referenced the Android source code (\frameworks\base\core\java\android\app\DatePickerDialog.java).
I also used the help of esilver.