java - Android numberpicker edge scrolling glitch -


i've created number picker string values.

public void setvalues() {     boolean defaultavaliable = false;     int defaultrow = 0;     string[] values = new string[pickvalues.size()];     (int = 0; < pickvalues.size(); i++) {         if (pickvalues.get(i).equals("01:00")) {             defaultavaliable = true;             defaultrow = i;         }         values[i] = pickvalues.get(i);     }      timepicker.setmaxvalue(values.length - 1);     timepicker.setminvalue(0);     timepicker.setwrapselectorwheel(false);     timepicker.setdisplayedvalues(values);      if (defaultavaliable) {         timepicker.setvalue(defaultrow);     } } 

and when scroll edge values (first or last) picker first jumps item in weird, not smooth way , after when try go other values doesn't scroll. picker glitches on edge value , after time goes back. in way looks scroll on edge value , needs scrolling back.

has else had problem or have suggestions check?

edit 1:

so i've got point know problem when change font size in numberpicker, , don't know why. set font size on 39 starts stuck on first , last item.

private void updateview(view view) {     if(view instanceof edittext){         ((edittext) view).settextsize(39);         ((edittext) view).settextcolor(getresources().getcolor(r.color.mp_white));         ((edittext) view).setfocusable(false);     } } 

does know row size? or if have change size of it, detects scrolling correctly?


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -