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