forked from FuriousSeraphim/android-material-chips
-
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.
Passing the onEditorAction event so that apps can react in their own …
…way when someone presses "done" on they keyboard.
- Loading branch information
Showing
3 changed files
with
18 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
package com.seraphim.chips; | ||
|
||
import android.view.KeyEvent; | ||
import android.widget.TextView; | ||
|
||
public interface ChipsListener<E extends ChipEntry> { | ||
void onChipAdded(Chip<E> chip); | ||
|
||
void onChipDeleted(Chip<E> chip); | ||
|
||
void onTextChanged(CharSequence text); | ||
|
||
boolean onEditorAction(TextView v, int actionId, KeyEvent event); | ||
} |
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