| <?xml version="1.0" encoding="utf-8"?> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <Button |
| android:id="@+id/before_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="Before Button"/> |
| |
| <TabHost |
| android:id="@android:id/tabhost" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical"> |
| |
| <TabWidget |
| android:id="@android:id/tabs" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"></TabWidget> |
| |
| <FrameLayout |
| android:id="@android:id/tabcontent" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <LinearLayout |
| android:id="@+id/tab1" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical"> |
| |
| <Button |
| android:id="@+id/tab1_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="Tab 1 Content" /> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/tab2" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical"> |
| |
| <Button |
| android:id="@+id/tab2_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="Tab 2 Content" /> |
| </LinearLayout> |
| </FrameLayout> |
| </LinearLayout> |
| </TabHost> |
| </LinearLayout> |