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:layout_gravity="start|center_vertical"
30        android:paddingStart="?attr/dialogPreferredPadding"
31        android:paddingTop="@dimen/dialog_padding_top_material"
32        android:paddingEnd="?attr/dialogPreferredPadding"
33        style="@style/TextAppearance.Material.Subhead" />
34
35    <FrameLayout android:id="@+id/contentPanel"
36        android:layout_width="match_parent"
37        android:layout_height="wrap_content"
38        android:layout_weight="1"
39        android:minHeight="48dp">
40        <ListView android:id="@id/list"
41            android:layout_width="match_parent"
42            android:layout_height="wrap_content"
43            android:drawSelectorOnTop="false"
44            android:layout_weight="1"
45            android:scrollbarAlwaysDrawVerticalTrack="true"
46            android:choiceMode="singleChoice" />
47    </FrameLayout>
48
49    <LinearLayout android:id="@+id/buttonPanel"
50        style="?attr/buttonBarStyle"
51        android:layout_width="match_parent"
52        android:layout_height="wrap_content"
53        android:layoutDirection="locale"
54        android:orientation="horizontal"
55        android:paddingStart="12dp"
56        android:paddingEnd="12dp"
57        android:paddingTop="8dp"
58        android:paddingBottom="8dp"
59        android:gravity="bottom">
60        <Space
61            android:layout_width="0dp"
62            android:layout_height="0dp"
63            android:layout_weight="1"
64            android:visibility="invisible" />
65        <Button android:id="@+id/button1"
66            style="?attr/buttonBarNegativeButtonStyle"
67            android:layout_width="wrap_content"
68            android:layout_height="wrap_content"
69            android:text="@android:string/no"
70            android:onClick="onCancelButtonClicked" />
71        <Button android:id="@+id/button2"
72            style="?attr/buttonBarPositiveButtonStyle"
73            android:layout_width="wrap_content"
74            android:layout_height="wrap_content"
75            android:text="@android:string/yes"
76            android:onClick="onOkButtonClicked" />
77    </LinearLayout>
78</LinearLayout>
79