Skip to content Skip to sidebar Skip to footer

How Can We Specify Width For Each Tab In Tabhost Android

I am using tabhost in my application. Can we give separate width property for each tab? i.e, one with larger width and other with smaller?please give me sample example.if possible

Solution 1:

You can achieve this by the code below -:

tabHost.getTabWidget().getChildAt(0).getLayoutParams().width = 50;

Post a Comment for "How Can We Specify Width For Each Tab In Tabhost Android"