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<RelativeLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 style="@style/AppAuthenticationPolicyItem" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content"> 22 23 <ImageView 24 android:id="@+id/app_icon" 25 style="@style/AppAuthenticationPolicyIcon" 26 android:layout_width="24dp" 27 android:layout_height="24dp"/> 28 29 <RelativeLayout 30 android:id="@+id/app_details" 31 android:layout_width="fill_parent" 32 android:layout_height="wrap_content" 33 android:layout_toRightOf="@id/app_icon" 34 android:layout_toLeftOf="@id/expand" 35 android:layout_marginTop="16dp" 36 android:layout_marginBottom="16dp" 37 android:orientation="vertical"> 38 39 <TextView 40 android:id="@+id/app_name" 41 style="@style/AppAuthenticationPolicyText" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content"/> 44 45 <TextView 46 android:id="@+id/number_of_uris" 47 style="@style/AppAuthenticationPolicyNumberOfUrisText" 48 android:layout_below="@id/app_name" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:visibility="gone"/> 52 53 <androidx.recyclerview.widget.RecyclerView 54 android:id="@+id/uris" 55 android:layout_below="@id/app_name" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content"/> 58 59 </RelativeLayout> 60 61 <ImageView 62 android:id="@+id/expand" 63 style="@style/AppAuthenticationExpander" 64 android:layout_width="30dp" 65 android:layout_height="30dp" 66 android:visibility="gone"/> 67 68</RelativeLayout> 69