• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2021 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    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/niu_actions_dialog_layout"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:orientation="horizontal"
24    android:layout_gravity="center">
25
26    <Space
27        android:layout_width="0dp"
28        android:layout_height="1dp"
29        android:layout_weight="1"/>
30
31    <LinearLayout
32        android:layout_width="@dimen/modal_dialog_width"
33        android:layout_height="wrap_content"
34        android:background="@drawable/round_rect_dialog"
35        android:backgroundTint="?attr/modalDialogBackground"
36        android:orientation="vertical"
37        android:layout_gravity="center"
38        android:paddingTop="@dimen/modal_dialog_padding"
39        android:paddingLeft="@dimen/modal_dialog_padding"
40        android:paddingRight="@dimen/modal_dialog_padding"
41        android:paddingBottom="@dimen/modal_dialog_padding_bottom">
42
43        <TextView
44            style="@style/ModalDialogTitle"
45            android:id="@+id/niu_actions_dialog_header"/>
46
47        <Space
48            android:layout_width="0dp"
49            android:layout_height="@dimen/modal_dialog_vertical_spacer"/>
50
51        <androidx.constraintlayout.widget.ConstraintLayout
52            android:layout_width="match_parent"
53            android:layout_height="wrap_content">
54
55            <ScrollView
56                android:layout_width="match_parent"
57                android:layout_height="wrap_content"
58                app:layout_constraintTop_toTopOf="parent"
59                app:layout_constraintBottom_toBottomOf="parent"
60                app:layout_constrainedHeight="true"
61                app:layout_constraintHeight_max="@dimen/modal_dialog_text_height">
62
63                <TextView
64                    style="@style/ModalDialogText"
65                    android:id="@+id/niu_actions_dialog_description"/>
66            </ScrollView>
67
68        </androidx.constraintlayout.widget.ConstraintLayout>
69
70
71        <Space
72            android:layout_width="0dp"
73            android:layout_height="@dimen/modal_dialog_vertical_spacer"/>
74
75        <LinearLayout
76            android:layout_width="match_parent"
77            android:layout_height="match_parent"
78            android:orientation="horizontal">
79
80            <Space
81                android:layout_width="0dp"
82                android:layout_height="0dp"
83                android:layout_weight="1"/>
84
85            <Button
86                style="@style/ModalDialogButton"
87                android:id="@+id/niu_actions_dialog_button_1"
88                android:text="@string/dialog_cancel"/>
89
90            <Button
91                style="@style/ModalDialogButton"
92                android:id="@+id/niu_actions_dialog_button_2"
93                android:text="@string/dialog_acknowledge"/>
94        </LinearLayout>
95
96    </LinearLayout>
97
98    <Space
99        android:layout_width="0dp"
100        android:layout_height="1dp"
101        android:layout_weight="1" />
102
103</LinearLayout>