blob: 81cfb5ca61e6749ae5041b26e9ae8c2e4d22ed93 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2021 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/title_template"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- Leave this view here so that we don't get any null pointer errors in the alert dialog
class. -->
<ImageView
android:id="@+id/car_ui_alert_icon"
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_marginStart="10dp"
android:layout_marginTop="@dimen/alert_dialog_margin"
android:scaleType="fitCenter"
android:tint="@color/car_ui_text_color_primary"
android:visibility="gone"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/alert_dialog_margin"
android:layout_marginEnd="@dimen/alert_dialog_margin"
android:layout_marginTop="@dimen/alert_dialog_margin"
android:orientation="vertical">
<TextView
android:id="@+id/car_ui_alert_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textAppearance="@style/TextAppearance_CarUi_AlertDialog_Title" />
<TextView
android:id="@+id/car_ui_alert_subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textAppearance="@style/TextAppearance_CarUi_AlertDialog_Subtitle"/>
</LinearLayout>
<View
android:id="@+id/empty_space"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"/>
</LinearLayout>