summaryrefslogtreecommitdiffstats
path: root/res/layout-land
diff options
context:
space:
mode:
authorBrian Attwell <brianattwell@google.com>2014-06-23 18:25:32 -0700
committerBrian Attwell <brianattwell@google.com>2014-06-24 16:08:21 -0700
commit9b889e6ef4534db6925e3f915bed281733ea8bc3 (patch)
treecd9847a7b01c90425ed33691ddf3c2cd8eeaf3fa /res/layout-land
parent7b0b0ce616c6c2fa149918c112128388712f5657 (diff)
downloadpackages_apps_Contacts-9b889e6ef4534db6925e3f915bed281733ea8bc3.tar.gz
packages_apps_Contacts-9b889e6ef4534db6925e3f915bed281733ea8bc3.tar.bz2
packages_apps_Contacts-9b889e6ef4534db6925e3f915bed281733ea8bc3.zip
Bag o' QC UX improvements
UX and I spent a couple days trying out different tweaks to QC. This is the result. Main Changes: -landscape -better blending, and interpolation of blended values -different scrim animation length -updated colors & dimensions -scaling of title TextView during scroll -EdgeEffect color is now dynamic -Drop shadow size Bug: 15725269 Change-Id: Ib992b41692704d3d932527cef715693ed7a7f4cc
Diffstat (limited to 'res/layout-land')
-rw-r--r--res/layout-land/quickcontact_activity.xml64
1 files changed, 24 insertions, 40 deletions
diff --git a/res/layout-land/quickcontact_activity.xml b/res/layout-land/quickcontact_activity.xml
index 552f568ea..65fcd7d5f 100644
--- a/res/layout-land/quickcontact_activity.xml
+++ b/res/layout-land/quickcontact_activity.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2011 The Android Open Source Project
+<!-- Copyright (C) 2014 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.
@@ -13,45 +13,29 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<LinearLayout
+<com.android.contacts.widget.MultiShrinkScroller
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:ex="http://schemas.android.com/apk/res-auto"
- android:id="@android:id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:padding="32dip"
- android:orientation="horizontal">
- <view
- class="com.android.contacts.common.widget.ProportionalLayout"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- ex:ratio="1.0"
- ex:direction="heightToWidth">
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <ImageView
- android:id="@+id/photo"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:scaleType="centerCrop"
- android:contentDescription="@string/description_contact_photo" />
- <!-- Need to set a non null background on Toolbar in order for MenuItem
- ripples to be drawn on this view, instead of another-->
- <Toolbar
- android:layout_width="match_parent"
- android:layout_height="?android:attr/actionBarSize"
- android:background="#00000000"
- android:id="@+id/toolbar"/>
- </FrameLayout>
- </view>
- <com.android.contacts.quickcontact.ExpandingEntryCardView
- style="@style/ExpandingEntryCardStyle"
- android:id="@+id/communication_card"
- android:layout_marginTop="@dimen/communication_card_marginTop"
- android:visibility="gone" />
- <com.android.contacts.quickcontact.ExpandingEntryCardView
- style="@style/ExpandingEntryCardStyle"
- android:id="@+id/recent_card"
- android:visibility="gone" />
-</LinearLayout> \ No newline at end of file
+ android:orientation="vertical"
+ android:id="@+id/multiscroller"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:descendantFocusability="afterDescendants" >
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/quickcontact_starting_empty_height"
+ android:id="@+id/transparent_view" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <include layout="@layout/quickcontact_header" />
+
+ <include layout="@layout/quickcontact_content" />
+
+ </LinearLayout>
+
+</com.android.contacts.widget.MultiShrinkScroller> \ No newline at end of file