On second thought, I actually pulled the TabHost and TabWidget code from the Android Open Source Project. I suppose I didn't subclass, then.
On Aug 10, 2:53 pm, "nEx.Software" <email.nex.softw...@gmail.com> wrote: > Personally, I subclassed TabHost, and TabWidget and provided my own > TabIndicator. Probably a lot more work than I had to do, but I am > custom drawing my tabs so I was OK with a little extra work for full > control. > > On Aug 10, 7:52 am, Mark Murphy <mmur...@commonsware.com> wrote: > > > > > The only way I know of to change the heights of the tabs in a TabWidget > > is via code akin to: > > > tabHost > > .getTabWidget() > > .getChildAt(0) > > .setLayoutParams(new LinearLayout.LayoutParams(width,height)); > > > (and iterate from 0 to whatever to do all of the tabs) > > > This feels fragile. Is there a better solution, preferably one heartily > > endorsed by the core Android team? I'm getting inquiries about this and > > would like to address it in a book update someday. > > > Thanks! > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > Warescription: Three Android Books, Plus Updates, $35/Year --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---