1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2016 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<ScrollView 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:fillViewport="true" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 <LinearLayout 22 android:id="@android:id/content" 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:orientation="vertical"> 26 27 <FrameLayout 28 android:adjustViewBounds="true" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:minHeight="@dimen/diag_preferred_padding"> 32 <ImageView android:id="@android:id/icon" 33 android:adjustViewBounds="true" 34 android:maxHeight="24dp" 35 android:maxWidth="24dp" 36 android:layout_marginTop="@dimen/diag_icon_margin_top" 37 android:layout_marginBottom="8dp" 38 android:layout_gravity="center_horizontal" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:scaleType="centerInside" 42 android:visibility="gone" 43 android:src="@null" /> 44 </FrameLayout> 45 46 <TextView android:id="@android:id/title" 47 android:gravity="center" 48 android:layout_marginBottom="8dp" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:paddingLeft="@dimen/diag_preferred_padding" 52 android:paddingRight="@dimen/diag_preferred_padding" 53 android:textAppearance="@android:style/TextAppearance.Material.Title" /> 54 55 <TextView 56 android:id="@android:id/message" 57 android:gravity="center" 58 android:layout_marginBottom="8dp" 59 android:layout_height="wrap_content" 60 android:layout_width="match_parent" 61 android:paddingLeft="@dimen/diag_preferred_padding" 62 android:paddingRight="@dimen/diag_preferred_padding" 63 android:textAppearance="@android:style/TextAppearance.Material.Subhead" 64 android:visibility="gone" /> 65 66 <FrameLayout 67 android:id="@+id/buttonPanel" 68 android:layout_weight="1" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content"> 71 <LinearLayout 72 android:id="@+id/buttonContainer" 73 android:orientation="horizontal" 74 android:gravity="center_horizontal|top" 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:layout_gravity="bottom" 78 android:paddingTop="8dp" 79 android:paddingBottom="@dimen/diag_button_padding_bottom" 80 android:paddingLeft="@dimen/diag_button_padding_horizontal" 81 android:paddingRight="@dimen/diag_button_padding_horizontal" 82 style="?android:attr/buttonBarStyle"> 83 84 <ImageButton 85 android:id="@android:id/button2" 86 android:src="@drawable/ic_cc_clear" 87 android:background="@drawable/accept_deny_dialog_negative_bg" 88 android:contentDescription="@string/generic_cancel" 89 android:layout_width="@dimen/diag_button_size" 90 android:layout_height="@dimen/diag_button_size" 91 android:visibility="gone" /> 92 93 <Space 94 android:id="@+id/spacer" 95 android:layout_width="0dp" 96 android:layout_height="0dp" 97 android:visibility="gone" 98 android:layout_weight="1" /> 99 100 <ImageButton 101 android:id="@android:id/button1" 102 android:src="@drawable/ic_cc_checkmark" 103 android:background="@drawable/accept_deny_dialog_positive_bg" 104 android:contentDescription="@string/generic_yes" 105 android:layout_width="@dimen/diag_button_size" 106 android:layout_height="@dimen/diag_button_size" 107 android:visibility="gone" /> 108 </LinearLayout> 109 </FrameLayout> 110 </LinearLayout> 111</ScrollView> 112