0
時,如何在Android搜索欄中更改徽標當我調用onSearchRequested()時,屏幕頂部會出現一個搜索欄,左側顯示我的應用程序徽標。我想改變這個圖標,尋找與搜索的上下文有關的另一個圖標......這可能嗎?當我致電onSearchRequested()
時,如何在Android搜索欄中更改徽標當我調用onSearchRequested()時,屏幕頂部會出現一個搜索欄,左側顯示我的應用程序徽標。我想改變這個圖標,尋找與搜索的上下文有關的另一個圖標......這可能嗎?當我致電onSearchRequested()
根據SDK沒有這樣的方法來做到這一點。顯然它拿起應用程序的標誌。
但是,您可以更改說明。
<?xml version="1.0" encoding="utf-8"?>
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/app_name"
android:hint="@string/settings_description"
android:includeInGlobalSearch="true"
android:searchSettingsDescription="@string/settings_description"
android:voiceSearchMode="showVoiceSearchButton|launchRecognizer"
>
</searchable>
我簡直不敢相信。我看不出有什麼理由不能改變這一點。謝謝。 – 2012-08-16 15:25:47