Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different sized tabs in Android

I have an application with 4 tabs. By default every tab width is 1/4 of the screen width. How can I override this?

I need the tabs to have a different width for each one. Any ideas on how to accomplish that?

like image 774
momo Avatar asked Aug 24 '10 15:08

momo


1 Answers

Try this:

tabHost.getTabWidget().getChildAt(0).getLayoutParams().height = 35; 
like image 67
Zeba Avatar answered Oct 15 '22 12:10

Zeba