NumberPicker
BorealisAgency
46
Visit GitHub RepoNumber Pickers

NumberPicker

demo

Installation

Add the following dependency to your module's build.gradle:

compile 'biz.borealis.numberpicker:NumberPicker:1.0.1'

How to use it

<biz.borealis.numberpicker.NumberPicker
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>

XML Attributes

<biz.borealis.numberpicker.NumberPicker
    ...
    xmlns:app="http://schemas.android.com/apk/res-auto"
    app:np_min_number="1"
    .../>
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) {
        }
    });
Become a better Android Developer
Millions of developers are learning at MindOrks

Online Training Program

Featured Blogs

Our Team

MindOrks is Certainly one of the best online blog to stay on top of all the Android development news, coding and design patterns. Finally a blog I can count on to keep myself updated with latest and greatest things happening in Android world.

Vipul Shah
Android Developer
Microsoft

Become Pro in Android by watching videos

OUR LEARNERS WORK AT