1 <? XML version = "1.0" encoding = "UTF-8" ?> 2 < Linearlayout Xmlns: Android = "Http://schemas.android.com/apk/res/android" 3 Android: layout_width = "Fill_parent" 4 Android: layout_height = "Fill_parent" 5 Android: Orientation = "Vertical" > 6 7 < Tabhost 8 Android: ID = "@ Android: ID/tabhost" 9 Android: layout_width = "Fill_parent" 10 Android: layout_height = "Fill_parent" > 11 12 <! -- Tabwidget is placed above framelayout by default. You can use linearlayout to place it under framelayout.. If this linearlayout is not added, the tag and content page will overlap. --> 13 < Linearlayout 14 Android: layout_width = "Fill_parent" 15 Android: layout_height = "Fill_parent" 16 Android: gravity = "Center" 17 Android: Orientation = "Vertical" > 18 19 20 21 < Framelayout 22 Android: ID = "@ Android: ID/tabcontent" 23 Android: layout_width = "Fill_parent" 24 Android: layout_height = "Wrap_content" 25 Android: layout_gravity = "Center_vertical" 26 Android: layout_weight = "1" 27 Android: gravity = "Center_vertical" > 28 </ Framelayout > 29 30 < Tabwidget 31 Android: ID = "@ Android: ID/tabs" 32 Android: layout_width = "Fill_parent" 33 Android: layout_height = "52dip" 34 Android: layout_weight = "0" > 35 </ Tabwidget > 36 37 38 39 </ Linearlayout > 40 </ Tabhost > 41 42 43 44 </ Linearlayout >