Last active
December 19, 2015 01:09
-
-
Save yozawiratama/5873928 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
editText.setOnEditorActionListener(new TextView.OnEditorActionListener() { | |
@Override | |
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { | |
if (actionId == EditorInfo.IME_ACTION_SEARCH) { | |
performSearch(); | |
return true; | |
} | |
return false; | |
} | |
}); |
This file contains hidden or 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
<EditText | |
android:imeoptions="actionSearch" | |
android:layout_height="50dip" | |
android:layout_width="match_parent" | |
android:textcolor="@color/card_text_light" | |
android:textsize="14sp" | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment