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