1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4** 5** Copyright 2012, 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 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 android:orientation="vertical" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:divider="?android:attr/dividerHorizontal" 27 android:showDividers="middle" 28 android:dividerPadding="0dip" > 29 30 <!-- The list of packages that correspond to the requesting UID 31 and the account/authtokenType that is being requested --> 32 <ScrollView 33 android:layout_width="match_parent" 34 android:layout_height="0dp" 35 android:fillViewport="true" 36 android:layout_weight="1" 37 android:gravity="top|center_horizontal"> 38 39 <TextView 40 android:id="@+id/download_over_metered_prompt" 41 android:paddingTop="14dip" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:textAppearance="?android:attr/textAppearanceMedium" 45 android:paddingLeft="16dip" 46 android:paddingRight="16dip" 47 android:paddingBottom="12dip" /> 48 49 </ScrollView> 50 51 <!-- The buttons to trigger download or wait --> 52 <LinearLayout 53 android:id="@+id/buttons" 54 android:layout_width="match_parent" 55 android:layout_height="wrap_content" 56 style="?android:attr/buttonBarStyle"> 57 58 <Button 59 android:id="@+id/deny_button" 60 android:text="@string/do_not_download_over_metered" 61 android:layout_width="0dip" 62 android:layout_height="match_parent" 63 android:layout_weight="2" 64 android:onClick="onClickDeny" 65 style="?android:attr/buttonBarButtonStyle" /> 66 67 <!-- The text of this button contains the size of the dictionary so it will be filled programmatically --> 68 <Button 69 android:id="@+id/allow_button" 70 android:layout_width="0dip" 71 android:layout_height="match_parent" 72 android:layout_weight="2" 73 android:onClick="onClickAllow" 74 style="?android:attr/buttonBarButtonStyle" /> 75 76 </LinearLayout> 77</LinearLayout> 78 79