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_weight="1" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content"> 30 31 <TextView 32 android:id="@+id/install_confirm_question" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:text="@string/install_confirm_question" 36 android:textAppearance="?android:attr/textAppearanceMedium" 37 android:paddingTop="20dip" 38 android:paddingLeft="20dip" 39 android:paddingBottom="20dip"/> 40 41 <ScrollView 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:fillViewport="true" 45 android:layout_weight="1"> 46 47 <!-- Security settings description. --> 48 <LinearLayout 49 android:id="@+id/permissions_section" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:layout_marginRight = "2dip" 53 android:orientation="vertical"> 54 <TextView 55 android:id="@+id/security_settings_desc" 56 android:text="@string/security_settings_desc" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:textAppearance="?android:attr/textAppearanceMedium" 60 android:paddingTop="20dip" 61 android:paddingLeft="20dip" 62 android:paddingBottom="20dip"/> 63 64 <LinearLayout 65 android:id="@+id/security_settings_list" 66 android:layout_width="match_parent" 67 android:layout_height="wrap_content" 68 android:layout_weight="1.0" 69 android:orientation="vertical"/> 70 </LinearLayout> 71 </ScrollView> 72 73 <!-- OK confirm and cancel buttons. --> 74 <LinearLayout 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:orientation="horizontal" 78 style="@android:style/ButtonBar" 79 > 80 <Button android:id="@+id/ok_button" 81 android:layout_width="0dip" 82 android:layout_height="wrap_content" 83 android:layout_weight="1" 84 android:filterTouchesWhenObscured="true" 85 android:text="@string/install" 86 /> 87 88 <Button android:id="@+id/cancel_button" 89 android:layout_width="0dip" 90 android:layout_height="wrap_content" 91 android:layout_weight="1" 92 android:text="@string/cancel" 93 /> 94 </LinearLayout> 95 </LinearLayout> 96