Android O MR1 SDK.
[android_tools.git] / sdk / platforms / android-27 / data / res / layout / alert_dialog_title_material.xml
blobeef95859cab6412fd3a01277a6cc4b26fcd98f5a
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3      Copyright (C) 2015 The Android Open Source Project
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
9           http://www.apache.org/licenses/LICENSE-2.0
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 -->
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19               android:id="@+id/topPanel"
20               android:layout_width="match_parent"
21               android:layout_height="wrap_content"
22               android:orientation="vertical">
24     <!-- If the client uses a customTitle, it will be added here. -->
26     <LinearLayout
27         android:id="@+id/title_template"
28         android:layout_width="match_parent"
29         android:layout_height="wrap_content"
30         android:orientation="horizontal"
31         android:gravity="center_vertical|start"
32         android:paddingStart="?attr/dialogPreferredPadding"
33         android:paddingEnd="?attr/dialogPreferredPadding"
34         android:paddingTop="@dimen/dialog_padding_top_material">
36         <ImageView
37             android:id="@+id/icon"
38             android:layout_width="32dip"
39             android:layout_height="32dip"
40             android:layout_marginEnd="8dip"
41             android:scaleType="fitCenter"
42             android:src="@null" />
44         <com.android.internal.widget.DialogTitle
45             android:id="@+id/alertTitle"
46             android:singleLine="true"
47             android:ellipsize="end"
48             android:layout_width="match_parent"
49             android:layout_height="wrap_content"
50             android:textAlignment="viewStart"
51             style="?attr/windowTitleStyle" />
52     </LinearLayout>
54     <Space
55         android:id="@+id/titleDividerNoCustom"
56         android:visibility="gone"
57         android:layout_width="match_parent"
58         android:layout_height="@dimen/dialog_title_divider_material" />
59 </LinearLayout>