diff options
author | Brian Attwell <brianattwell@google.com> | 2014-06-23 18:25:32 -0700 |
---|---|---|
committer | Brian Attwell <brianattwell@google.com> | 2014-06-24 16:08:21 -0700 |
commit | 9b889e6ef4534db6925e3f915bed281733ea8bc3 (patch) | |
tree | cd9847a7b01c90425ed33691ddf3c2cd8eeaf3fa /res/layout/quickcontact_header.xml | |
parent | 7b0b0ce616c6c2fa149918c112128388712f5657 (diff) | |
download | android_packages_apps_Contacts-9b889e6ef4534db6925e3f915bed281733ea8bc3.tar.gz android_packages_apps_Contacts-9b889e6ef4534db6925e3f915bed281733ea8bc3.tar.bz2 android_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/quickcontact_header.xml')
-rw-r--r-- | res/layout/quickcontact_header.xml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/res/layout/quickcontact_header.xml b/res/layout/quickcontact_header.xml new file mode 100644 index 000000000..0d0691706 --- /dev/null +++ b/res/layout/quickcontact_header.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + 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. + 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. +--> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/card_margin_color" + android:id="@+id/toolbar_parent"> + + <com.android.contacts.widget.QuickContactImageView + 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"/> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@color/actionbar_text_color" + android:maxLines="@integer/quickcontact_title_lines" + android:ellipsize="end" + android:layout_gravity="bottom" + android:textSize="@dimen/quickcontact_maximum_title_size" + android:id="@+id/large_title"/> + +</FrameLayout>
\ No newline at end of file |