1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2019 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License 15 --> 16 17<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:gravity="center_vertical" 22 android:minHeight="?android:attr/listPreferredItemHeightSmall"> 23 24 <FrameLayout 25 android:id="@android:id/widget_frame" 26 android:layout_width="wrap_content" 27 android:layout_height="match_parent" 28 android:minWidth="?android:attr/listPreferredItemHeightSmall" 29 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 30 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 31 app:layout_constraintBottom_toBottomOf="parent" 32 app:layout_constraintEnd_toEndOf="parent" 33 app:layout_constraintTop_toTopOf="parent" /> 34 35 <TextView 36 android:id="@android:id/title" 37 style="@style/AppPermissionLocationAccuracyTitle" 38 android:layout_width="0dp" 39 android:layout_height="wrap_content" 40 android:ellipsize="end" 41 android:paddingBottom="@dimen/car_preference_row_vertical_margin" 42 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 43 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 44 android:paddingTop="@dimen/car_preference_row_vertical_margin" 45 android:singleLine="true" 46 android:text="@string/app_permission_location_accuracy" 47 android:textAppearance="?android:attr/textAppearanceLarge" 48 app:layout_constraintEnd_toStartOf="@android:id/widget_frame" 49 app:layout_constraintStart_toStartOf="parent" 50 app:layout_constraintTop_toTopOf="parent" 51 app:layout_constraintWidth_default="spread" /> 52 53 <TextView 54 android:id="@android:id/summary" 55 style="@style/AppPermissionLocationAccuracySubtitle" 56 android:layout_width="0dp" 57 android:layout_height="wrap_content" 58 android:paddingBottom="@dimen/car_preference_row_vertical_margin" 59 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 60 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 61 android:text="@string/app_permission_location_accuracy_subtitle" 62 android:textAppearance="?android:attr/textAppearanceSmall" 63 app:layout_constraintEnd_toStartOf="@android:id/widget_frame" 64 app:layout_constraintStart_toStartOf="parent" 65 app:layout_constraintTop_toBottomOf="@android:id/title" 66 app:layout_constraintWidth_default="spread" /> 67 68</androidx.constraintlayout.widget.ConstraintLayout>