1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2020 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<RelativeLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:id="@+id/interact_across_profiles_dialog_layout"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:paddingStart="24dp"
24    android:paddingEnd="24dp"
25    android:orientation="horizontal">
26
27    <ScrollView
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content">
30        <LinearLayout
31            android:id="@+id/interact_across_profiles_dialog"
32            android:layout_width="match_parent"
33            android:layout_height="wrap_content"
34            android:layout_centerHorizontal="true"
35            android:gravity="start"
36            android:orientation="vertical">
37
38            <TextView
39                android:id="@+id/interact_across_profiles_consent_dialog_title"
40                android:text="@string/interact_across_profiles_consent_dialog_title"
41                style="@style/CrossProfileConsentDialogTitle"/>
42
43            <TextView
44                android:id="@+id/interact_across_profiles_consent_dialog_summary"
45                android:text="@string/interact_across_profiles_consent_dialog_summary"
46                style="@style/CrossProfileConsentDialogDescription"/>
47
48            <LinearLayout
49                android:id="@+id/app_data_content"
50                android:layout_width="match_parent"
51                android:layout_height="wrap_content"
52                android:paddingBottom="16pt"
53                android:gravity="start"
54                android:orientation="horizontal">
55
56                <ImageView
57                    android:id="@+id/app_data_icon"
58                    android:src="@drawable/ic_analytics_grey"
59                    style="@style/CrossProfileConsentDialogIcon"/>
60
61                <LinearLayout
62                    android:id="@+id/app_data_text"
63                    android:layout_width="wrap_content"
64                    android:layout_height="wrap_content"
65                    android:paddingStart="16dp"
66                    android:gravity="start"
67                    android:orientation="vertical">
68
69                    <TextView
70                        android:id="@+id/app_data_title"
71                        android:text="@string/interact_across_profiles_consent_dialog_app_data_title"
72                        style="@style/CrossProfileConsentDialogSubTitle"/>
73
74                    <TextView
75                        android:id="@+id/app_data_summary"
76                        android:text="@string/interact_across_profiles_consent_dialog_app_data_summary"
77                        style="@style/CrossProfileConsentDialogSubDescription"/>
78                </LinearLayout>
79            </LinearLayout>
80
81            <LinearLayout
82                android:id="@+id/permissions_content"
83                android:layout_width="match_parent"
84                android:layout_height="wrap_content"
85                android:gravity="start"
86                android:orientation="horizontal">
87
88                <ImageView
89                    android:id="@+id/permissions_icon"
90                    android:src="@drawable/ic_storage_grey"
91                    style="@style/CrossProfileConsentDialogIcon"/>
92
93                <LinearLayout
94                    android:id="@+id/permissions_text"
95                    android:layout_width="wrap_content"
96                    android:layout_height="wrap_content"
97                    android:gravity="start"
98                    android:paddingStart="16dp"
99                    android:orientation="vertical">
100
101                    <TextView
102                        android:id="@+id/permissions_title"
103                        android:text="@string/interact_across_profiles_consent_dialog_permissions_title"
104                        style="@style/CrossProfileConsentDialogSubTitle"/>
105
106                    <TextView
107                        android:id="@+id/permissions_summary"
108                        android:text="@string/interact_across_profiles_consent_dialog_permissions_summary"
109                        style="@style/CrossProfileConsentDialogSubDescription"/>
110                </LinearLayout>
111            </LinearLayout>
112        </LinearLayout>
113    </ScrollView>
114</RelativeLayout>
115