[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

[Solved] custom font in customAdapter

I used akhilesh0707 answer, but I changed it. public customList(Activity activity, List<itemsModel> itemsList) { this.activity = activity; this.itemsList = itemsList; inflater = activity.getLayoutInflater(); customFontBold = Typeface.createFromAsset(activity.getApplication().getAssets(), “fonts/Assistant-Bold.ttf”); } Thanks akhilesh0707. solved custom font in customAdapter