java - Changing the visibility of views one at a time with a button -
i have 3 views visibility set view.setvisibility(view.gone)
, have button want change visibilities visible 1 @ time user keeps clicking button. think have use loop centred on button click don't know how. ideas appreciated.
int = 0; onclick(view v){ switch(++i){ case 1: view1.setvisibility(view.gone); break; case 2: view2 setvisibility(view.gone); break; case 3: view3.setvisibility(view.gone); = 0; break; } }
Comments
Post a Comment