Widget - NumberPick Example

Anmol dwivedi
0

final NumberPicker numb = new NumberPicker(MainActivity.this);
numb.setMaxValue(100);
numb.setMinValue(1);
numb.setWrapSelectorWheel(true);
linear1.addView(numb);
button1.setOnClickListener(new View.OnClickListener(){
    public void onClick(View v){
   textview1.setText(String.valueOf((long)(numb.getValue())));
    }
});

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Post a Comment (0)
Our website uses cookies to enhance your experience. Learn More
Accept !