其实可以看到一点点,貌似被前面挡住了.
<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
android:layout_height="fill_parent" 
xmlns:android="http://schemas.android.com/apk/res/android"
>
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" 
android:layout_height="fill_parent">
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent" 
android:layout_height="@dimen/tab_height"
android:layout_gravity="top"
android:layout_margin="0dp"
android:layout_weight="0.0" />
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent" 
android:layout_height="0dp"
android:layout_weight="1.0" >
</FrameLayout>
</LinearLayout>
</TabHost>代码LayoutInflater inflater_tab1 = LayoutInflater.from(this);   
    inflater_tab1.inflate(R.layout.task_list, tabhost.getTabContentView());  
    inflater_tab1.inflate(R.layout.map_activity_geocoder, tabhost.getTabContentView());
 
tabhost.addTab(tabhost.newTabSpec("0") .setIndicator("List",getResources().getDrawable(R.drawable.title_menu_normal)) .setContent(R.id.task_list)); 

tabhost.addTab(tabhost.newTabSpec("1") .setIndicator("Map",getResources().getDrawable(R.drawable.icon_i)) .setContent(R.id.map_main_Layout)); 
Android