Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2007 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 <!-- placed inside act_edit as tabcontent -->
     18 <com.android.contacts.ui.widget.ReadOnlyContactEditorView
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:layout_width="match_parent"
     21     android:layout_height="wrap_content"
     22     android:orientation="horizontal"
     23 >
     24 
     25     <!-- Left side color bar -->
     26     <ImageView
     27         android:id="@+id/color_bar"
     28         android:layout_width="4dip"
     29         android:layout_height="match_parent"
     30         android:visibility="gone"
     31     />
     32 
     33     <!-- The content -->
     34     <LinearLayout
     35         android:layout_width="0dip"
     36         android:layout_height="wrap_content"
     37         android:layout_weight="1"
     38         android:orientation="vertical"
     39     >
     40 
     41         <!-- Account info header -->
     42         <RelativeLayout android:id="@+id/header"
     43             android:layout_height="64dip"
     44             android:layout_width="match_parent"
     45         >
     46 
     47             <ImageView android:id="@+id/header_color_bar"
     48                 android:layout_width="match_parent"
     49                 android:layout_height="4dip"
     50                 android:layout_marginBottom="5dip"
     51                 android:background="@color/edit_divider"
     52             />
     53 
     54             <ImageView android:id="@+id/header_icon"
     55                 android:layout_width="wrap_content"
     56                 android:layout_height="wrap_content"
     57                 android:layout_marginLeft="7dip"
     58                 android:layout_marginRight="7dip"
     59                 android:layout_centerVertical="true"
     60                 android:layout_below="@id/header_color_bar"
     61             />
     62 
     63             <TextView android:id="@+id/header_account_type"
     64                 android:layout_width="wrap_content"
     65                 android:layout_height="wrap_content"
     66                 android:layout_toRightOf="@+id/header_icon"
     67                 android:layout_alignTop="@id/header_icon"
     68                 android:layout_marginTop="-4dip"
     69 
     70                 android:textSize="24sp"
     71                 android:textColor="?android:attr/textColorPrimary"
     72                 android:singleLine="true"
     73             />
     74 
     75             <TextView android:id="@+id/header_account_name"
     76                 android:layout_width="wrap_content"
     77                 android:layout_height="wrap_content"
     78                 android:layout_toRightOf="@+id/header_icon"
     79                 android:layout_alignBottom="@+id/header_icon"
     80                 android:layout_marginBottom="2dip"
     81 
     82                 android:textAppearance="?android:attr/textAppearanceSmall"
     83                 android:textColor="?android:attr/textColorPrimary"
     84                 android:singleLine="true"
     85             />
     86 
     87             <View
     88                 android:layout_width="match_parent"
     89                 android:layout_height="1px"
     90                 android:layout_alignParentBottom="true"
     91 
     92                 android:background="?android:attr/listDivider"
     93             />
     94 
     95         </RelativeLayout>
     96 
     97         <FrameLayout
     98             android:id="@+id/stub_photo"
     99             android:layout_width="match_parent"
    100             android:layout_height="wrap_content"
    101             android:paddingLeft="12dip"
    102             android:paddingTop="10dip">
    103 
    104             <include
    105                 android:id="@+id/edit_photo"
    106                 layout="@layout/item_photo_editor" />
    107 
    108         </FrameLayout>
    109 
    110         <TextView android:id="@+id/read_only_name"
    111             android:layout_width="match_parent"
    112             android:layout_height="wrap_content"
    113             android:layout_marginTop="6dip"
    114             android:layout_marginBottom="6dip"
    115             android:layout_marginLeft="10dip"
    116 
    117             android:textAppearance="?android:attr/textAppearanceLarge"
    118         />
    119 
    120         <View
    121             android:layout_width="match_parent"
    122             android:layout_height="1px"
    123             android:background="?android:attr/listDivider"
    124         />
    125 
    126         <TextView
    127             android:id="@+id/read_only_warning"
    128             android:layout_width="match_parent"
    129             android:layout_height="wrap_content"
    130             android:layout_marginTop="13dip"
    131             android:layout_marginBottom="13dip"
    132             android:layout_marginLeft="13dip"
    133 
    134             android:textAppearance="?android:attr/textAppearanceSmall"
    135             android:textColor="?android:attr/textColorPrimary"
    136             android:drawableLeft="@android:drawable/ic_dialog_alert"
    137             android:drawablePadding="10dip"
    138         />
    139 
    140         <View
    141             android:layout_width="match_parent"
    142             android:layout_height="1px"
    143             android:background="?android:attr/listDivider"
    144         />
    145 
    146         <LinearLayout android:id="@+id/sect_general"
    147             android:layout_width="match_parent"
    148             android:layout_height="wrap_content"
    149             android:orientation="vertical"
    150         />
    151     </LinearLayout>
    152 
    153 </com.android.contacts.ui.widget.ReadOnlyContactEditorView>
    154