开发者

how to communicate between tabhost and actvities

开发者 https://www.devze.com 2023-01-30 05:07 出处:网络
I create my code like that: final TabHost tabHost = getTabHost(); 开发者_运维百科 tabHost.addTab(tabHost.newTabSpec(\"Month\")

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消