Update to platforms;android-28.
[android_tools.git] / sdk / platforms / android-28 / data / res / layout / autofill_save.xml
blobd903524263113e1f4a4f566d05a3afb14e95e48e
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2017 The Android Open Source Project
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
8           http://www.apache.org/licenses/LICENSE-2.0
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 -->
17 <!-- NOTE: outer layout is required to provide proper shadow. -->
18 <LinearLayout
19     xmlns:android="http://schemas.android.com/apk/res/android"
20     android:layout_width="fill_parent"
21     android:layout_height="wrap_content"
22     android:orientation="vertical">
24     <LinearLayout
25         xmlns:android="http://schemas.android.com/apk/res/android"
26         android:id="@+id/autofill_save"
27         android:layout_width="fill_parent"
28         android:layout_height="wrap_content"
29         android:layout_marginTop="32dp"
30         android:paddingTop="16dp"
31         android:elevation="32dp"
32         android:background="?android:attr/colorBackground"
33         android:orientation="vertical">
35         <LinearLayout
36             android:layout_width="fill_parent"
37             android:layout_height="wrap_content"
38             android:paddingStart="16dp"
39             android:paddingEnd="16dp"
40             android:orientation="vertical">
42             <LinearLayout
43                 android:layout_width="fill_parent"
44                 android:layout_height="wrap_content"
45                 android:orientation="horizontal">
47                 <ImageView
48                     android:id="@+id/autofill_save_icon"
49                     android:scaleType="fitStart"
50                     android:layout_width="24dp"
51                     android:layout_height="24dp"/>
53                 <TextView
54                     android:id="@+id/autofill_save_title"
55                     android:paddingStart="8dp"
56                     android:layout_width="fill_parent"
57                     android:layout_height="wrap_content"
58                     android:text="@string/autofill_save_title"
59                     android:textSize="16sp"
60                     android:textColor="?android:attr/textColorPrimary"
61                     android:layout_weight="1">
62                 </TextView>
64             </LinearLayout>
66             <com.android.server.autofill.ui.CustomScrollView
67                 android:id="@+id/autofill_save_custom_subtitle"
68                 android:layout_width="match_parent"
69                 android:layout_height="wrap_content"
70                 android:layout_marginTop="4dp"
71                 android:visibility="gone"/>
73         </LinearLayout>
75         <com.android.internal.widget.ButtonBarLayout
76             android:layout_width="wrap_content"
77             android:layout_height="wrap_content"
78             android:layout_gravity="end"
79             android:padding="16dp"
80             android:clipToPadding="false"
81             android:layout_weight="1"
82             android:orientation="horizontal">
84             <Space
85                 android:layout_width="0dp"
86                 android:layout_height="0dp"
87                 android:layout_weight="1"
88                 android:visibility="invisible">
89             </Space>
91             <Button
92                 android:id="@+id/autofill_save_no"
93                 android:layout_width="wrap_content"
94                 android:layout_height="wrap_content"
95                 style="?android:attr/buttonBarButtonStyle"
96                 android:text="@string/autofill_save_no">
97             </Button>
99             <Button
100                 android:id="@+id/autofill_save_yes"
101                 android:layout_width="wrap_content"
102                 android:layout_height="wrap_content"
103                 style="@style/Widget.DeviceDefault.Button.Colored"
104                 android:text="@string/autofill_save_yes">
105             </Button>
107         </com.android.internal.widget.ButtonBarLayout>
109     </LinearLayout>
111 </LinearLayout>