1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 <TabHost 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:paddingStart="@dimen/settings_side_margin" 21 android:paddingEnd="@dimen/settings_side_margin"> 22 23 <LinearLayout 24 android:orientation="vertical" 25 android:layout_width="fill_parent" 26 android:layout_height="fill_parent"> 27 28 <TabWidget 29 android:id="@android:id/tabs" 30 android:layout_width="fill_parent" 31 android:layout_height="wrap_content" /> 32 33 <FrameLayout 34 android:id="@android:id/tabcontent" 35 android:layout_width="fill_parent" 36 android:layout_height="fill_parent"> 37 38 <FrameLayout 39 android:id="@+id/system_tab" 40 android:layout_width="fill_parent" 41 android:layout_height="fill_parent"> 42 43 <ProgressBar 44 android:id="@+id/system_progress" 45 style="?android:attr/progressBarStyleHorizontal" 46 android:layout_width="fill_parent" 47 android:layout_height="wrap_content" 48 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 49 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 50 android:visibility="gone" /> 51 52 <LinearLayout 53 android:id="@+id/system_content" 54 android:orientation="vertical" 55 android:layout_width="match_parent" 56 android:layout_height="match_parent" 57 android:visibility="gone" 58 android:animateLayoutChanges="true"> 59 </LinearLayout> 60 61 </FrameLayout> 62 63 <FrameLayout 64 android:id="@+id/user_tab" 65 android:layout_width="fill_parent" 66 android:layout_height="fill_parent"> 67 68 <ProgressBar 69 android:id="@+id/user_progress" 70 style="?android:attr/progressBarStyleLarge" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 74 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 75 android:visibility="gone" /> 76 77 <LinearLayout 78 android:id="@+id/user_content" 79 android:orientation="vertical" 80 android:layout_width="match_parent" 81 android:layout_height="match_parent" 82 android:visibility="gone" 83 android:animateLayoutChanges="true"> 84 </LinearLayout> 85 86 </FrameLayout> 87 88 </FrameLayout> 89 90 </LinearLayout> 91 92 </TabHost> 93