An Editor Info is most useful class when you have to deal with any type of user input in your Android application. For e.g. in login/registration/search operations we can use it for more accurate keyboard input. An editor info class describes several attributes for text editing object that an input method will be directly communicating with edit text contents.
Several options which we can use with EditText IMEOption are as follows:
- IME_ACTION_DONE: This action performs a “done” operation for nothing to input and the IME will be closed.
- IME_ACTION_GO: This action performs a “go” operation to take the user to the target of the text user typed.
- IME_ACTION_NEXT: This action performs a “next” operation taking the user to next field that will accept text.
- IME_ACTION_NONE: There is no available action.
- IME_ACTION_PREVIOUS: This action performs to move to the previous field after “Next” operation is performed.
- IME_ACTION_SEARCH: This action performs “search” operation that will take the user to results of searching the text which user typed.
- IME_ACTION_SEND: This action performs “send” operation delivering the text to its target.
- IME_ACTION_UNSPECIFIED: No action is perform and associated with this editor.
- IME_FLAG_FORCE_ASCII: This action is used to request an IME i.e. capable of inputting ASCII characters.
- IME_FLAG_NAVIGATE_NEXT: This specifies that there is something interesting that a forward navigation can focus on.
- IME_FLAG_NAVIGATE_PREVIOUS: This specifies that there is something interesting that a backward navigation can focus on.
- IME_FLAG_NO_ACCESSORY_ACTION: This indicates that the action should not be available in accessory button.
- IME_FLAG_NO_ENTER_ACTION: This flag indicates that if it is not set, IMEs will normally replace the “enter” key with the action supplied.
- IME_FLAG_NO_FULLSCREEN: This flag indicates that the IME will never go in full screen mode.
- IME_MASK_ACTION: These Option provides alternative actions associated with “enter” key.
Comments
Post a Comment