1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* //device/apps/common/assets/res/layout/list_content.xml
4**
5** Copyright 2011, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:orientation="vertical">
24
25    <!-- Customizable description text -->
26    <TextView android:id="@+id/description"
27        android:layout_width="wrap_content"
28        android:layout_height="wrap_content"
29        android:textAppearance="?android:attr/textAppearanceMedium"
30        android:layout_gravity="start|center_vertical"
31        android:paddingTop="16dip"
32        android:paddingBottom="16dip"
33        android:paddingStart="16dip"
34        android:paddingEnd="16dip"
35    />
36
37    <!-- List of accounts, with "Add new account" as the last item -->
38    <ListView android:id="@android:id/list"
39        android:layout_width="match_parent"
40        android:layout_height="wrap_content"
41        android:drawSelectorOnTop="false"
42        android:layout_weight="1"
43        android:scrollbarAlwaysDrawVerticalTrack="true"
44        android:choiceMode="singleChoice" />
45
46    <!-- Horizontal divider line -->
47    <View android:layout_height="1dip"
48        android:layout_width="match_parent"
49        android:background="?android:attr/dividerHorizontal" />
50
51    <!-- Alert dialog style buttons along the bottom. -->
52    <LinearLayout android:id="@+id/button_bar"
53        style="?android:attr/buttonBarStyle"
54        android:layout_width="match_parent"
55        android:layout_height="wrap_content"
56        android:measureWithLargestChild="true">
57        <Button android:id="@android:id/button1"
58            style="?android:attr/buttonBarButtonStyle"
59            android:layout_width="wrap_content" android:layout_height="wrap_content"
60            android:layout_weight="1"
61            android:text="@android:string/no"
62            android:onClick="onCancelButtonClicked" />
63        <Button android:id="@android:id/button2"
64            style="?android:attr/buttonBarButtonStyle"
65            android:layout_width="wrap_content"
66            android:layout_height="wrap_content"
67            android:layout_weight="1"
68            android:text="@android:string/yes"
69            android:onClick="onOkButtonClicked" />
70    </LinearLayout>
71</LinearLayout>
72