i want to check and give condition to my edittext, if i input something to my edittext, l it will change my imageview, this is my code: i have problem here, my imageview not change…. is this code has true or not? Answer If I read your post correctly, you want to check if the EditText is ever empty as
Tag: android-edittext
How to make EditText not focused when creating Activity
I’ve read the other questions discussing this, and all of them work for my layouts, except for the very first one created. At the moment, this is at the top of my onCreate method: ^ That makes it so at least the keyboard doesn’t pop up on startup, but the EditText is still focused on. This is the XML for
Needing to double click EditText for click listener to respond
I have a section of code where I want to change the text showing in a textView when the user selects an EditText box. The problem I am having is that the textView only changes when I double click the EditText box, one click and there is no change to the textView. Is there another click listener that I should
Limit Decimal Places in Android EditText
I’m trying to write an app that helps you manage your finances. I’m using an EditText Field where the user can specify an amount of money. I set the inputType to numberDecimal which works fine, except that this allows people to enter numbers such as 123.122 which is not perfect for money. Is there a way to limit the number
Switch between a TextView and EditText
Is this possible to interchange a TextView and an EditText. Like display the text when needed, but allow editing when needed. Is there a method (as in NON-XML) way of editing a TextView or non-editing a EditText? Answer Is this possible to interchange a TextView and an EditText. Put both in your layout in the same spot. Make one invisible.