1 <?xml version=
"1.0" encoding=
"utf-8"?> 
   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.
 
  18 <LinearLayout xmlns:
android=
"http://schemas.android.com/apk/res/android" 
  19         android:
id=
"@+id/parentPanel" 
  20         android:
layout_width=
"match_parent" 
  21         android:
layout_height=
"wrap_content" 
  22         android:
orientation=
"vertical"> 
  25             android:
id=
"@+id/topPanel" 
  26             android:
layout_width=
"match_parent" 
  27             android:
layout_height=
"wrap_content" 
  28             android:
orientation=
"vertical"> 
  31                 android:
id=
"@+id/title_template" 
  32                 android:
layout_width=
"match_parent" 
  33                 android:
layout_height=
"wrap_content" 
  34                 android:
orientation=
"horizontal" 
  35                 android:
gravity=
"center_vertical" 
  36                 android:
paddingLeft=
"?attr/dialogPreferredPadding" 
  37                 android:
paddingRight=
"?attr/dialogPreferredPadding" 
  38                 android:
paddingTop=
"@dimen/abc_dialog_padding_top_material"> 
  41                     android:
id=
"@android:id/icon" 
  42                     android:
layout_width=
"32dip" 
  43                     android:
layout_height=
"32dip" 
  44                     android:
scaleType=
"fitCenter" 
  46                     style=
"@style/RtlOverlay.Widget.AppCompat.DialogTitle.Icon"/> 
  48             <android.support.v7.internal.widget.DialogTitle
 
  49                     android:
id=
"@+id/alertTitle" 
  50                     style=
"?attr/android:windowTitleStyle" 
  51                     android:
singleLine=
"true" 
  52                     android:
ellipsize=
"end" 
  53                     android:
layout_width=
"match_parent" 
  54                     android:
layout_height=
"wrap_content" 
  55                     android:
textAlignment=
"viewStart" /> 
  58         <!-- If the client uses a customTitle, it will be added here. --
> 
  62             android:
id=
"@+id/contentPanel" 
  63             android:
layout_width=
"match_parent" 
  64             android:
layout_height=
"wrap_content" 
  65             android:
layout_weight=
"1" 
  66             android:
minHeight=
"48dp"> 
  69                 android:
id=
"@+id/scrollView" 
  70                 android:
layout_width=
"match_parent" 
  71                 android:
layout_height=
"wrap_content" 
  72                 android:
clipToPadding=
"false"> 
  75                     android:
layout_width=
"match_parent" 
  76                     android:
layout_height=
"wrap_content" 
  77                     android:
orientation=
"vertical"> 
  80                         android:
id=
"@android:id/message" 
  81                         style=
"@style/TextAppearance.AppCompat.Subhead" 
  82                         android:
layout_width=
"match_parent" 
  83                         android:
layout_height=
"wrap_content" 
  84                         android:
paddingLeft=
"?attr/dialogPreferredPadding" 
  85                         android:
paddingTop=
"@dimen/abc_dialog_padding_top_material" 
  86                         android:
paddingRight=
"?attr/dialogPreferredPadding"/> 
  89                         android:
id=
"@+id/textSpacerNoButtons" 
  90                         android:
visibility=
"gone" 
  91                         android:
layout_width=
"0dp" 
  92                         android:
layout_height=
"@dimen/abc_dialog_padding_top_material"/> 
  99             android:
id=
"@+id/customPanel" 
 100             android:
layout_width=
"match_parent" 
 101             android:
layout_height=
"wrap_content" 
 102             android:
layout_weight=
"1" 
 103             android:
minHeight=
"48dp"> 
 106                 android:
id=
"@+id/custom" 
 107                 android:
layout_width=
"match_parent" 
 108                 android:
layout_height=
"wrap_content"/> 
 112             android:
id=
"@+id/buttonPanel" 
 113             style=
"?attr/buttonBarStyle" 
 114             android:
layout_width=
"match_parent" 
 115             android:
layout_height=
"wrap_content" 
 116             android:
layoutDirection=
"locale" 
 117             android:
orientation=
"horizontal" 
 118             android:
paddingLeft=
"12dp" 
 119             android:
paddingRight=
"12dp" 
 120             android:
paddingTop=
"8dp" 
 121             android:
paddingBottom=
"8dp" 
 122             android:
gravity=
"bottom"> 
 125                 android:
id=
"@android:id/button3" 
 126                 style=
"?attr/buttonBarNeutralButtonStyle" 
 127                 android:
layout_width=
"wrap_content" 
 128                 android:
layout_height=
"wrap_content"/> 
 130         <android.support.v4.widget.Space
 
 131                 android:
layout_width=
"0dp" 
 132                 android:
layout_height=
"0dp" 
 133                 android:
layout_weight=
"1" 
 134                 android:
visibility=
"invisible"/> 
 137                 android:
id=
"@android:id/button2" 
 138                 style=
"?attr/buttonBarNegativeButtonStyle" 
 139                 android:
layout_width=
"wrap_content" 
 140                 android:
layout_height=
"wrap_content"/> 
 143                 android:
id=
"@android:id/button1" 
 144                 style=
"?attr/buttonBarPositiveButtonStyle" 
 145                 android:
layout_width=
"wrap_content" 
 146                 android:
layout_height=
"wrap_content"/>