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

java - JavaScript + Thymeleaf - select onchange -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

node.js - Using Node without global install -