传递Numberpicker值Newval

时间:2019-10-21 05:00:26

标签: android parameters numberpicker

如何将Numberpicker参数newVal传递给另一个numberpicker方法?

np.getValue(); //this does not work

np.setOnValueChangedListener(new NumberPicker.OnValueChangeListener() {
            @Override
            public void onValueChange(NumberPicker picker, int oldVal, final int newVal) {`

0 个答案:

没有答案