:slot_machine: The android library that provides a simple and customizable NumberPicker.
:slot_machine: The android library that provides a simple and customizable NumberPicker.
The android library that provides a simple and customizable NumberPicker. It's based on android.widget.NumberPicker.
…
add xmlns:app="http://schemas.android.com/apk/res-auto"
| attribute name | attribute description | default |
|---|---|---|
| np_width | The width of this widget. | |
| np_height | The height of this widget. | |
| np_accessibilityDescriptionEnabled | Flag whether the accessibility description enabled. | enabled |
| np_dividerColor | The color of the selection divider. | |
| np_dividerDistance | The distance between the two selection dividers. | |
| np_dividerLength | The length of the selection divider. | |
| np_dividerThickness | The thickness of the selection divider. | |
| np_dividerType | The type of the selection divider. | side_lines |
| np_fadingEdgeEnabled | Flag whether the fading edge should enabled. | |
| np_fadingEdgeStrength | The strength of fading edge while drawing the selector. | |
| np_formatter | The formatter of the numbers. | |
| np_hideWheelUntilFocused | Flag whether the selector wheel should hidden until the picker has focus. | |
| np_itemSpacing | Amount of space between items. | |
| np_lineSpacingMultiplier | The line spacing multiplier for the multiple lines. | |
| np_max | The max value of this widget. | |
| np_maxFlingVelocityCoefficient | The coefficient to adjust (divide) the max fling velocity. | |
| np_min | The min value of this widget. | |
| np_order | The order of this widget. | ascending |
| np_orientation | The orientation of this widget. | vertical |
| np_scrollerEnabled | Flag whether the scroller should enabled. | |
| np_selectedTextAlign | The text align of the selected number. | center |
| np_selectedTextColor | The text color of the selected number. | |
| np_selectedTextSize | The text size of the selected number. | |
| np_selectedTextStrikeThru | Flag whether the selected text should strikethroughed. | |
| np_selectedTextUnderline | Flag whether the selected text should underlined. | |
| np_selectedTypeface | The typeface of the selected numbers. | |
| np_textAlign | The text align of the numbers. | center |
| np_textColor | The text color of the numbers. | |
| np_textSize | The text size of the numbers. | |
| np_textStrikeThru | Flag whether the text should strikethroughed. | |
| np_textUnderline | Flag whether the text should underlined. | |
| np_typeface | The typeface of the numbers. | |
| np_value | The current value of this widget. | |
| np_wheelItemCount | The number of items show in the selector wheel. | |
| np_wrapSelectorWheel | Flag whether the selector should wrap around. |
Add the dependency in your build.gradle
buildscript {
repositories {
mavenCentral()
}
}
dependencies {
implementation 'io.github.ShawnLin013:number-picker:2.4.13'
}
Thank you to all our backers!
The source code is licensed under the MIT license.
No open issues yet, or sync has not completed.