title: How can EditText accept only integer or float value?
body: <p>I am new to Android development. In my project, I’m using EditText, but I want to force it to only accept an integer or float value. How can I do that?</p>