Skip to content

A SeekBarPreference that stores its value in a percentual relation (0 to 1) on max and min values

License

Notifications You must be signed in to change notification settings

gmazzo/android-seekbar-preference

Repository files navigation

seekbar-preference

A SeekBarPreference that stores its value in a percentual relation (0 to 1) on max and min values

Import

On your build.gradle add:

    repositories {
        maven { url 'https://dl.bintray.com/gmazzo/maven' }
    }

    dependencies {
        compile 'com.github.gmazzo:seekbar-preference:0.2'
    }

Usage with native android.preference.Preference

In your preferences.xml add:

    <gs.preference.PercentSeekBarPreference
        android:key="someKey"
        android:title="Percent value"
        android:defaultValue="0.7"/>

Usage with compat android.support.v7.preference.Preference

In your preferences.xml add:

    <gs.preference.PercentSeekBarPreferenceCompat
        android:key="someKey"
        android:title="Percent value"
        android:defaultValue="0.7"/>

Screenshots

Native Compat

About

A SeekBarPreference that stores its value in a percentual relation (0 to 1) on max and min values

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages