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.ContactEditorView
     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         <include
    111             android:id="@+id/edit_name"
    112             android:layout_width="match_parent"
    113             android:layout_height="wrap_content"
    114             android:layout_below="@id/stub_photo"
    115             android:layout_marginTop="6dip"
    116             android:layout_marginBottom="4dip"
    117             layout="@layout/item_generic_editor" />
    118 
    119         <TextView android:id="@+id/read_only_name"
    120             android:layout_width="match_parent"
    121             android:layout_height="wrap_content"
    122             android:layout_marginTop="6dip"
    123             android:layout_marginBottom="6dip"
    124             android:layout_marginLeft="10dip"
    125 
    126             android:textAppearance="?android:attr/textAppearanceLarge"
    127         />
    128 
    129         <LinearLayout
    130             android:id="@+id/sect_general"
    131             android:layout_width="match_parent"
    132             android:layout_height="wrap_content"
    133             android:orientation="vertical"
    134         />
    135 
    136         <View android:id="@+id/head_secondary_divider"
    137             android:layout_width="match_parent"
    138             android:layout_height="1px"
    139             android:background="?android:attr/listDivider" />
    140 
    141         <TextView
    142             android:id="@+id/head_secondary"
    143             android:layout_width="match_parent"
    144             android:layout_height="wrap_content"
    145 
    146             android:gravity="center_vertical"
    147             android:minHeight="?android:attr/listPreferredItemHeight"
    148             android:text="@string/edit_secondary_collapse"
    149             android:textAppearance="?android:attr/textAppearanceMedium"
    150             android:textColor="@color/kind_title"
    151             android:singleLine="true"
    152             android:ellipsize="marquee"
    153             android:focusable="true"
    154             android:clickable="true"
    155             android:paddingLeft="10dip"
    156             android:drawablePadding="10dip" />
    157 
    158         <LinearLayout
    159             android:id="@+id/sect_secondary"
    160             android:layout_width="match_parent"
    161             android:layout_height="wrap_content"
    162             android:orientation="vertical" />
    163 
    164         <TextView
    165             android:id="@+id/edit_read_only"
    166             android:layout_width="match_parent"
    167             android:layout_height="wrap_content"
    168             android:layout_marginTop="10dip"
    169             android:layout_marginBottom="10dip"
    170             android:layout_marginLeft="10dip"
    171 
    172             android:textAppearance="?android:attr/textAppearanceSmall"
    173             android:textColor="?android:attr/textColorPrimary"
    174             android:drawableLeft="@android:drawable/ic_dialog_alert"
    175             android:drawablePadding="10dip"
    176         />
    177 
    178     </LinearLayout>
    179 
    180 </com.android.contacts.ui.widget.ContactEditorView>
    181