Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private class OnMyEditorActionListener implements OnEditorActionListener {
- public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
- if (actionId == R.id.your_new_ID || actionId = EditorInfo.IME_Null) {
- doSomething();
- return true;
- }
- return false;
- }
- }
- <EditText
- android:id="@+id/editbox_box_et"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="@null"
- android:gravity="top|center_horizontal"
- android:inputType="textMultiLine|textNoSuggestions"
- android:padding="@dimen/spacing_half"
- android:textSize="24sp"
- android:imeActionId="@+id/your_new_ID"
- android:imeActionLabel="Go">
- </EditText>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement