Top "Android-edittext" questions

The EditText is the standard text entry widget in Android apps.

How do you close/hide the Android soft keyboard using Java?

I have an EditText and a Button in my layout. After writing in the edit field and clicking on the …

android android-edittext android-softkeyboard android-input-method soft-keyboard
How to stop EditText from gaining focus at Activity startup in Android

I have an Activity in Android, with two elements: EditText ListView When my Activity starts, the EditText immediately has input …

android listview android-edittext focus
Get Value of a Edit Text field

I am learning how to create UI elements. I have created a few EditText input fields. On the click of …

android android-edittext
Converting a string to an integer on Android

How do I convert a string into an integer? I have a textbox I have the user enter a number …

java android string integer android-edittext
What's the best way to limit text length of EditText in Android

What's the best way to limit the text length of an EditText in Android? Is there a way to do …

android android-edittext maxlength
Check if EditText is empty.

I have 5 EditTexts in android for users to input. I would like to know if I could have a method …

android android-edittext
How to show soft-keyboard when edittext is focused

I want to automatically show the soft-keyboard when an EditText is focused (if the device does not have a physical …

android keyboard focus android-edittext android-softkeyboard
Android: Force EditText to remove focus?

I would like to be able to remove the focus from the EditText. For example if the Keyboard appears, and …

android focus android-edittext
Set Focus on EditText

I have an EditText-Field and set an OnFocusChangeListener for it. When it has lost focus, a method is called, which …

android focus android-edittext