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    >
22    <TextView
23        android:layout_width="match_parent"
24        android:layout_height="wrap_content"
25        android:layout_weight="0"
26        android:text="@string/header_current_locale"
27        android:textAppearance="@style/TextAppearance.header"
28        android:gravity="center_horizontal"
29        android:background="@color/header_background"
30        />
31    <TextView
32        android:id="@+id/current_locale"
33        android:layout_width="match_parent"
34        android:layout_height="wrap_content"
35        android:layout_weight="0"
36        android:padding="5dip"
37        />
38    <TextView
39        android:layout_width="match_parent"
40        android:layout_height="wrap_content"
41        android:layout_weight="0"
42        android:text="@string/header_locale_list"
43        android:textAppearance="@style/TextAppearance.header"
44        android:gravity="center_horizontal"
45        android:background="@color/header_background"
46        />
47
48    <FrameLayout
49        android:layout_width="match_parent"
50        android:layout_height="match_parent"
51        android:layout_weight="1"
52        >
53        <ListView
54            android:id="@id/android:list"
55            android:layout_width="match_parent"
56            android:layout_height="match_parent"
57            android:fastScrollEnabled="true"
58            android:focusable="true"
59            android:focusableInTouchMode="true"
60            android:padding="8dip"
61            />
62        <TextView
63            android:id="@id/android:empty"
64            android:layout_width="match_parent"
65            android:layout_height="match_parent"
66            android:text="@string/no_data_label"
67            android:gravity="center"
68            />
69    </FrameLayout>
70
71    <LinearLayout
72        android:layout_width="match_parent"
73        android:layout_height="wrap_content"
74        android:layout_weight="0"
75        >
76        <Button
77            android:id="@+id/select_locale_button"
78            android:layout_width="match_parent"
79            android:layout_height="wrap_content"
80            android:layout_weight="0.9"
81            android:layout_gravity="center_vertical"
82            android:text="@string/select_locale_button"
83            />
84        <Button
85            android:id="@+id/add_new_locale_button"
86            android:layout_width="match_parent"
87            android:layout_height="wrap_content"
88            android:layout_weight="1"
89            android:layout_gravity="center_vertical"
90            android:text="@string/add_new_locale_button"
91            />
92        <Button
93            android:id="@+id/remove_locale_button"
94            android:layout_width="match_parent"
95            android:layout_height="wrap_content"
96            android:layout_weight="1"
97            android:layout_marginLeft="5dip"
98            android:layout_gravity="center_vertical"
99            android:text="@string/remove_locale_button"
100            />
101    </LinearLayout>
102</LinearLayout>
103