android - How to show the tab according to the day? -
i new android , making simple app show class routine. have used tabs show class schedule.now need show tab of current day without selecting tab manually? i.e. if today monday show class monfragment itself.
this approach may help.
switch (day) { case 0: actionbar.setselectednavigationitem(0); break; case 1: break; case 2: break; case 3: break; case 4: ............ default: break; }
Comments
Post a Comment