Changing TabHost font size

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Changing TabHost font size

Postby enochcheng » Thu Sep 10, 2009 10:54 pm

Hi,
I'm creating Tabs for my application and I wonder how do I change the
font size in the Tab Host (Tab Menu) in the following code, that is
the font size of Menu1, Menu2, Menu3, Menu4:

TabHost host=getTabHost();

host.addTab(host.newTabSpec("one")
.setIndicator("Menu1", getResources
().getDrawable(R.drawable.markets))
.setContent(new Intent(this, Tab1.class)));
host.addTab(host.newTabSpec("two")
.setIndicator("Menu2", getResources
().getDrawable(R.drawable.movers))
.setContent(new Intent(this, Tab2.class)));
host.addTab(host.newTabSpec("3")
.setIndicator("Menu3", getResources().getDrawable
(R.drawable.movers))
.setContent(new Intent(this, Tab2.class)));
host.addTab(host.newTabSpec("4")
.setIndicator("Menu4", getResources().getDrawable
(R.drawable.movers))
.setContent(new Intent(this, Tab2.class)));

thanks is advance
enochcheng
Freshman
Freshman
 
Posts: 2
Joined: Thu Sep 10, 2009 10:52 pm

Top

Postby arams » Fri Sep 11, 2009 5:05 pm

1 way:

1.1.settext must be blank
1.2.in image draw the text.
arams
Experienced Developer
Experienced Developer
 
Posts: 89
Joined: Fri May 08, 2009 7:45 am

Postby konic » Tue Oct 06, 2009 4:46 pm

So I gather, the same answer would be for "How do I change the text position?"
Am I right?
konic
Developer
Developer
 
Posts: 32
Joined: Mon Aug 24, 2009 3:16 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests