Reputation: 36319
NumberPicker shows up fine, until I try and programmatically set any of the values. I get a NoSuchMethodException when I try and setMinValue, setMaxValue, or setValue. Any ideas?
this.picker = (NumberPicker)findViewById(R.id.picker);
picker.setMinValue(1);
picker.setMaxValue(500);
picker.setValue(count);
picker's not null, Eclipse is giving me valid intellisense and it works fine (with the exception of not having any numbers showing...) if I remove all three of the 'set' calls.
I'm targeting API v11.
Upvotes: 0
Views: 364
Reputation: 36302
Make sure the build target and device you're testing on is API 11+.
Upvotes: 1