タイトルが示すように、アプリでこの TabView を設定しようとしていますが、そのアクティビティを実行するたびに、黒い画面だけですか? 私はいくつかのチュートリアルを調べましたが、まだ運がありません.これが私の活動にあるものです..
protected void onCreate(LayoutInflater inflater, ViewGroup container,
    Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.tabView);
    TabHost tabHost = (TabHost) findViewById(R.id.tabhost);
    tabHost.setup();
    ActionBar bar = getActionBar();
    bar.setBackgroundDrawable(new ColorDrawable(Color.BLACK));
    getActionBar().setDisplayShowTitleEnabled(false);
    TabSpec tabSpec1 = tabHost.newTabSpec("tag1");
    tabSpec1.setContent(R.id.Tab1);
    tabSpec1.setIndicator("Tab1");
    tabHost.addTab(tabSpec1); 
    TabSpec tabSpec2 = tabHost.newTabSpec("tag2");
    tabSpec2.setContent(R.id.Tab2);
    tabSpec2.setIndicator("Tab2");
    tabHost.addTab(tabSpec2);
    TabSpec tabSpec3 = tabHost.newTabSpec("tag3");
    tabSpec3.setContent(R.id.Tab3);
    tabSpec3.setIndicator("Tab3");
    tabHost.addTab(tabSpec3);
}