-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow custom behavior when search clicked (#66)
* Allow custome behavior when search clicked * Checkstyle
- Loading branch information
1 parent
15b0b9b
commit 230fb58
Showing
4 changed files
with
222 additions
and
39 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
21 changes: 21 additions & 0 deletions
21
lib/src/main/java/com/mapzen/pelias/widget/SearchSubmitListener.java
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,21 @@ | ||
package com.mapzen.pelias.widget; | ||
|
||
/** | ||
* Interface to override what happens when the search key is pressed. | ||
*/ | ||
public interface SearchSubmitListener { | ||
/** | ||
* Return true to have the {@link PeliasSearchView} execute a search when the search key is | ||
* pressed, false to do no search. | ||
* @return | ||
*/ | ||
boolean searchOnSearchKeySubmit(); | ||
|
||
/** | ||
* Return true to have the {@link PeliasSearchView} hide the autocomplete list view when the | ||
* search key is pressed, false to have it remain visible. | ||
* @return | ||
*/ | ||
boolean hideAutocompleteOnSearchSubmit(); | ||
|
||
} |
Oops, something went wrong.