Skip to main content

Using Edit Text IME Option in Android App

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:
  1. IME_ACTION_DONE: This action performs a “done” operation for nothing to input and the IME will be closed.
  2. IME_ACTION_GO: This action performs a “go” operation to take the user to the target of the text user typed.
  3. IME_ACTION_NEXT: This action performs a “next” operation taking the user to next field that will accept text.
  4. IME_ACTION_NONE: There is no available action.
  5. IME_ACTION_PREVIOUS: This action performs to move to the previous field after “Next” operation is performed.
  6. IME_ACTION_SEARCH: This action performs “search” operation that will take the user to results of searching the text which user typed.
  7. IME_ACTION_SEND: This action performs “send” operation delivering the text to its target.
  8. IME_ACTION_UNSPECIFIED: No action is perform and associated with this editor.
  9. IME_FLAG_FORCE_ASCII: This action is used to request an IME i.e. capable of inputting ASCII characters.
  10. IME_FLAG_NAVIGATE_NEXT: This specifies that there is something interesting that a forward navigation can focus on.
  11. IME_FLAG_NAVIGATE_PREVIOUS: This specifies that there is something interesting that a backward navigation can focus on.
  12. IME_FLAG_NO_ACCESSORY_ACTION: This indicates that the action should not be available in accessory button.
  13. 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.
  14. IME_FLAG_NO_FULLSCREEN: This flag indicates that the IME will never go in full screen mode.
  15. IME_MASK_ACTION: These Option provides alternative actions associated with “enter” key.

Comments

Popular posts from this blog

Handle Scrollable Views or Controls in another Scrollview in Android

In life of any Android developer, there are times when there is a requirement in the application to use one scrollable control inside another scrollable control. In such cases, the scrolling functionality of one or all scrollable controls gets enabled and the Android application cannot identify that scroll event of which control is to be handled first. Here, UI may get stuck in some scenarios. The ideal behavior expected is when the user touches the parent scroll view, only the parent view’s scroll event is called and when the user scrolls the child scroll view, the child view’s scroll event is called. In our standard Android application development and implementation process it does not happen when we add scrollable control in another scrollable control. Below is the solution to handle the scroll event of both the controls without any glitch. Example We have a layout that has a ScrollView as parent layout and it contains some TextViews, ImageViews and ListView as child control...
Android Push Notification Using Firebase Cloud Messaging In this tutorial, I’m gonna show you how to use the push notifications in your android applications. Before the Google I/O 2016 , we were using the Google Cloud Messaging service (GCM) to send the data from the server to the clients or the android power devices but in I/O 2016, Google introduced the Firebase Cloud Messaging which is a good alternative and easier to implement. Steps to implement FireBase push notification in Android 1: Import the code of FCM   https://drive.google.com/a/edreamz.in/file/d/0B1L0RecNhNk9UDhhOXRZQjJYU0k/view?usp=sharing 2: go to    https://console.firebase.google.com/  and create a new project. 4: Now put your app name and select your country. 5: Now click on Add Firebase to Your Android App. 6: Now you have to enter your projects package name and click on ADD APP. 7:After clicking add app you will get google-services.json fil...
Android Push Notification Using Firebase Cloud Messaging In this tutorial, I’m gonna show you how to use the push notifications in your android applications. Before the Google I/O 2016 , we were using the Google Cloud Messaging service (GCM) to send the data from the server to the clients or the android power devices but in I/O 2016, Google introduced the Firebase Cloud Messaging which is a good alternative and easier to implement. Steps to implement FireBase push notification in Android 1: Import the code of FCM   https://drive.google.com/a/edreamz.in/file/d/0B1L0RecNhNk9UDhhOXRZQjJYU0k/view?usp=sharing 2: go to    https://console.firebase.google.com/  and create a new project. 4: Now put your app name and select your country. 5: Now click on Add Firebase to Your Android App. 6: Now you have to enter your projects package name and click on ADD APP. 7:After clicking add app you will get google-services.json fil...