-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e69255
commit 79d586a
Showing
5 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/ratanparai/moviedog/SearchableActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.ratanparai.moviedog | ||
|
||
import android.app.Activity | ||
|
||
class SearchableActivity: Activity() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- The attributes below configure the Android search box appearance | ||
and the search suggestions settings. | ||
See the Developer Guide for more information | ||
http://developer.android.com/guide/topics/search/ | ||
The Assistant's priority order for intent actions are as follows: | ||
1) Intent specified in cursor(SUGGEST_COLUMN_INTENT_ACTION) | ||
2) Intent specific in this file (searchSuggestIntentAction) | ||
3) ACTION_SEARCH(default) | ||
It is recommended to set it to ACTION_VIEW in searchable.xml and only override in code if you | ||
want to handle certain pieces of content differently. | ||
--> | ||
<searchable xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:hint="@string/search_hint" | ||
android:includeInGlobalSearch="true" | ||
android:label="@string/search_label" | ||
android:icon="@drawable/lb_ic_in_app_search" | ||
android:searchSettingsDescription="@string/settings_description" | ||
android:searchSuggestAuthority="com.ratanparai.moviedog" | ||
android:searchSuggestIntentAction="android.intent.action.VIEW" | ||
android:searchSuggestIntentData="content://com.rataparai.moviedog/video" | ||
android:queryAfterZeroResults="true" | ||
android:searchSuggestPath="search" | ||
android:searchSuggestThreshold="0" /> |