android - Change TextSize of tab when it's selected -


is possible change textsize of textview in tabwidget when it's selected ?

yes possible, example:

public class mainactivity extends tabactivity {  static tabhost mytabs;   mytabs = gettabhost();      mytabs.setontabchangedlistener(new ontabchangelistener() {         @override         public void ontabchanged(string arg0) {                      log.i("tag", "im in tab index: " + mytabs.getcurrenttab());             tabwidget tw = (tabwidget)tabhost.findviewbyid(android.r.id.tabs);             view tabview = tw.getchildtabviewat(mytabs.getcurrenttab());             textview tv = (textview)tabview.findviewbyid(android.r.id.title);             // changing textsize.             tv.settextsize(20);         }            });   

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -