diff options
author | Yorke Lee <yorkelee@google.com> | 2014-05-19 15:39:27 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-05-20 12:40:17 -0700 |
commit | ec489fb5d4bba57ccdfd24b48e26257294d29979 (patch) | |
tree | 65677867ea515458573336134a81da36e600d2df /res | |
parent | 024a7f84fe0c605f97ffe4a176d5a8c2c17ffe7a (diff) |
Make searchbox expand when entering search UI
Bug: 14900155
Change-Id: Ib6e500ed55db90ad1fa13ba6dd0e141721331ba4
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/rounded_corner.xml | 22 | ||||
-rw-r--r-- | res/layout/search_edittext.xml | 2 |
2 files changed, 23 insertions, 1 deletions
diff --git a/res/drawable/rounded_corner.xml b/res/drawable/rounded_corner.xml new file mode 100644 index 000000000..fb8f4f56d --- /dev/null +++ b/res/drawable/rounded_corner.xml @@ -0,0 +1,22 @@ +<?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 + --> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + <solid android:color="@color/searchbox_background_color" /> + <corners android:radius="2dp" /> +</shape> diff --git a/res/layout/search_edittext.xml b/res/layout/search_edittext.xml index 03c51060e..ff9cabbfd 100644 --- a/res/layout/search_edittext.xml +++ b/res/layout/search_edittext.xml @@ -11,7 +11,7 @@ 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_bg" + android:background="@drawable/rounded_corner" android:gravity="center_vertical" android:elevation="@dimen/search_box_elevation" > |