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