1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4 * Copyright 2009, The Android Open Source Project 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18--> 19 20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:drawingCacheQuality="auto" 22 android:layout_width="fill_parent" 23 android:layout_height="wrap_content" 24 android:orientation="vertical" 25 android:padding="0dip"> 26 27 <LinearLayout 28 android:layout_width="fill_parent" 29 android:layout_height="wrap_content" 30 android:orientation="horizontal" 31 android:padding="10dip"> 32 33 <ImageView 34 android:id="@+id/icon" 35 android:paddingRight="10dip" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_centerHorizontal="true"/> 39 40 <TextView 41 android:id="@+id/dialog_title" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:layout_centerVertical="true" 45 android:gravity="center_vertical" 46 android:visibility="gone" 47 android:textSize="16dip" 48 android:textStyle="bold" 49 android:textColor="@color/white"/> 50 51 </LinearLayout> 52 53 <LinearLayout 54 android:layout_width="fill_parent" 55 android:layout_height="wrap_content" 56 android:orientation="vertical"> 57 58 <ImageView android:id="@+id/titleDivider" 59 android:layout_width="fill_parent" 60 android:layout_height="1dip" 61 android:scaleType="fitXY" 62 android:gravity="fill_horizontal" 63 android:src="@drawable/dialog_divider_horizontal_light" 64 android:layout_marginLeft="10dip" 65 android:layout_marginRight="10dip"/> 66 67 </LinearLayout> 68 69 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 70 android:layout_width="fill_parent" 71 android:layout_height="wrap_content" 72 android:paddingBottom="10dip" 73 android:layout_weight="1"> 74 75 <LinearLayout 76 android:orientation="vertical" 77 android:layout_width="fill_parent" 78 android:paddingTop="10dip" 79 android:paddingLeft="10dip" 80 android:paddingRight="10dip" 81 android:layout_height="wrap_content"> 82 83 <TextView 84 android:id="@+id/origin" 85 android:layout_width="fill_parent" 86 android:layout_height="wrap_content" 87 android:visibility="gone" 88 android:textStyle="bold" 89 android:gravity="left" 90 android:textSize="16dip" 91 android:textColor="@color/white"/> 92 93 <TextView 94 android:id="@+id/dialog_message" 95 android:layout_width="fill_parent" 96 android:layout_height="wrap_content" 97 android:paddingLeft="4dip" 98 android:paddingTop="10dip" 99 android:gravity="left" 100 android:textSize="16dip" 101 android:textColor="@color/white"/> 102 103 </LinearLayout> 104 105 </ScrollView> 106 107 <LinearLayout 108 android:layout_width="fill_parent" 109 android:background="@color/gray" 110 android:layout_height="wrap_content" 111 android:paddingTop="4dip" 112 android:paddingLeft="0dip" 113 android:paddingRight="0dip"> 114 115 <LinearLayout android:id="@+id/leftSpacer" 116 android:layout_weight="0.25" 117 android:layout_width="0dip" 118 android:layout_height="wrap_content" 119 android:orientation="horizontal" 120 android:visibility="gone"/> 121 122 <Button 123 android:id="@+id/button_allow" 124 android:layout_width="96dip" 125 android:layout_height="48dip" 126 android:layout_gravity="left" 127 android:layout_weight="1" 128 android:maxLines="2" 129 android:textSize="13dip"/> 130 131 <Button 132 android:id="@+id/button_alwaysdeny" 133 android:layout_width="96dip" 134 android:layout_height="48dip" 135 android:layout_gravity="left" 136 android:layout_weight="1" 137 android:maxLines="2" 138 android:textSize="13dip"/> 139 140 <Button 141 android:id="@+id/button_deny" 142 android:layout_width="96dip" 143 android:layout_height="48dip" 144 android:layout_gravity="right" 145 android:layout_weight="1" 146 android:maxLines="2" 147 android:textSize="13dip"/> 148 149 <LinearLayout android:id="@+id/rightSpacer" 150 android:layout_width="0dip" 151 android:layout_weight="0.25" 152 android:layout_height="wrap_content" 153 android:orientation="horizontal" 154 android:visibility="gone" /> 155 156 </LinearLayout> 157 158</LinearLayout> 159