I have an EditText but I want only one line. I put lime this
1
Or if you wanna use java you could do this:
edittext1.setSingleLine();