Skip to content
Advertisement

Tag: android-edittext

editText.getText().toString() can’t enter data

I am trying to make an app in which I can add subjects and my grades, currently, I am working on a system for adding subjects. So, I have a button, when pressed it makes an editText “field” in which you can enter the name for the subject. The problem is, when you enter some text and press ENTER, it

Android: crashed when EditText Material is empty [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year. Improve this question Iam trying to put the code here but the site keep giving me error So here is it https://github.com/C9nc/Empty-EditText/blob/main/EditTextCheck Answer You have initialised the buttons and

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

Advertisement