I have created a TabHost and in 1 of the tab, I have added the content using
mTabHost.addTab(mTabHost.newTabSpec("tab1")
.setIndicator(getString(R.string.dialerIconLabel),
getResources().getDrawable(R.drawable.ic_tab_dialer))
.setContent(intent));
Is it possible for me to switch the content's activity programati开发者_运维知识库cally after I called 'addTab of TabHost'?
Thank you.
You cannot readily change what View
is the content of the tab. However, that View
could be a ViewFlipper
, or a FrameLayout
with only one visible child, which can give you a similar visual effect.
精彩评论