1
我是Android的noob。我已經設置了FragmentTabHost
現在我有一個問題,有ViewGroup FragmeLayout
,它名爲「tabcontent」。這裏有什麼用途?Android中的FragmentTabHost中的TabContent
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="0" />
<FrameLayout
android:id="@+id/realtabcontent"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:orientation="horizontal" />
</LinearLayout>
這是你所說的不同的事情。您現在使用的方式已被棄用 – Mick