1

I originally had this working with ActionBarSherlock but since re-working my code to use the android.support.v7 libraries I'm seeing a blurred blue overlay when the SearchView is expanded.

The following is a screenshot from my Nexus 7 with the soft keyboard open.

enter image description here

When I close the keyboard the blurred blue image disappears but there is still a blur to the SearchView as in the image below.

enter image description here

I'm using a menu xml file to create the various menu items - the search item is as follows...

<item android:id="@+id/options_menu_search"
    android:title="@string/search"
    android:icon="@android:drawable/ic_menu_search"
    com.mycompany.mypackage:showAsAction="ifRoom|collapseActionView"
    com.mycompany.mypackage:actionViewClass="android.support.v7.widget.SearchView" >
</item>

It does actually work in the sense I can perform searches but for the life of me I can't work out where the blurred images are coming from.

I did find this SearchView drawables in ActionBar appear blurred but the accepted answer doesn't apply to my problem as I'm not creating the SearchView programatically.

Has anybody seen anything similar and found a fix?

4

1 回答 1

0

我最终找到了这个问题的答案。这似乎是构建工具中的一个错误。从 v18 开始的任何事情都会导致这个问题,我现在坚持使用 Build Tools v17。

请参阅此问题和 OP 自己的答案(尤其是最后的 EDIT)...

关于 support.v7.appcompat.library 问题的 Searchview:默认 9-patch 背景无法正确呈现

于 2014-05-29T07:43:51.997 回答