Update to platforms;android-28.
[android_tools.git] / sdk / platforms / android-28 / data / res / layout-television / autofill_save.xml
blobebd2dec3fc0f6ee59ed2fafbaa80b00734a860e1
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2018 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="match_parent"
21     android:layout_height="wrap_content"
22     android:orientation="vertical">
24     <LinearLayout
25         android:orientation="horizontal"
26         android:id="@+id/autofill_save"
27         android:background="?android:attr/colorBackground"
28         android:layout_marginTop="32dp"
29         android:layout_width="match_parent"
30         android:layout_height="wrap_content"
31         android:paddingStart="40dp"
32         android:paddingEnd="40dp"
33         android:paddingTop="40dp"
34         android:paddingBottom="40dp">
36         <LinearLayout
37             android:orientation="vertical"
38             android:layout_width="0dp"
39             android:layout_height="wrap_content"
40             android:layout_weight="1"
41             android:layout_marginEnd="32dp">
43             <LinearLayout
44                 android:orientation="horizontal"
45                 android:layout_width="match_parent"
46                 android:layout_height="wrap_content"
47                 android:layout_marginBottom="6dp">
49                 <ImageView
50                     android:id="@+id/autofill_save_icon"
51                     android:scaleType="fitStart"
52                     android:layout_marginEnd="10dp"
53                     android:layout_gravity="center_vertical"
54                     android:layout_width="48dp"
55                     android:layout_height="48dp"/>
56                 <TextView
57                     android:id="@+id/autofill_save_title"
58                     android:layout_width="wrap_content"
59                     android:layout_height="wrap_content"
60                     android:text="@string/autofill_save_title"
61                     android:layout_gravity="center_vertical"
62                     android:textSize="24sp" />
63             </LinearLayout>
65             <com.android.server.autofill.ui.CustomScrollView
66                 android:id="@+id/autofill_save_custom_subtitle"
67                 android:layout_width="match_parent"
68                 android:layout_height="wrap_content"
69                 android:layout_marginTop="4dp"
70                 android:visibility="gone"/>
72         </LinearLayout>
74         <LinearLayout
75             android:layout_width="304dp"
76             android:layout_height="wrap_content"
77             android:orientation="vertical">
79             <Button
80                 android:id="@+id/autofill_save_no"
81                 style="?attr/borderlessButtonStyle"
82                 android:textAlignment="viewStart"
83                 android:layout_width="match_parent"
84                 android:layout_height="wrap_content"
85                 android:text="@string/autofill_save_no">
86             </Button>
88             <Button
89                 android:id="@+id/autofill_save_yes"
90                 style="?attr/borderlessButtonStyle"
91                 android:textAlignment="viewStart"
92                 android:layout_width="match_parent"
93                 android:layout_height="wrap_content"
94                 android:text="@string/autofill_save_yes">
95             </Button>
96         </LinearLayout>
98     </LinearLayout>
100 </LinearLayout>