1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2009 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 <LinearLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:orientation="vertical" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 <TextView 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content" 24 android:layout_weight="0" 25 android:text="@string/header_current_locale" 26 android:textAppearance="@style/TextAppearance.header" 27 android:gravity="center_horizontal" 28 android:background="@color/header_background" /> 29 <TextView 30 android:id="@+id/current_locale" 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:layout_weight="0" 34 android:padding="5dip" /> 35 <TextView 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" 38 android:layout_weight="0" 39 android:text="@string/header_locale_list" 40 android:textAppearance="@style/TextAppearance.header" 41 android:gravity="center_horizontal" 42 android:background="@color/header_background" /> 43 <ListView 44 android:id="@id/android:list" 45 android:layout_width="match_parent" 46 android:layout_height="match_parent" 47 android:layout_weight="1" 48 android:padding="8dip" /> 49 <TextView 50 android:id="@id/android:empty" 51 android:layout_width="match_parent" 52 android:layout_height="match_parent" 53 android:text="@string/no_data_label" /> 54 <Button 55 android:id="@+id/new_locale" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 android:layout_weight="0" 59 android:paddingLeft="8dip" 60 android:paddingRight="8dip" 61 android:text="@string/add_new_locale_button" /> 62 </LinearLayout> 63