Debian Codegraph @

libs/WindowManager/Shell/res/layout/letterbox_education_dialog_layout.xml

raw symbols SCIP
1 <!--
2 ~ Copyright (C) 2022 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 <com.android.wm.shell.compatui.letterboxedu.LetterboxEduDialogLayout
17 xmlns:android="http://schemas.android.com/apk/res/android"
18 xmlns:app="http://schemas.android.com/apk/res-auto"
19 android:layout_width="wrap_content"
20 android:layout_height="wrap_content"
21 android:background="@android:color/system_neutral1_900">
22
23 <!-- The background of the top-level layout acts as the background dim. -->
24
25 <!-- Vertical margin will be set dynamically since it depends on task bounds.
26 Setting the alpha of the dialog container to 0, since it shouldn't be visible until the
27 enter animation starts. -->
28 <FrameLayout
29 android:id="@+id/letterbox_education_dialog_container"
30 android:layout_width="0dp"
31 android:layout_height="wrap_content"
32 android:layout_marginHorizontal="@dimen/letterbox_education_dialog_margin"
33 android:background="@drawable/letterbox_education_dialog_background"
34 android:alpha="0"
35 app:layout_constraintTop_toTopOf="parent"
36 app:layout_constraintBottom_toBottomOf="parent"
37 app:layout_constraintStart_toStartOf="parent"
38 app:layout_constraintEnd_toEndOf="parent"
39 app:layout_constraintWidth_max="@dimen/letterbox_education_dialog_width"
40 app:layout_constrainedHeight="true">
41
42 <!-- The ScrollView should only wrap the content of the dialog, otherwise the background
43 corner radius will be cut off when scrolling to the top/bottom. -->
44 <ScrollView
45 android:layout_width="match_parent"
46 android:layout_height="wrap_content">
47
48 <LinearLayout
49 android:layout_width="match_parent"
50 android:layout_height="wrap_content"
51 android:gravity="center_horizontal"
52 android:orientation="vertical"
53 android:paddingTop="32dp"
54 android:paddingBottom="32dp"
55 android:paddingLeft="56dp"
56 android:paddingRight="56dp">
57
58 <ImageView
59 android:layout_width="@dimen/letterbox_education_dialog_title_icon_width"
60 android:layout_height="@dimen/letterbox_education_dialog_title_icon_height"
61 android:layout_marginBottom="17dp"
62 android:src="@drawable/letterbox_education_ic_light_bulb"/>
63
64 <TextView
65 android:id="@+id/letterbox_education_dialog_title"
66 android:layout_width="match_parent"
67 android:layout_height="wrap_content"
68 android:lineSpacingExtra="4sp"
69 android:text="@string/letterbox_education_dialog_title"
70 android:textAlignment="center"
71 android:textColor="@color/compat_controls_text"
72 android:textSize="24sp"/>
73
74 <LinearLayout
75 android:layout_width="wrap_content"
76 android:layout_height="wrap_content"
77 android:gravity="top"
78 android:orientation="horizontal"
79 android:paddingTop="48dp">
80
81 <com.android.wm.shell.compatui.letterboxedu.LetterboxEduDialogActionLayout
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 app:icon="@drawable/letterbox_education_ic_reposition"
85 app:text="@string/letterbox_education_reposition_text"/>
86
87 <com.android.wm.shell.compatui.letterboxedu.LetterboxEduDialogActionLayout
88 android:layout_width="wrap_content"
89 android:layout_height="wrap_content"
90 android:layout_marginStart=
91 "@dimen/letterbox_education_dialog_space_between_actions"
92 app:icon="@drawable/letterbox_education_ic_split_screen"
93 app:text="@string/letterbox_education_split_screen_text"/>
94
95 </LinearLayout>
96
97 <Button
98 android:id="@+id/letterbox_education_dialog_dismiss_button"
99 android:layout_width="match_parent"
100 android:layout_height="56dp"
101 android:layout_marginTop="40dp"
102 android:background=
103 "@drawable/letterbox_education_dismiss_button_background_ripple"
104 android:text="@string/letterbox_education_got_it"
105 android:textColor="@android:color/system_neutral1_900"
106 android:textAlignment="center"
107 android:contentDescription="@string/letterbox_education_got_it"/>
108
109 </LinearLayout>
110
111 </ScrollView>
112
113 </FrameLayout>
114
115 </com.android.wm.shell.compatui.letterboxedu.LetterboxEduDialogLayout>