1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 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 18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/list_item_permission" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:orientation="horizontal" 23 android:paddingStart="32dp" 24 android:paddingEnd="32dp" 25 android:paddingTop="6dp" 26 android:paddingBottom="6dp"> 27 28 <ImageView 29 android:id="@+id/permission_icon" 30 android:layout_width="24dp" 31 android:layout_height="24dp" 32 android:layout_marginTop="8dp" 33 android:layout_marginEnd="12dp" 34 android:importantForAccessibility="no" 35 android:contentDescription="@null"/> 36 37 <LinearLayout 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:orientation="vertical" 41 android:gravity="center_vertical" 42 android:padding="6dp" 43 android:layout_weight="1"> 44 45 <TextView 46 android:id="@+id/permission_name" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:textSize="16sp" 50 android:layout_marginTop="2dp" 51 style="@style/TextAppearance" 52 android:textColor="?android:attr/textColorPrimary"/> 53 54 <TextView 55 android:id="@+id/permission_summary" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:textSize="14sp" 59 android:layout_marginTop="2dp" 60 style="@style/TextAppearance" 61 android:focusable="true" 62 android:textColor="?android:attr/textColorSecondary"/> 63 64 </LinearLayout> 65 66 <ImageButton 67 android:id="@+id/permission_expand_button" 68 android:layout_width="24dp" 69 android:layout_height="24dp" 70 android:src="@drawable/btn_expand_more" 71 android:layout_marginTop="8dp" 72 android:layout_marginStart="24dp" 73 android:background="@android:color/transparent" 74 android:clickable="false" 75 android:importantForAccessibility="no" 76 android:contentDescription="@null"/> 77 78</LinearLayout>