Home | History | Annotate | Download | only in layout
      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:paddingStart="16dip"
     29         android:paddingEnd="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 
     43                 <ImageView android:id="@+id/admin_icon"
     44                     android:layout_width="@android:dimen/app_icon_size"
     45                     android:layout_height="@android:dimen/app_icon_size"
     46                     android:layout_marginEnd="16dip"
     47                     android:layout_gravity="center_vertical"
     48                     android:scaleType="fitCenter"
     49                     android:contentDescription="@null" />
     50 
     51                 <TextView android:id="@+id/admin_name"
     52                     android:layout_width="wrap_content"
     53                     android:layout_height="wrap_content"
     54                     android:layout_weight="1"
     55                     android:layout_marginBottom="2dip"
     56                     android:layout_gravity="center_vertical"
     57                     android:textAppearance="?android:attr/textAppearanceMedium"
     58                     android:textStyle="bold"
     59                     android:singleLine="true"
     60                     android:ellipsize="marquee" />
     61             </LinearLayout>
     62 
     63             <LinearLayout
     64                 android:layout_width="match_parent"
     65                 android:layout_height="wrap_content"
     66                 android:orientation="vertical">
     67 
     68                 <TextView android:id="@+id/profile_owner_warning"
     69                     android:layout_width="fill_parent"
     70                     android:layout_height="wrap_content"
     71                     android:padding="0dp"
     72                     android:visibility="gone"
     73                     android:text="@string/adding_profile_owner_warning" />
     74 
     75                 <TextView android:id="@+id/admin_description"
     76                     android:layout_width="fill_parent"
     77                     android:layout_height="0dip"
     78                     android:layout_weight="0"
     79                     android:padding="0dip" />
     80 
     81                 <LinearLayout
     82                     android:layout_width="match_parent"
     83                     android:layout_height="wrap_content"
     84                     android:orientation="horizontal"
     85                     android:gravity="center_vertical">
     86 
     87                     <ImageView android:id="@+id/add_msg_expander"
     88                         android:layout_width="wrap_content"
     89                         android:layout_height="wrap_content"
     90                         android:gravity="center_vertical"
     91                         android:contentDescription="@null" />
     92 
     93                     <TextView android:id="@+id/add_msg"
     94                         android:layout_width="fill_parent"
     95                         android:layout_height="wrap_content"
     96                         android:gravity="center_vertical"
     97                         android:padding="10dip" />
     98                 </LinearLayout>
     99 
    100                 <TextView android:id="@+id/admin_warning"
    101                     android:layout_width="fill_parent"
    102                     android:layout_height="wrap_content"
    103                     android:layout_weight="1"
    104                     android:padding="10dip" />
    105                 <LinearLayout android:id="@+id/admin_policies"
    106                     android:layout_width="match_parent"
    107                     android:layout_height="wrap_content"
    108                     android:layout_weight="1"
    109                     android:orientation="vertical"
    110                     android:paddingStart="16dip"
    111                     android:paddingEnd="12dip" />
    112             </LinearLayout>
    113 
    114         </LinearLayout>
    115     </ScrollView>
    116 
    117     <LinearLayout android:id="@+id/buttonPanel"
    118         android:layout_width="match_parent"
    119         android:layout_height="wrap_content"
    120         android:orientation="vertical"
    121         android:divider="?android:attr/dividerHorizontal"
    122         android:showDividers="beginning">
    123         <LinearLayout
    124             style="?android:attr/buttonBarStyle"
    125             android:layout_width="match_parent"
    126             android:layout_height="wrap_content"
    127             android:orientation="horizontal"
    128             android:measureWithLargestChild="true">
    129             <LinearLayout android:id="@+id/leftSpacer"
    130                 android:layout_weight="0.25"
    131                 android:layout_width="0dip"
    132                 android:layout_height="wrap_content"
    133                 android:orientation="horizontal"
    134                 android:visibility="gone" />
    135             <Button android:id="@+id/cancel_button"
    136                 android:layout_width="0dip"
    137                 android:layout_gravity="end"
    138                 android:layout_weight="1"
    139                 android:maxLines="2"
    140                 android:text="@string/cancel"
    141                 style="?android:attr/buttonBarButtonStyle"
    142                 android:layout_height="wrap_content" />
    143             <Button android:id="@+id/action_button"
    144                 android:layout_width="0dip"
    145                 android:layout_gravity="start"
    146                 android:layout_weight="1"
    147                 android:maxLines="2"
    148                 style="?android:attr/buttonBarButtonStyle"
    149                 android:layout_height="wrap_content" />
    150             <LinearLayout android:id="@+id/rightSpacer"
    151                 android:layout_width="0dip"
    152                 android:layout_weight="0.25"
    153                 android:layout_height="wrap_content"
    154                 android:orientation="horizontal"
    155                 android:visibility="gone" />
    156         </LinearLayout>
    157      </LinearLayout>
    158 
    159 </LinearLayout>
    160