> Unfortunately, the link shows how to change TAB size not the FONT
> size.
Which, if you read my post, is what I said.
> But the main warning stays correct: "...this code will likely break in
> future Android releases."
> However, continuing the same "incorrect" way to deal with problems,
> one may try the following:
> TabWidget tw = getTabWidget();
> for (int i=0; i<tw.getChildCount(); i++) {
> RelativeLayout relLayout = (RelativeLayout)tw.getChildAt(i);
> TextView tv = (TextView)relLayout.getChildAt(1);
> tv.setTextSize(25.0f); // just example
> }
> It works so far (1.5r3)
Android 1.6 now supports a new API to allow you to set the whole View for
the tabs. I have not experimented with this to determine how it works, but
I suspect it is a better way of addressing this sort of issue.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---