'Time Range Picker for Android?

Does anyone know anything about useful time range picker libraries that are open source? For example, the app Twilight uses some custom slider view for picking time ranges that I find very appealing (see bottom):

enter image description here

Is this open-source or are there similarly functional pickers? I could not find anything useful in the docs or on Android Arsenal.

Alternatively, I might build it from scratch. I was just wondering if there is not anything around yet.



Solution 1:[1]

You can try this slider from Material Design library and implements for youself:

https://material.io/develop/android/components/sliders

ps. check the section: "Setting a LabelFormatter"

Solution 2:[2]

An open source solution using a pop-up-dialog : TimeRangePicker

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ilw
Solution 2 Saharsh