开发者

Can I have a search dialog with a filter after the search is executed?

I have implemented a search dialog as is explained http://developer.android.com/guide/topics/search/index.html.

What I currently have is a search dialog that will search through all books on my app. What I want is a way to let the user search through all books or just one specific book. Is it possible to create a custom search dialog that will d开发者_如何学编程o this for me? What I've thought of doing is have the basic search dialog and once that search is executed, have a drop down of ways to filter the search. However, it would be nice to be able to select the filter before the search is executed.


Typically the search in android applications are context sensitive. This means the app knows what the user wants to search for by looking at the current activity. In your example - perhaps if the users presses search while browsing all books the app will search through all books, while looking inside one book and pressing search will search inside that book?

The developers of android has made it hard to make such customizations. The rationale is that you don't want to press so many buttons - Just type your query. Compare with google search fore example that you probably like.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜