1

我想使用选项卡组活动,我不想使用此代码

    this.tabHost = getTabHost();

    TabHost.TabSpec spec;  // Resusable TabSpec for each tab
    Intent intent;  // Reusable Intent for each tab

    // Create an Intent to launch the first Activity for the tab (to be reused)
    intent = new Intent().setClass(this, LoginTab.class);

    // Initialize a TabSpec for the first tab and add it to the TabHost
    spec = tabHost.newTabSpec("Login").setIndicator("Login",
            getResources().getDrawable(R.drawable.login)).setContent(intent);
    tabHost.addTab(spec);

我实际上想在此使用父子概念,所以请帮助我....

4

0 回答 0