dialog_title_icons_material.xml revision 304a13b25bf9e35afb83df83202c271fd2685126
1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2014 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<!-- 18This is an optimized layout for a screen, with the minimum set of features 19enabled. 20--> 21 22<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:orientation="vertical" 24 android:fitsSystemWindows="true"> 25 26 <LinearLayout android:id="@+id/title_container" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:orientation="horizontal" 30 android:gravity="center_vertical" 31 android:paddingStart="@dimen/alert_dialog_padding_material" 32 android:paddingEnd="@dimen/alert_dialog_padding_material" 33 android:paddingTop="@dimen/alert_dialog_padding_material"> 34 <ImageView android:id="@+id/left_icon" 35 android:layout_width="32dip" 36 android:layout_height="32dip" 37 android:scaleType="fitCenter" 38 android:layout_marginEnd="8dip" /> 39 <TextView android:id="@id/title" 40 style="?attr/windowTitleStyle" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_weight="0" /> 44 <ImageView android:id="@+id/right_icon" 45 android:layout_width="32dip" 46 android:layout_height="32dip" 47 android:scaleType="fitCenter" 48 android:layout_marginStart="8dip" /> 49 </LinearLayout> 50 51 <FrameLayout 52 android:layout_width="match_parent" android:layout_height="wrap_content" 53 android:layout_weight="1" 54 android:orientation="vertical" 55 android:foreground="?attr/windowContentOverlay"> 56 <FrameLayout android:id="@id/content" 57 android:layout_width="match_parent" 58 android:layout_height="match_parent" /> 59 </FrameLayout> 60</LinearLayout> 61