android Launcher待机桌面的搜索框默认使用的是GoogleSearch,如果让其使用有源码的QuickSearchBox,则需要在AndroidManifest.xml中做如下修改:
修改前:
<intent-filter>
<action android:name="android.search.action.GLOBAL_SEARCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
修改后:
<intent-filter android:priority="3">
<action android:name="android.search.action.GLOBAL_SEARCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
本文介绍如何将Android Launcher待机桌面上的搜索框从Google Search更改为QuickSearchBox。通过在AndroidManifest.xml文件中修改特定的<intent-filter>标签,可以实现这一替换。此更改包括设置新的优先级并保留原有的全局搜索动作和默认类别。
1万+

被折叠的 条评论
为什么被折叠?



