Search code examples
androidandroid-timepicker

Can we use some other type of time picker?


I want this type of time picker in my app but the default one in my device is

Which I don't want

But I want This

Which I want

I got some source code but not filling my need

case REQUEST_TIMEI1:
            return new TimePickerDialog(this,TimePickerDialog.THEME_HOLO_LIGHT ,mTimeSetListener1, hour, minute, true);

Solution

  • simply put these lines in your build.gradle file

    dependencies {
       compile 'com.wdullaer:materialdatetimepicker:2.3.0'
    }
    

    and follow this link here. Still you face any problem feel free to ask

    Update

    You can also use this

    compile 'com.code-troopers.betterpickers:library:3.1.0'
    

    follow this link for further instruction

    Some more to follow. It might be helpful for others

    1. Sublime Picked

    2. Material date Range picker

    3. Silk Cal

    4. Calendar List view

    5. Android-Week-View

    6. Android-MonthCalendarWidget