/ Time

Library for easy to use TimePicker on Android API

Library for easy to use TimePicker on Android API

TimePickerCompact

Library for easy to use TimePicker on Android API 21+.

TimePickerCompact

Install

implementation 'com.github.ifr0z:timepickercompact:1.0'

Usage

XML:

<ru.ifr0z.timepickercompact.TimePickerCompact
    android:id="@+id/time_p"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:timePickerMode="spinner" />

KT:

val customTime = "${time_p.hour}:${time_p.minute}" //set/get hour and minute with support all API
output_time_tv.text = customTime

GitHub