1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 * Copyright (C) 2008 Esmertec AG. 5 * Copyright (C) 2008 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 --> 20 21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content" 24 android:orientation="vertical"> 25 26 <LinearLayout 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:orientation="vertical" 30 android:layout_marginLeft="14dip" 31 android:layout_marginRight="14dip"> 32 <LinearLayout 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:orientation="horizontal" 36 android:gravity="center_vertical" 37 android:layout_marginTop="2dip" 38 android:layout_marginBottom="5dip" 39 android:layout_marginLeft="2dip" 40 android:layout_marginRight="5dip"> 41 <ImageView 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:paddingLeft="10dip" 45 android:src="@android:drawable/ic_dialog_alert"/> 46 <TextView 47 style="?android:attr/textAppearanceLarge" 48 android:paddingLeft="10dip" 49 android:paddingTop="10dip" 50 android:paddingBottom="10dip" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:gravity="center_vertical" 54 android:text="@string/rate_limit_surpassed" /> 55 </LinearLayout> 56 <ImageView 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:src="@android:drawable/divider_horizontal_dark"/> 60 </LinearLayout> 61 62 <LinearLayout 63 android:layout_width="match_parent" 64 android:layout_height="0dip" 65 android:layout_weight="1" 66 android:orientation="vertical" 67 android:layout_marginLeft="14dip" 68 android:layout_marginRight="14dip"> 69 <TextView 70 style="?android:attr/textAppearanceMedium" 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content" 73 android:padding="5dip" 74 android:text="@string/confirm_rate_limit" /> 75 </LinearLayout> 76 77 <LinearLayout android:id="@+id/buttonPanel" 78 android:layout_width="match_parent" 79 android:layout_height="wrap_content" 80 android:layout_marginLeft="14dip" 81 android:layout_marginRight="14dip" 82 android:orientation="vertical" > 83 84 <LinearLayout 85 android:layout_width="match_parent" 86 android:layout_height="1dip" 87 android:layout_marginBottom="2dip" 88 android:background="@android:drawable/divider_horizontal_bright" 89 android:orientation="vertical" /> 90 <LinearLayout 91 android:layout_width="match_parent" 92 android:layout_height="wrap_content" 93 android:orientation="horizontal" > 94 <Button android:id="@+id/btn_yes" 95 android:layout_width="0dip" 96 android:layout_gravity="left" 97 android:layout_weight="1" 98 android:maxLines="2" 99 android:layout_height="wrap_content" 100 android:text="@android:string/yes" /> 101 <Button android:id="@+id/btn_no" 102 android:layout_width="0dip" 103 android:layout_gravity="right" 104 android:layout_weight="1" 105 android:maxLines="2" 106 android:layout_height="wrap_content" 107 android:text="@android:string/no"> 108 </Button> 109 </LinearLayout> 110 </LinearLayout> 111 </LinearLayout> 112