A SeekBarPreference that stores its value in a percentual relation (0 to 1) on max and min values
On your build.gradle
add:
repositories {
maven { url 'https://dl.bintray.com/gmazzo/maven' }
}
dependencies {
compile 'com.github.gmazzo:seekbar-preference:0.2'
}
In your preferences.xml
add:
<gs.preference.PercentSeekBarPreference
android:key="someKey"
android:title="Percent value"
android:defaultValue="0.7"/>
In your preferences.xml
add:
<gs.preference.PercentSeekBarPreferenceCompat
android:key="someKey"
android:title="Percent value"
android:defaultValue="0.7"/>