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