Jump to content

[Android] Problema com TabHost


magikRing

Recommended Posts

Bom dia,

Estou aqui com um problema ao desenvolver tabhost que já não sei para onde me virar:

Construi 1 tabhost com 3 tabs da seguinte maneira:

mTabHost = (TabHost) view.findViewById(android.R.id.tabhost); //tabhost definido no layout

mTabHost.setup();

TabHost.TabSpec tab = mTabHost.newTabSpec("Lista");

tab.setIndicator("Lista");

tab.setContent(R.id.tab1); //tab definida no layout

mTabHost.addTab(tab);

O que está a acontecer é que na API 17 : 4.2.2 funciona perfeitamente. Mas na API 8: 2.2 o texto não aparece nas tabs. Simplesmente aparece a tab sem nada escrito.

Alguem sabe porque?

Edited by magikRing
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.