1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2021 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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:fitsSystemWindows="true"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:orientation="vertical"
24    android:paddingTop="20dp"
25    android:paddingStart="30dp"
26    android:paddingEnd="30dp">
27
28    <LinearLayout
29        android:layout_width="match_parent"
30        android:layout_height="wrap_content"
31        android:orientation="horizontal"
32        android:weightSum="2">
33
34        <LinearLayout
35            android:layout_width="wrap_content"
36            android:layout_height="wrap_content"
37            android:layout_weight="1"
38            style="@style/RequestManageCredentialsHeaderLandscape">
39
40            <ScrollView
41                android:layout_width="wrap_content"
42                android:layout_height="wrap_content"
43                android:scrollbars="none">
44
45                <LinearLayout
46                    android:layout_width="wrap_content"
47                    android:layout_height="wrap_content"
48                    android:orientation="vertical">
49
50                    <ImageView
51                        android:id="@+id/credential_management_app_icon"
52                        android:layout_width="48dp"
53                        android:layout_height="48dp"
54                        android:contentDescription="@null" />
55
56                    <TextView
57                        android:id="@+id/credential_management_app_title"
58                        style="@style/RequestManageCredentialsTitle"
59                        android:layout_width="wrap_content"
60                        android:layout_height="wrap_content" />
61
62                    <TextView
63                        android:id="@+id/credential_management_app_description"
64                        style="@style/RequestManageCredentialsDescription"
65                        android:layout_width="wrap_content"
66                        android:layout_height="wrap_content"
67                        android:text="@string/request_manage_credentials_description" />
68
69                </LinearLayout>
70
71            </ScrollView>
72
73        </LinearLayout>
74
75        <LinearLayout
76            android:layout_width="wrap_content"
77            android:layout_height="match_parent"
78            android:layout_weight="1">
79
80            <RelativeLayout
81                android:layout_width="match_parent"
82                android:layout_height="match_parent"
83                android:orientation="vertical">
84
85                <androidx.coordinatorlayout.widget.CoordinatorLayout
86                    android:layout_width="match_parent"
87                    android:layout_height="wrap_content"
88                    android:clipChildren="true">
89
90                    <androidx.recyclerview.widget.RecyclerView
91                        android:id="@+id/apps_list"
92                        android:layout_width="match_parent"
93                        android:layout_height="match_parent" />
94
95                    <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
96                        android:id="@+id/extended_fab"
97                        style="@style/RequestManageCredentialsFab"
98                        android:layout_width="wrap_content"
99                        android:layout_height="wrap_content"
100                        android:text="@string/request_manage_credentials_more"
101                        android:textColor="?android:attr/colorBackground"
102                        android:theme="@style/Theme.CollapsingToolbar.Settings"
103                        app:backgroundTint="?android:attr/colorAccent"
104                        app:elevation="3dp"
105                        app:icon="@drawable/ic_arrow_downward"
106                        app:iconTint="?android:attr/colorBackground"
107                        app:layout_anchor="@id/apps_list"
108                        app:layout_anchorGravity="bottom|center" />
109
110                </androidx.coordinatorlayout.widget.CoordinatorLayout>
111
112            </RelativeLayout>
113
114        </LinearLayout>
115
116    </LinearLayout>
117
118    <Space
119        android:layout_width="match_parent"
120        android:layout_height="0dp"
121        android:layout_weight="1"/>
122
123    <LinearLayout
124        android:id="@+id/button_panel"
125        style="@style/RequestManageCredentialsButtonPanel"
126        android:layout_width="match_parent"
127        android:layout_height="0dp"
128        android:layout_weight="1"
129        android:gravity="center|bottom">
130
131        <Button
132            android:id="@+id/dont_allow_button"
133            style="@style/RequestManageCredentialsDontAllowButton"
134            android:layout_width="wrap_content"
135            android:layout_height="wrap_content"
136            android:text="@string/request_manage_credentials_dont_allow" />
137
138        <Space
139            android:layout_width="0dp"
140            android:layout_height="0dp"
141            android:layout_weight="1"
142            android:visibility="invisible" />
143
144        <Button
145            android:id="@+id/allow_button"
146            style="@style/RequestManageCredentialsAllowButton"
147            android:theme="@style/RoundedCornerButtonTheme"
148            android:layout_width="wrap_content"
149            android:layout_height="wrap_content"
150            android:text="@string/request_manage_credentials_allow" />
151
152    </LinearLayout>
153
154</LinearLayout>
155