From 05b6267428450f190d04af187a206cc495da8995 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 3 Jun 2014 14:03:09 -0700 Subject: DO NOT MERGE. Styling search to match redlines. - This conflicts with some of Sai's changes, so will manually cherrypick this CL back to master.. - Shift arrow/close icons. - Use 20sp font in expanded search (causes baseline to shift down). - Update action bar movement to use dialpad's interpolators and durations. - Smoothed out animations. Icons in the view being faded out are now instantaneously set to GONE. The margin animator when going from collapsed to expanded starts at 0.8f now, so that the searchbox does not shrink momentarily when switched to the 9-patch, because of the shadow. - Fix clipping because of 9-patch; refactored logic for updating the position and padding from the Activity into SearchFragment. This was motivated in part because we want a padding at the top of this list for the first item, but when the dialpad is shown we do not want that padding. Bug: 15343931 Change-Id: I7c3a96dd295c58c6955e6bd3e9d8cda151de4c3f --- res/anim/slide_in.xml | 2 +- res/anim/slide_out.xml | 2 +- res/layout/search_edittext.xml | 42 +++++++++++++++++++------------------- res/values/animation_constants.xml | 2 ++ res/values/dimens.xml | 13 +++++------- 5 files changed, 30 insertions(+), 31 deletions(-) (limited to 'res') diff --git a/res/anim/slide_in.xml b/res/anim/slide_in.xml index b0eed3713..4463f2f24 100644 --- a/res/anim/slide_in.xml +++ b/res/anim/slide_in.xml @@ -15,6 +15,6 @@ --> \ No newline at end of file diff --git a/res/anim/slide_out.xml b/res/anim/slide_out.xml index 231555e88..88687f477 100644 --- a/res/anim/slide_out.xml +++ b/res/anim/slide_out.xml @@ -15,6 +15,6 @@ --> \ No newline at end of file diff --git a/res/layout/search_edittext.xml b/res/layout/search_edittext.xml index 50cbf5af9..ac1114e2a 100644 --- a/res/layout/search_edittext.xml +++ b/res/layout/search_edittext.xml @@ -9,18 +9,28 @@ android:layout_marginBottom="@dimen/search_bottom_margin" android:layout_marginLeft="@dimen/search_margin_horizontal" android:layout_marginRight="@dimen/search_margin_horizontal" - android:paddingLeft="@dimen/search_box_left_padding" - android:paddingRight="@dimen/search_box_right_padding" android:background="@drawable/rounded_corner" - android:elevation="@dimen/search_box_elevation" - > + android:elevation="@dimen/search_box_elevation"> + + + - - @@ -109,7 +109,7 @@ android:id="@+id/search_close_button" android:layout_height="@dimen/search_box_icon_size" android:layout_width="@dimen/search_box_icon_size" - android:layout_margin="@dimen/search_box_icon_margin" + android:layout_marginRight="8dp" android:src="@drawable/ic_close_dk" android:clickable="true" android:background="?android:attr/selectableItemBackground" diff --git a/res/values/animation_constants.xml b/res/values/animation_constants.xml index 786306092..05b8e218d 100644 --- a/res/values/animation_constants.xml +++ b/res/values/animation_constants.xml @@ -16,6 +16,8 @@ --> 300 + 532 + 257 100 diff --git a/res/values/dimens.xml b/res/values/dimens.xml index e659f5791..6efb5ac5c 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -16,9 +16,6 @@ --> - - 14sp - 8dp - - 13.24sp + 14sp + 20sp 8dp @@ -115,11 +112,11 @@ 4dp 4dp - - 27dp + 24dp + 26dp 28dp - + 8dp 3dp -- cgit v1.2.3