Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we specify width for each tab in tabhost?

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?

like image 522
Anju Avatar asked Dec 01 '22 02:12

Anju


1 Answers

We can mention the tab width in code like:

tabHost.getTabWidget().getChildAt(0).getLayoutParams().width = 50;
like image 74
Anju Avatar answered Dec 03 '22 14:12

Anju