简体   繁体   English

android 如何在应用程序中放置快速搜索框

[英]android how to place a Quick Search Box in application

I want to develop an app which connect with the server and a quick search box should be there which should work as Google search.我想开发一个与服务器连接的应用程序,并且应该有一个快速搜索框,它应该可以用作 Google 搜索。
How can I do that?我怎样才能做到这一点? Please give me a sample example.请给我一个示例。
One more question, is 2.2 supporting QSB?还有一个问题,2.2 支持 QSB 吗?

Make it searcheble使其可搜索

<activity android:name=".MyActivity" >
    <intent-filter>
        <action android:name="android.intent.action.SEARCH" />
    </intent-filter>
    <meta-data android:name="android.app.searchable"
               android:resource="@xml/searchable"/>
</activity>

Add QSB To your app BUT 2.2 Dosen't Support is Yet将 QSB 添加到您的应用程序但 2.2 尚不支持

http://shapingclouds.com/2009/10/19/how-add-searchmanager-quick-search-to-your-android-application/ http://shapingclouds.com/2009/10/19/how-add-searchmanager-quick-search-to-your-android-application/

Further info更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM