Friday, 19 July 2013

Number Picker Example in Android

Setting Up a Number Picker in Android

    final NumberPicker np = (NumberPicker) findViewById(R.id.numberPicker1);

        np.setMaxValue(20);

        np.setMinValue(1);

        np.setWrapSelectorWheel(true);

        int value =np.getValue();                 // get the selected value  //write this on button click

No comments:

Post a Comment