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

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -