I have an EditText but I want only one line. I put lime this
1
android:maxLines="1" allows the text to be multiline but limits the height of edittext to display a single line.
If you want to disable the enter (new line) key, set the input type to text
android:inputType="text"