Clicking on QC header expands the header
* The maximum expansion size of the image is equal to its width.
* For the minimum header size. We now rely on android.R.attr.actionBarSize
instead of using a value in dimens.
Change-Id: I9e2438a457bd2afc50f07d028c810efc8455678e
diff --git a/res/layout/quickcontact_activity.xml b/res/layout/quickcontact_activity.xml
index a7c12dd..8f78811 100644
--- a/res/layout/quickcontact_activity.xml
+++ b/res/layout/quickcontact_activity.xml
@@ -26,7 +26,7 @@
<FrameLayout
android:layout_width="match_parent"
- android:layout_height="@dimen/quickcontact_maximum_header_height"
+ android:layout_height="match_parent"
android:layout_marginTop="@dimen/quickcontact_starting_empty_height"
android:background="@color/card_margin_color"
android:id="@+id/toolbar_parent">
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index cb9f101..99bc345 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -18,15 +18,8 @@
<!-- Initial height of transparent space above QuickContacts -->
<dimen name="quickcontact_starting_empty_height">150dp</dimen>
- <!-- Initial/maximum height of QuickContact's header/avatar-photo -->
- <dimen name="quickcontact_maximum_header_height">200dp</dimen>
- <!-- Minimum height of QuickContact's header/avatar-photo -->
- <dimen name="quickcontact_minimum_header_height">64dp</dimen>
- <!-- If you scroll the QuickContact by this amount over the top of viewport,
- the MultiShrinkScroller will smoothScroll the QuickContact to the top of the
- viewport. This is used to give a sense of elasticity surrounding
- the top of the viewport. -->
- <dimen name="quickcontact_elastic_scroll_over_top_region">50dp</dimen>
+ <!-- Initial height of QuickContact's header/avatar-photo -->
+ <dimen name="quickcontact_starting_header_height">200dp</dimen>
<!-- Top padding of the entire contact editor -->
<dimen name="editor_padding_top">0dip</dimen>