How To Make Andorid's Actionbar/tabwidget Linearlayout To Wrap It's Children
I try to implement the scrollable tabs where each tab has it's size adjusted to it's content size. I tried two approaches: ActionBar and TabHost. In both cases I was able to adjus
Solution 1:
I figured it. It maybe useful for somebody... One have call on LinearLayout having tabs setMeasureWithLargestChildEnabled(false);. Like so:
tabHost.getTabWidget().setMeasureWithLargestChildEnabled(false);
Post a Comment for "How To Make Andorid's Actionbar/tabwidget Linearlayout To Wrap It's Children"