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