summaryrefslogtreecommitdiffstats
path: root/res/layout-land
diff options
context:
space:
mode:
authorWalter Jang <wjang@google.com>2015-02-24 13:08:16 -0800
committerWalter Jang <wjang@google.com>2015-02-24 13:43:12 -0800
commita5e4bb287ea08f895c84d5de56fcc2483386b306 (patch)
treebd87082b76e66a09f3d60297e89e4a4643b18b3d /res/layout-land
parent83d09b68e139f830956b448a0b7ad395de7d2f2a (diff)
downloadpackages_apps_Contacts-a5e4bb287ea08f895c84d5de56fcc2483386b306.tar.gz
packages_apps_Contacts-a5e4bb287ea08f895c84d5de56fcc2483386b306.tar.bz2
packages_apps_Contacts-a5e4bb287ea08f895c84d5de56fcc2483386b306.zip
Use a split screen for the compact contact editor in landscape
Also renamed the compact header since we're not doing the toolbar over the photo right now. Bug 19124091 Change-Id: I91032e149252d635d564064a3652df4cc0233c6c
Diffstat (limited to 'res/layout-land')
-rw-r--r--res/layout-land/compact_contact_editor_fragment.xml59
1 files changed, 59 insertions, 0 deletions
diff --git a/res/layout-land/compact_contact_editor_fragment.xml b/res/layout-land/compact_contact_editor_fragment.xml
new file mode 100644
index 000000000..ffc8f4f4d
--- /dev/null
+++ b/res/layout-land/compact_contact_editor_fragment.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<com.android.contacts.editor.CompactRawContactsEditorView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/editors"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@color/background_primary"
+ android:orientation="horizontal"
+ android:visibility="invisible">
+
+ <com.android.contacts.editor.CompactPhotoEditorView
+ android:id="@+id/photo_editor"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_horizontal"
+ android:orientation="vertical">
+
+ <com.android.contacts.widget.QuickContactImageView
+ android:id="@+id/photo"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:clickable="true"
+ android:scaleType="centerCrop"/>
+
+ </com.android.contacts.editor.CompactPhotoEditorView>
+
+ <ScrollView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:fadingEdge="none"
+ android:fillViewport="true">
+
+ <LinearLayout android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <include layout="@layout/compact_contact_editor_fields"/>
+
+ </LinearLayout>
+
+ </ScrollView>
+
+</com.android.contacts.editor.CompactRawContactsEditorView> \ No newline at end of file