-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Showing
10 changed files
with
91 additions
and
14 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
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: 2 additions & 4 deletions
6
.../christinecoenen/code/zapp/app/search/suggestions/text/LocalSearchSuggestionViewHolder.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
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
7 changes: 5 additions & 2 deletions
7
...n/java/de/christinecoenen/code/zapp/app/search/suggestions/text/SuggestionTextListener.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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package de.christinecoenen.code.zapp.app.search.suggestions.text | ||
|
||
import android.view.View | ||
|
||
interface SuggestionTextListener { | ||
fun onSuggestionSelected(suggestion: String) | ||
fun onSuggestionInserted(suggestion: String) | ||
fun onSuggestionSelected(suggestion: String) | ||
fun onSuggestionInserted(suggestion: String) | ||
fun onSuggestionLongPress(suggestion: String, type: TextSuggestionType, view: View): Boolean | ||
} |
9 changes: 9 additions & 0 deletions
9
.../main/java/de/christinecoenen/code/zapp/app/search/suggestions/text/TextSuggestionType.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,9 @@ | ||
package de.christinecoenen.code.zapp.app.search.suggestions.text | ||
|
||
import androidx.annotation.DrawableRes | ||
import de.christinecoenen.code.zapp.R | ||
|
||
enum class TextSuggestionType(@DrawableRes val iconResId: Int) { | ||
RecentQuery(R.drawable.ic_history_24), | ||
Visited(R.drawable.ic_baseline_search_24), | ||
} |
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,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<menu xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
|
||
<item | ||
android:id="@+id/menu_delete" | ||
android:icon="@drawable/ic_baseline_delete_outline_24" | ||
android:title="@string/menu_delete_search_query_from_history" | ||
app:showAsAction="ifRoom" /> | ||
|
||
</menu> |
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