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 > 21 <LinearLayout 22 android:orientation="vertical" 23 android:layout_width="fill_parent" 24 android:layout_height="fill_parent" 25 android:padding="5dp" 26 > 27 <TabWidget 28 android:id="@android:id/tabs" 29 android:layout_width="fill_parent" 30 android:layout_height="wrap_content" 31 /> 32 <FrameLayout 33 android:id="@android:id/tabcontent" 34 android:layout_width="fill_parent" 35 android:layout_height="fill_parent" 36 android:padding="5dp" 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:visibility="gone" 49 /> 50 <ListView 51 android:id="@+id/system_list" 52 android:layout_width="fill_parent" 53 android:layout_height="fill_parent" 54 android:visibility="gone" 55 > 56 </ListView> 57 </FrameLayout> 58 <FrameLayout 59 android:id="@+id/user_tab" 60 android:layout_width="fill_parent" 61 android:layout_height="fill_parent" 62 > 63 <ProgressBar 64 android:id="@+id/user_progress" 65 style="?android:attr/progressBarStyleLarge" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:visibility="gone" 69 /> 70 <ListView 71 android:id="@+id/user_list" 72 android:layout_width="fill_parent" 73 android:layout_height="fill_parent" 74 android:visibility="gone" 75 > 76 </ListView> 77 </FrameLayout> 78 </FrameLayout> 79 </LinearLayout> 80 </TabHost> 81