1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 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<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/privacy_item" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:minHeight="48dp" 23 android:orientation="horizontal" 24 android:layout_marginTop="4dp" 25 android:importantForAccessibility="yes" 26 android:background="?android:attr/selectableItemBackground" 27 android:focusable="true" 28 > 29 <!-- 4dp marginTop makes 20dp minimum between icons --> 30 <ImageView 31 android:id="@+id/icon" 32 android:layout_width="@dimen/ongoing_appops_dialog_circle_size" 33 android:layout_height="@dimen/ongoing_appops_dialog_circle_size" 34 android:layout_gravity="center_vertical" 35 /> 36 37 <TextView 38 android:id="@+id/text" 39 android:layout_height="wrap_content" 40 android:minHeight="48dp" 41 android:layout_width="0dp" 42 android:layout_weight="1" 43 android:layout_gravity="center_vertical" 44 android:layout_marginStart="16dp" 45 android:layout_marginEnd="16dp" 46 android:textDirection="locale" 47 android:textAlignment="viewStart" 48 android:gravity="start | center_vertical" 49 android:textAppearance="@style/TextAppearance.PrivacyDialog" 50 android:lineHeight="20sp" 51 /> 52 53 <ImageView 54 android:id="@+id/chevron" 55 android:layout_height="24dp" 56 android:layout_width="24dp" 57 android:layout_gravity="center_vertical" 58 android:src="@*android:drawable/ic_chevron_end" 59 android:tint="?android:attr/textColorPrimary" 60 /> 61 62</LinearLayout>