Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. private class OnMyEditorActionListener implements OnEditorActionListener {
  2. public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
  3. if (actionId == R.id.your_new_ID || actionId = EditorInfo.IME_Null) {
  4. doSomething();
  5. return true;
  6. }
  7. return false;
  8. }
  9. }
  10.  
  11. <EditText
  12. android:id="@+id/editbox_box_et"
  13. android:layout_width="fill_parent"
  14. android:layout_height="wrap_content"
  15. android:background="@null"
  16. android:gravity="top|center_horizontal"
  17. android:inputType="textMultiLine|textNoSuggestions"
  18. android:padding="@dimen/spacing_half"
  19. android:textSize="24sp"
  20. android:imeActionId="@+id/your_new_ID"
  21. android:imeActionLabel="Go">
  22. </EditText>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement