1<?xml version="1.0" encoding="utf-8"?> 2 3<!-- 4 ~ Copyright (C) 2021 The Android Open Source Project 5 ~ 6 ~ Licensed under the Apache License, Version 2.0 (the "License"); 7 ~ you may not use this file except in compliance with the License. 8 ~ You may obtain a copy of the License at 9 ~ 10 ~ http://www.apache.org/licenses/LICENSE-2.0 11 ~ 12 ~ Unless required by applicable law or agreed to in writing, software 13 ~ distributed under the License is distributed on an "AS IS" BASIS, 14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ~ See the License for the specific language governing permissions and 16 ~ limitations under the License. 17 --> 18<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 21 android:id="@*android:id/topPanel" 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content" 24 android:orientation="vertical" 25 android:paddingStart="@dimen/dialog_side_padding" 26 android:paddingEnd="@dimen/dialog_side_padding" 27> 28 29 <!-- If the client uses a customTitle, it will be added here. --> 30 31 <LinearLayout 32 android:id="@*android:id/title_template" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:orientation="vertical" 36 android:gravity="center_horizontal|top"> 37 38 <ImageView 39 android:id="@*android:id/icon" 40 android:layout_width="32dp" 41 android:layout_height="32dp" 42 android:layout_marginBottom="16dp" 43 android:scaleType="fitCenter" 44 android:src="@null" 45 android:tint="?androidprv:attr/colorAccentPrimaryVariant" 46 /> 47 48 <TextView 49 android:id="@*android:id/alertTitle" 50 android:ellipsize="end" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:layout_marginBottom="16dp" 54 style="@style/TextAppearance.Dialog.Title" /> 55 </LinearLayout> 56 57 <Space 58 android:id="@*android:id/titleDividerNoCustom" 59 android:visibility="gone" 60 android:layout_width="match_parent" 61 android:layout_height="0dp" /> 62</LinearLayout> 63