1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2008 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 17 <!-- 18 19 Defines the layout of the splash screen that displays the security 20 settings required for an application and requests the confirmation of the 21 user before it is installed. 22 --> 23 24 <LinearLayout 25 xmlns:android="http://schemas.android.com/apk/res/android" 26 android:orientation="vertical" 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:paddingLeft="8dip" 30 android:paddingRight="8dip"> 31 32 <TextView 33 android:id="@+id/install_confirm_question" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:text="@string/install_confirm_question" 37 android:textAppearance="?android:attr/textAppearanceMedium" 38 style="@style/padded" 39 android:paddingTop="12dip" 40 android:paddingBottom="16dip"/> 41 42 <ScrollView 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:fillViewport="true" 46 android:layout_weight="1"> 47 48 <!-- Security settings description. --> 49 <LinearLayout 50 android:id="@+id/permissions_section" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:layout_marginRight="?android:attr/scrollbarSize" 54 style="@style/padded" 55 android:orientation="vertical"> 56 <TextView 57 android:id="@+id/security_settings_desc" 58 android:text="@string/security_settings_desc" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:textAppearance="?android:attr/textAppearanceMedium" 62 /> 63 <LinearLayout 64 android:id="@+id/security_settings_list" 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 android:layout_weight="1.0" 68 android:orientation="vertical"/> 69 </LinearLayout> 70 </ScrollView> 71 72 <!-- OK confirm and cancel buttons. --> 73 <LinearLayout 74 android:layout_width="match_parent" 75 android:layout_height="wrap_content" 76 android:orientation="vertical" 77 android:divider="?android:attr/dividerHorizontal" 78 android:showDividers="beginning" 79 android:paddingTop="16dip"> 80 81 <LinearLayout 82 style="?android:attr/buttonBarStyle" 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content" 85 android:orientation="horizontal" 86 android:measureWithLargestChild="true"> 87 88 <LinearLayout android:id="@+id/leftSpacer" 89 android:layout_weight="0.25" 90 android:layout_width="0dip" 91 android:layout_height="wrap_content" 92 android:orientation="horizontal" 93 android:visibility="gone" /> 94 95 <Button android:id="@+id/cancel_button" 96 android:layout_width="0dip" 97 android:layout_height="wrap_content" 98 android:layout_gravity="left" 99 android:layout_weight="1" 100 android:text="@string/cancel" 101 android:maxLines="2" 102 style="?android:attr/buttonBarButtonStyle" /> 103 104 <Button android:id="@+id/ok_button" 105 android:layout_width="0dip" 106 android:layout_height="wrap_content" 107 android:layout_gravity="right" 108 android:layout_weight="1" 109 android:text="@string/install" 110 android:maxLines="2" 111 android:filterTouchesWhenObscured="true" 112 style="?android:attr/buttonBarButtonStyle" /> 113 114 <LinearLayout android:id="@+id/rightSpacer" 115 android:layout_width="0dip" 116 android:layout_weight="0.25" 117 android:layout_height="wrap_content" 118 android:orientation="horizontal" 119 android:visibility="gone" /> 120 121 </LinearLayout> 122 </LinearLayout> 123 </LinearLayout> 124