在造型的Andr​​oid操作栏搜索查看 [英] Styling a SearchView in Android Action Bar

查看:105
本文介绍了在造型的Andr​​oid操作栏搜索查看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在操作栏搜索插件是这样的:

I have a search widget in my Action Bar like this:

(1)如何改变,说:iPhone?

(1) How do I change the color of the text that says "iPhone"?

(2)此外,如果您发现戈瑞X射线 - 整个搜索Widget是那种颜色,以及当它在一个图标的位置。我在Holo.Theme.Light和利用自己的器官功能障碍综合征吧。

(2) Also, if you notice the gray X -- the entire Search Widget is that color as well when it is in an icon position. I am on Holo.Theme.Light and utilizing my own mods to it.

如何在我的styles.xml文件中改变这两种风格的小部件(假设这就是你做的更改将搜索插件)?

How do I change these two styles for the widget in my styles.xml file (assuming that is where you make the changes for a search widget)?

推荐答案

您必须设置

searchView.setBackgroundColor(Color.WHITE);

SearchViews不那么自定义的。

SearchViews are not so customizable.

这篇关于在造型的Andr​​oid操作栏搜索查看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆