Android的搜索对话框和建议的ListView:更改主题,颜色 [英] Android Search Dialog and Suggestions ListView: Change theme and colours

查看:99
本文介绍了Android的搜索对话框和建议的ListView:更改主题,颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了一个简单的搜索对话框,在执行我的应用程序自定义搜索的数据(通过自定义提供)为根据这里的指导原则:的 http://developer.android.com/guide/topics/search/search-dialog.html

I've implemented a simple search dialog that performs a custom search of the data within my app (Via a custom provider) as according to the guidelines here: http://developer.android.com/guide/topics/search/search-dialog.html

问题是,搜索栏的颜色和大小(超过操作栏的高度等)没有我的应用程序的设计中工作。我知道如何在我的styles.xml文件中创建一个主题,但我不知道怎么瞄准了Android搜索对话框和建议的ListView。有谁知道我能做到这一点?

The problem is that the search bar's colors and size (exceeds the height of the action bar, etc) do not work within the design of my app. I know how to create a theme in my styles.xml file, but I do not know how to target the Android search dialog and suggestions listView. Does anyone know how I can do this?

推荐答案

花在问题13小时后,事实证明这是不可能的某些原因。那些有视觉上自定义搜索对话框 - 哪怕仅仅是颜色的应用程序 - 必须手动实现他们,可能不使用标准搜索界面。

After 13 hours spent on the question, it turns out it's not possible for some reason. Apps that do have visually customized search dialogs- even if it's just the colours - must implement them manually, and probably don't use the standard search interfaces.

这篇关于Android的搜索对话框和建议的ListView:更改主题,颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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