1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:orientation="vertical"
22    android:padding="4dp"
23    android:gravity="center_horizontal">
24
25    <!-- Message to show to use. -->
26    <ImageView
27        android:id="@+id/image"
28        android:layout_width="48dip"
29        android:layout_height="48dip"
30        android:layout_marginBottom="8dip"
31    />
32    <TextView
33        android:id="@+id/text"
34        android:layout_width="match_parent"
35        android:layout_height="wrap_content"
36        android:padding="16dp"
37        android:text="@string/pin_shortcut_message"
38        android:textAppearance="?android:attr/textAppearanceMedium" />
39    <TextView
40        android:id="@+id/shortcut_description"
41        android:layout_width="match_parent"
42        android:layout_height="wrap_content"
43        android:padding="16dp"
44        android:textAppearance="?android:attr/textAppearanceMedium" />
45
46    <!-- Alert dialog style buttons along the bottom. -->
47    <LinearLayout
48        style="?android:attr/buttonBarStyle"
49        android:layout_width="match_parent"
50        android:layout_height="wrap_content"
51        android:measureWithLargestChild="true">
52        <Button
53            style="?android:attr/buttonBarButtonStyle"
54            android:id="@+id/ok"
55            android:layout_width="wrap_content"
56            android:layout_height="wrap_content"
57            android:layout_weight="1"
58            android:onClick="onClick"
59            android:text="@android:string/ok" />
60        <Button
61            style="?android:attr/buttonBarButtonStyle"
62            android:id="@+id/cancel"
63            android:layout_width="wrap_content"
64            android:layout_height="wrap_content"
65            android:layout_weight="1"
66            android:onClick="onClick"
67            android:text="@android:string/cancel" />
68    </LinearLayout>
69</LinearLayout>