As far as I checked, there are no cool implementations of SeekBarPreference. So I decided to make one.
#Usage
Add this to your module dependencies:
compile 'com.pavelsikun:material-seekbar-preference:0.6+'
Reference namespace on top of your preferences layout file:
xmlns:sample="http://schemas.android.com/apk/res-auto">
Now you can use this view in your preferences layout, just like any other normal preference:
<com.pavelsikun.seekbarpreference.SeekBarPreference
android:key="your_pref_key"
android:title="SeekbarPreference 2"
android:summary="Some summary"
android:enabled="false"
android:defaultValue="5000"
sample:minValue="100"
sample:maxValue="10000"
sample:interval="200"
sample:measurementUnit="%"/>
As you can see, lib provides 4 custom attributes(minValue, maxValue, interval and measurementUnit). Use them to define look and desired behavior of your preference.
#Known bugs and planned features
Seekbar is not themmable on pre-lollipop.DONE(v0.6+).- No support of RTL yet.
- Small bug: It takes 2 taps on seekbar value indicator to open up the keyboard.
#Licence Lib is licenced under MIT licence, so you can do whatever you want with it. I'd highly recommend to push changes back to make it cooler :D