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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -