Skip to content

An Android Preference to pick an integer value via the Number Picker widget.

License

Notifications You must be signed in to change notification settings

FaizVisram/NumberPickerPreference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NumberPickerPreference

An Android Preference to pick an integer value via the Number Picker widget.

Usage

NumberPickerPreference has the following parameters:

  • bindSummary - Boolean. Binds the summary to the current value. Default true.
  • max - Integer. Maximum possible value. Default 10.
  • min - Integer. Minimum value. Default 0.
  • step - Integer. Step between values. Default 1.

Example

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

    <com.faizvisram.android.preference.NumberPickerPreference
        android:title="NumberPicker Example"
        android:key="example_key"
        bindSummary="true"
        max="100"
        min="0"
        step="10" />

</PreferenceScreen>

About

An Android Preference to pick an integer value via the Number Picker widget.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published