我在应用程序中实现了一些选项卡栏图标,但它们似乎与选项卡文本重叠。
我究竟做错了什么?这是一些代码:
public class MyActivity extends SherlockFragmentActivity {
FragmentTabHost mTabHost = (FragmentTabHost) findViewById(android.R.id.tabhost);
mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent);
mTabHost.addTab(mTabHost.newTabSpec("TeamsFragment").setIndicator("Teams",
getResources().getDrawable(R.drawable.tab_bar_icon_teams_2x)), BaseFragment.class, null);
}
public class BaseFragment extends SherlockFragment {
}