From da71919dcd16754cb378fc664967f4b278431c70 Mon Sep 17 00:00:00 2001 From: Brian Attwell Date: Tue, 11 Nov 2014 18:30:05 -0800 Subject: Material design readonly editor The readonly edit screen is a strange beast. At most, it only shows fields for phones, emails, photos and names even if more data is available. This CL updates the appearance of these fields. Bug: 18004959 Change-Id: I25847483cef36bb4c98f4b169970344b90e63add --- res/layout/item_photo_editor_readonly.xml | 59 +++++++++++++++++++++++ res/layout/item_read_only_field.xml | 62 +++++++++++-------------- res/layout/raw_contact_readonly_editor_view.xml | 51 +++++++++++--------- res/layout/structured_name_editor_view.xml | 1 + 4 files changed, 115 insertions(+), 58 deletions(-) create mode 100644 res/layout/item_photo_editor_readonly.xml (limited to 'res/layout') diff --git a/res/layout/item_photo_editor_readonly.xml b/res/layout/item_photo_editor_readonly.xml new file mode 100644 index 000000000..0f9f9354f --- /dev/null +++ b/res/layout/item_photo_editor_readonly.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + diff --git a/res/layout/item_read_only_field.xml b/res/layout/item_read_only_field.xml index d4ae17915..7a7854b8c 100644 --- a/res/layout/item_read_only_field.xml +++ b/res/layout/item_read_only_field.xml @@ -18,50 +18,42 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical"> + android:layout_marginEnd="@dimen/editor_delete_button_width" + android:layout_marginBottom="@dimen/editor_padding_between_editor_views" + android:orientation="horizontal"> - - - - + - + + - + + + android:minHeight="@dimen/editor_min_line_item_height" + android:singleLine="true" + android:saveEnabled="false" + android:enabled="false"/> + - + \ No newline at end of file diff --git a/res/layout/raw_contact_readonly_editor_view.xml b/res/layout/raw_contact_readonly_editor_view.xml index 797162d0c..a1eab9063 100644 --- a/res/layout/raw_contact_readonly_editor_view.xml +++ b/res/layout/raw_contact_readonly_editor_view.xml @@ -19,46 +19,51 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingTop="@dimen/editor_padding_top" - android:paddingBottom="32dip"> + android:paddingTop="@dimen/editor_padding_top"> + + android:layout_height="wrap_content" + android:minHeight="@dimen/editor_min_line_item_height" + android:layout_marginBottom="@dimen/editor_padding_between_editor_views" + android:layout_marginTop="6dp" + android:orientation="horizontal"> + + - - - + android:textSize="@dimen/editor_form_text_size" + android:textColor="?android:attr/textColorSecondary" + android:enabled="false"/> + +