I create my code like that:
final TabHost tabHost = getTabHost();
开发者_运维百科
tabHost.addTab(tabHost.newTabSpec("Month")
.setIndicator("Month")
.setContent(new Intent(this, MonthView.class)));
How can i communicate with tabhost in monthview class?
Use the getParent()
method on MonthView
.
精彩评论