• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  ~ Copyright (C) 2023 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<ScrollView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:id="@+id/new_user_dialog_id">
23
24    <LinearLayout
25        android:orientation="vertical"
26        android:layout_width="match_parent"
27        android:layout_height="match_parent"
28        android:gravity="center"
29        android:padding="@dimen/dialog_content_padding">
30        <ImageView
31            android:id="@+id/dialog_with_icon_icon"
32            android:layout_width="wrap_content"
33            android:layout_height="wrap_content"
34            android:tint="?androidprv:attr/colorAccent"
35            android:importantForAccessibility="no"/>
36        <TextView
37            android:id="@+id/dialog_with_icon_title"
38            android:layout_width="match_parent"
39            android:layout_height="wrap_content"
40            android:hyphenationFrequency="fullFast"
41            android:gravity="center"
42            style="@style/DialogWithIconTitle"/>
43        <TextView
44            android:id="@+id/dialog_with_icon_message"
45            android:layout_width="match_parent"
46            android:layout_height="wrap_content"
47            android:hyphenationFrequency="fullFast"
48            android:gravity="center"
49            style="@style/TextAppearanceSmall"/>
50
51        <LinearLayout
52            android:id="@+id/custom_layout"
53            android:orientation="vertical"
54            android:layout_width="match_parent"
55            android:layout_height="wrap_content"
56            android:gravity="center">
57        </LinearLayout>
58
59        <LinearLayout
60            android:id="@+id/button_panel"
61            android:orientation="horizontal"
62            android:layout_width="match_parent"
63            android:layout_height="wrap_content"
64            android:gravity="center">
65
66            <Button
67                android:id="@+id/button_cancel"
68                style="@style/DialogButtonNegative"
69                android:layout_width="wrap_content"
70                android:layout_height="wrap_content"
71                android:visibility="gone"/>
72
73            <Space
74                android:layout_width="0dp"
75                android:layout_height="1dp"
76                android:layout_weight="1">
77            </Space>
78
79            <Button
80                android:id="@+id/button_back"
81                android:layout_width="wrap_content"
82                android:layout_height="wrap_content"
83                style="@style/DialogButtonNegative"
84                android:visibility="gone"/>
85
86            <Space
87                android:layout_width="0dp"
88                android:layout_height="1dp"
89                android:layout_weight="0.05">
90            </Space>
91
92            <Button
93                android:id="@+id/button_ok"
94                android:layout_width="wrap_content"
95                android:layout_height="wrap_content"
96                style="@style/DialogButtonPositive"
97                android:visibility="gone"/>
98        </LinearLayout>
99    </LinearLayout>
100</ScrollView>
101