[Solved] Number picker in custom listview changing number by itself

Custom_row.java : holder.numberPicker.setOnValueChangedListener(new NumberPicker.OnValueChangeListener() { @Override public void onValueChange(NumberPicker picker, int oldVal, int newVal) { View parentRow = (View)picker.getParent(); ListView mListView =(ListView)parentRow.getParent(); final int position = mListView.getPositionForView(parentRow); setPickerNumber(position,newVal); if(newVal > oldVal){ newValcount = newValcount + newVal – oldVal; } if(oldVal > newVal){ newValcount = newValcount + newVal – oldVal; } if(newValcount>0) { ProPay.setVisibility(View.VISIBLE); } else{ … Read more