1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2010 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 <LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/active_layout" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical"> 23 24 <ScrollView 25 android:layout_width="match_parent" 26 android:layout_height="0dip" 27 android:layout_weight="1.0" 28 android:paddingLeft="16dip" 29 android:paddingRight="16dip" 30 android:scrollbarStyle="outsideOverlay" 31 android:gravity="top"> 32 <LinearLayout 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:orientation="vertical"> 36 37 <LinearLayout 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content" 40 android:orientation="horizontal" 41 android:layout_marginTop="16dip"> 42 <ImageView android:id="@+id/admin_icon" 43 android:layout_width="@android:dimen/app_icon_size" 44 android:layout_height="@android:dimen/app_icon_size" 45 android:layout_marginRight="16dip" 46 android:layout_gravity="center_vertical" 47 android:scaleType="fitCenter"/> 48 <TextView android:id="@+id/admin_name" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_weight="1" 52 android:layout_marginBottom="2dip" 53 android:layout_gravity="center_vertical" 54 android:textAppearance="?android:attr/textAppearanceMedium" 55 android:textStyle="bold" 56 android:singleLine="true" 57 android:ellipsize="marquee" /> 58 </LinearLayout> 59 60 <LinearLayout 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content" 63 android:orientation="vertical"> 64 <TextView android:id="@+id/admin_description" 65 android:layout_width="fill_parent" 66 android:layout_height="0dip" 67 android:layout_weight="0" 68 android:padding="0dip" /> 69 <LinearLayout 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:orientation="horizontal" 73 android:gravity="center_vertical"> 74 <ImageView android:id="@+id/add_msg_expander" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:gravity="center_vertical" /> 78 <TextView android:id="@+id/add_msg" 79 android:layout_width="fill_parent" 80 android:layout_height="wrap_content" 81 android:gravity="center_vertical" 82 android:padding="10dip" /> 83 </LinearLayout> 84 85 <TextView android:id="@+id/admin_warning" 86 android:layout_width="fill_parent" 87 android:layout_height="wrap_content" 88 android:layout_weight="1" 89 android:padding="10dip" /> 90 <LinearLayout android:id="@+id/admin_policies" 91 android:layout_width="match_parent" 92 android:layout_height="wrap_content" 93 android:layout_weight="1" 94 android:orientation="vertical" 95 android:paddingLeft="16dip" 96 android:paddingRight="12dip" /> 97 </LinearLayout> 98 99 </LinearLayout> 100 </ScrollView> 101 102 <LinearLayout android:id="@+id/buttonPanel" 103 android:layout_width="match_parent" 104 android:layout_height="wrap_content" 105 android:orientation="vertical" 106 android:divider="?android:attr/dividerHorizontal" 107 android:showDividers="beginning"> 108 <LinearLayout 109 style="?android:attr/buttonBarStyle" 110 android:layout_width="match_parent" 111 android:layout_height="wrap_content" 112 android:orientation="horizontal" 113 android:measureWithLargestChild="true"> 114 <LinearLayout android:id="@+id/leftSpacer" 115 android:layout_weight="0.25" 116 android:layout_width="0dip" 117 android:layout_height="wrap_content" 118 android:orientation="horizontal" 119 android:visibility="gone" /> 120 <Button android:id="@+id/cancel_button" 121 android:layout_width="0dip" 122 android:layout_gravity="right" 123 android:layout_weight="1" 124 android:maxLines="2" 125 android:text="@string/cancel" 126 style="?android:attr/buttonBarButtonStyle" 127 android:layout_height="wrap_content" /> 128 <Button android:id="@+id/action_button" 129 android:layout_width="0dip" 130 android:layout_gravity="left" 131 android:layout_weight="1" 132 android:maxLines="2" 133 style="?android:attr/buttonBarButtonStyle" 134 android:layout_height="wrap_content" /> 135 <LinearLayout android:id="@+id/rightSpacer" 136 android:layout_width="0dip" 137 android:layout_weight="0.25" 138 android:layout_height="wrap_content" 139 android:orientation="horizontal" 140 android:visibility="gone" /> 141 </LinearLayout> 142 </LinearLayout> 143 144 </LinearLayout> 145