开发者

Android: Multiple search mode

开发者 https://www.devze.com 2023-03-29 09:14 出处:网络
I have the search interface like this: http://developer.android.com/guide/topics/search/index.html On the left apears the app logo, but I want a options to select ( like google search application ).

I have the search interface like this: http://developer.android.com/guide/topics/search/index.html

On the left apears the app logo, but I want a options to select ( like google search application ).

I开发者_开发技巧n http://www.androidpatterns.com/uap_pattern/search-%E2%80%93-main-menu we can read:

… and the search bar appears at the top of the screen. On the left the app-logo is displayed. (When multiple search modes are supported, the app logo is replaced by an icon for the corresponding and selected search mode, together with an indicator)

So... how can I add multipe search mode?

Thanks ;)


This is not possible. The website suggests wrong.

What you can do is enable the Quick Search Bar widget for your app as well. There you can have multiple search modes for your app (each will be sent to a different activity handling the search). Like so: http://android-developers.blogspot.com/search/label/Quick%20Search%20Box and http://developer.android.com/guide/topics/search/searchable-config.html#searchable-element

0

精彩评论

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