Showing posts with label edittext. Show all posts
Showing posts with label edittext. Show all posts

Monday, May 21, 2012

EditText, inputType values (xml)


Where can I find the values that inputType can have?



I'm aware of http://developer.android.com/reference/android/text/InputType.html , but how should the values look like in layout xml files?

Monday, May 14, 2012

Soft Keyboard shows up on EditText focus ONLY once


Thanks for reading.



I am facing a strange problem: My app behavior is such that when the Activity starts, I requestFocus() on an EditText and show the soft keyboard.

Sunday, April 22, 2012

How do I use InputFilter to limit characters in an EditText in Android?


I want to restrict the chars to 0-9, a-z, A-Z and spacebar only. Setting inputtype I can limit to digits but I cannot figure out the ways of Inputfilter looking through the docs.

Wednesday, February 29, 2012

Monday, February 27, 2012

Edittext in Listview with wrong input onresume


I have a a listview with each row having a text field and edittext field. I have them all fight on screen. When I resume the activity by either getting a call, going back etc the input in the edittext fields does not match up with what was originally enter into. I was wondering how I could setup onresume or a saved instant state to prevent that and insure that the correct input is in the correct edittext field.