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 <com.android.contacts.editor.RawContactReadOnlyEditorView
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:orientation="vertical" >
     22 
     23     <include
     24         layout="@layout/editor_account_header_expandable" />
     25 
     26     <LinearLayout
     27         android:id="@+id/collapsable_section"
     28         android:layout_width="match_parent"
     29         android:layout_height="wrap_content"
     30         android:orientation="vertical" >
     31 
     32         <!-- Want 16dp of apparent top padding. Since TextView has 4dp of inset/padding built in,
     33             only set marginTop=12dp. -->
     34         <LinearLayout
     35             android:layout_width="match_parent"
     36             android:layout_height="wrap_content"
     37             android:layout_marginBottom="@dimen/editor_padding_around_read_only_photo_editor"
     38             android:layout_marginTop="12dp"
     39             android:orientation="horizontal">
     40 
     41             <ImageView
     42                 android:id="@+id/kind_icon"
     43                 android:layout_marginTop="2dp"
     44                 android:src="@drawable/ic_person_black_24dp"
     45                 android:contentDescription="@string/header_name_entry"
     46                 style="@style/EditKindIconStyle" />
     47 
     48             <TextView
     49                 android:id="@+id/read_only_name"
     50                 android:layout_width="match_parent"
     51                 android:layout_height="wrap_content"
     52                 android:layout_marginRight="@dimen/editor_delete_button_width"
     53                 android:singleLine="true"
     54                 android:textSize="@dimen/editor_form_text_size"
     55                 android:textColor="?android:attr/textColorSecondary"
     56                 android:enabled="false"/>
     57 
     58         </LinearLayout>
     59 
     60         <include
     61             android:id="@+id/edit_photo"
     62             layout="@layout/item_photo_editor_readonly" />
     63 
     64         <Button
     65             android:id="@+id/button_edit_externally"
     66             android:text="@string/edit_contact"
     67             android:layout_width="match_parent"
     68             android:layout_height="wrap_content"
     69             android:layout_marginTop="4dp"
     70             android:layout_marginBottom="@dimen/editor_padding_below_photo"
     71             android:layout_marginEnd="13dip"
     72             android:layout_marginStart="13dip"/>
     73 
     74         <LinearLayout android:id="@+id/sect_general"
     75             android:layout_width="match_parent"
     76             android:layout_height="wrap_content"
     77             android:orientation="vertical"/>
     78 
     79     </LinearLayout>
     80 
     81     <View
     82         android:layout_width="match_parent"
     83         android:layout_height="@dimen/divider_line_height"
     84         android:background="@color/divider_line_color_light" />
     85 
     86 </com.android.contacts.editor.RawContactReadOnlyEditorView>
     87