• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <LinearLayout
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content"
27        android:orientation="horizontal"
28        android:background="@*android:drawable/title_bar_medium">
29        <TextView android:id="@+id/title"
30            android:layout_width="match_parent"
31            android:layout_height="match_parent"
32            android:gravity="center"
33            android:textAppearance="?android:attr/textAppearanceLarge"
34            android:textColor="?android:attr/textColorPrimary"
35            android:shadowColor="?android:attr/colorBackground"
36            android:shadowRadius="2" />
37    </LinearLayout>
38
39    <ScrollView
40        android:layout_width="match_parent"
41        android:layout_height="0dip"
42        android:layout_weight="1.0"
43        android:gravity="top">
44        <LinearLayout
45            android:layout_width="match_parent"
46            android:layout_height="wrap_content"
47            android:orientation="vertical">
48
49            <LinearLayout
50                android:layout_width="match_parent"
51                android:layout_height="wrap_content"
52                android:orientation="horizontal">
53                <ImageView android:id="@+id/admin_icon"
54                    android:layout_width="@android:dimen/app_icon_size"
55                    android:layout_height="@android:dimen/app_icon_size"
56                    android:layout_marginLeft="5dip"
57                    android:layout_marginRight="11dip"
58                    android:layout_gravity="center_vertical"
59                    android:scaleType="fitCenter"/>
60                <TextView android:id="@+id/admin_name"
61                    android:layout_width="wrap_content"
62                    android:layout_height="wrap_content"
63                    android:layout_weight="1"
64                    android:layout_marginBottom="2dip"
65                    android:layout_gravity="center_vertical"
66                    android:textAppearance="?android:attr/textAppearanceMedium"
67                    android:textStyle="bold"
68                    android:singleLine="true"
69                    android:ellipsize="marquee" />
70            </LinearLayout>
71
72            <LinearLayout
73                android:layout_width="match_parent"
74                android:layout_height="wrap_content"
75                android:orientation="vertical">
76                <TextView android:id="@+id/admin_description"
77                    android:layout_width="fill_parent"
78                    android:layout_height="0dip"
79                    android:layout_weight="0"
80                    android:padding="0dip" />
81                <LinearLayout
82                    android:layout_width="match_parent"
83                    android:layout_height="wrap_content"
84                    android:orientation="horizontal"
85                    android:gravity="center_vertical">
86                    <ImageView android:id="@+id/add_msg_expander"
87                        android:layout_width="wrap_content"
88                        android:layout_height="wrap_content"
89                        android:gravity="center_vertical" />
90                    <TextView android:id="@+id/add_msg"
91                        android:layout_width="fill_parent"
92                        android:layout_height="wrap_content"
93                        android:gravity="center_vertical"
94                        android:padding="10dip" />
95                </LinearLayout>
96
97                <TextView android:id="@+id/admin_warning"
98                    android:layout_width="fill_parent"
99                    android:layout_height="wrap_content"
100                    android:layout_weight="1"
101                    android:padding="10dip" />
102                <LinearLayout android:id="@+id/admin_policies"
103                    android:layout_width="match_parent"
104                    android:layout_height="wrap_content"
105                    android:layout_weight="1"
106                    android:orientation="vertical"
107                    android:paddingLeft="16dip"
108                    android:paddingRight="12dip" />
109            </LinearLayout>
110
111        </LinearLayout>
112    </ScrollView>
113
114    <LinearLayout style="@android:style/ButtonBar"
115        android:layout_width="match_parent"
116        android:layout_height="wrap_content"
117        android:orientation="horizontal">
118        <View
119           android:layout_width="0dip"
120           android:layout_height="0dip"
121           android:layout_weight="1" />
122        <Button android:id="@+id/action_button"
123            android:layout_width="wrap_content"
124            android:layout_height="wrap_content"
125            android:layout_weight="1" />
126        <View
127           android:layout_width="0dip"
128           android:layout_height="0dip"
129           android:layout_weight="1" />
130        <Button android:id="@+id/cancel_button"
131            android:layout_width="wrap_content"
132            android:layout_height="wrap_content"
133            android:layout_weight="1"
134            android:text="@string/cancel" />
135        <View
136           android:layout_width="0dip"
137           android:layout_height="0dip"
138           android:layout_weight="1" />
139    </LinearLayout>
140
141</LinearLayout>
142