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<androidx.coordinatorlayout.widget.CoordinatorLayout 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:fitsSystemWindows="true" 23 android:clipChildren="true"> 24 25 <RelativeLayout 26 android:layout_width="match_parent" 27 android:layout_height="match_parent"> 28 29 <androidx.recyclerview.widget.RecyclerView 30 android:id="@+id/apps_list" 31 android:layout_width="match_parent" 32 android:layout_height="match_parent"/> 33 34 <LinearLayout 35 android:id="@+id/button_panel" 36 style="@style/RequestManageCredentialsButtonPanel" 37 android:layout_width="match_parent" 38 android:layout_height="wrap_content"> 39 40 <Button 41 android:id="@+id/dont_allow_button" 42 style="@style/RequestManageCredentialsDontAllowButton" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:text="@string/request_manage_credentials_dont_allow"/> 46 47 <Space 48 android:layout_width="0dp" 49 android:layout_height="0dp" 50 android:layout_weight="1" 51 android:visibility="invisible"/> 52 53 <Button 54 android:id="@+id/allow_button" 55 style="@style/RequestManageCredentialsAllowButton" 56 android:theme="@style/RoundedCornerButtonTheme" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:text="@string/request_manage_credentials_allow"/> 60 61 </LinearLayout> 62 63 </RelativeLayout> 64 65 <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton 66 android:id="@+id/extended_fab" 67 style="@style/RequestManageCredentialsFab" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:text="@string/request_manage_credentials_more" 71 android:textColor="?android:attr/colorBackground" 72 app:layout_anchor="@id/apps_list" 73 app:layout_anchorGravity="bottom|center" 74 app:elevation="3dp" 75 app:icon="@drawable/ic_arrow_downward" 76 app:iconTint="?android:attr/colorBackground" 77 app:backgroundTint="?android:attr/colorAccent" 78 android:theme="@style/Theme.CollapsingToolbar.Settings"/> 79 80</androidx.coordinatorlayout.widget.CoordinatorLayout> 81