Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BorealisAgency/NumberPicker
Android number picker view
https://github.com/BorealisAgency/NumberPicker
Last synced: about 1 month ago
JSON representation
Android number picker view
- Host: GitHub
- URL: https://github.com/BorealisAgency/NumberPicker
- Owner: BorealisAgency
- License: gpl-3.0
- Created: 2016-10-10T20:36:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-27T10:07:25.000Z (almost 8 years ago)
- Last Synced: 2024-08-02T01:19:51.619Z (4 months ago)
- Language: Java
- Homepage:
- Size: 115 KB
- Stars: 55
- Watchers: 4
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - NumberPicker - Android数字选择器视图 (选择器(Picker))
README
# NumberPicker
![demo](http://i.imgur.com/6uPlzny.gif)**Installation**
Add the following dependency to your module's build.gradle:
compile 'biz.borealis.numberpicker:NumberPicker:1.0.1'
**How to use it**
**XML Attributes**
| Name | Type | Default |
|----------|:-------------:|------:|
|np_min_number|integer|0|
|np_max_number|integer|100|
|np_text_size_selected|dimension|48sp|
|np_text_size|dimension|36sp|
|np_text_color_selected|color|#d6000000|
|np_text_color|color|#8a000000|
|np_fade_text_color|boolean|true|
|np_animate_text_size|boolean|true|**Interface**
NumberPicker numberPicker = (NumberPicker) findViewById(R.id.np);
numberPicker.setOnValueChangeListener(new OnValueChangeListener() {
@Override
public void onValueChanged(int newValue) {
}
});