java - spinner android with big padding -



java - spinner android with big padding -

hello i'm developing app android, utilize 4 spinners, see 'pic' below spinners this:

____________________ |_option__________v_| spinner 1 ____________________ |_option__________v_| spinner 2 ____________________ |_option__________v_| spinner 3 ____________________ |_option__________v_| spinner 4 (i can't post images)

the question how can disable 2 3 4 spinners , set values default if 1 has value changed ( default value ), or how same if 2 spinner has value changed?

assuming default values @ position 0(first item).

then seek next code

spinner1.setonitemselectedlistener(new onitemselectedlistener() { @override public void onitemselected(adapterview<?> arg0, view arg1, int arg2, long arg3) { if (arg2 == 0) { spinner2.setselection(0); spinner3.setselection(0); spinner4.setselection(0); spinner2.setenabled(false); spinner3.setenabled(false); spinner4.setenabled(false); }else{ spinner2.setenabled(true); spinner3.setenabled(true); spinner4.setenabled(true); } } @override public void onnothingselected(adapterview<?> arg0) { } });

java android json spinner android-arrayadapter

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -