android - How to custom TabView -


i new android, dont know how customized tabview. can guide me how create customized tabview.

you can change background , images of tab view of code

for(int i=0;i

    tabhost.setontabchangedlistener(new ontabchangelistener(){          @override         public void ontabchanged(string tabid) {             // todo auto-generated method stub              for(int i=0;i<tabhost.gettabwidget().getchildcount();i++)                 {                    tabhost.gettabwidget().getchildat(i).setbackgroundcolor(r.color.transparent); //unselected                 }                 tabhost.gettabwidget().getchildat(tabhost.getcurrenttab()).setbackgroundcolor(color.parsecolor("#000011")); // selected         } 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -