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