The search dialog doesn't show up?
I just thought you should know, I found this interesting comment on stackoverflow:
oh my god. this is f*ing stupid. i had to use android:label="@string/xyz" instead of android:label="lol" and no single word about this in the documentation. unbelievable
This is my manifest:
<activity android:name=".SearchableActivity" > <intent-filter > <action android:name="android.intent.action.SEARCH" /> </intent-filter> <meta-data android:name="android.app.searchable" android:resource="@xml/searchable" /> </activity> <activity android:label="Preferred stations" android:name="PreferredStation" android:theme="@android:style/Theme.NoTitleBar" > <meta-data android:name="android.app.default_searchable" android:value=".SearchableActivity" /> </activity>And searchable
<?xml version="1.0" encoding="utf-8"?> <searchable xmlns:android="http://schemas.android.com/apk/res/android" android:label="@string/search_label" android:hint="@string/search_hint" > </searchable>
No comments:
Post a Comment