Let me explain my question.
Simply I need Tab title/icon on FragmentTabHost
for higher version.
If I check same for lower version they appear but disappears for higher version.
This is what I am using for now to get.
mTabHost = (FragmentTabHost)findViewById(android.R.id.tabhost);
mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent);
mTabHost.addTab(mTabHost.newTabSpec(TAB_1_TAG).setIndicator("Talk", getResources().getDrawable(R.drawable.ic_launcher)), TalkContainerFragment.class, null);
As per my knowledge there's problem in setIndicator()
. It can take one item at a time i.e either title or icon at a time for higher version.
While searching I found some tutorial but they are utilizing deprecated methods which is not useful to me as I am performing same using Fragments
.
Any help or suggestion will be highly appreciated. Thanks.