Skip to content
Advertisement

Tag: android-edittext

android : Check EditText is null

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

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.

Advertisement