Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android disable Enter key in soft keyboard

Can anyone tell me how to disable and enable the Enter key in the soft keyboard?

like image 227
Padma Avatar asked Sep 01 '11 14:09

Padma


People also ask

How do I get rid of Enter on my keyboard?

To remove a standard keyboard key, start by pressing down on the key in front of the key you want to remove. Insert a flat object below the key, such as a small flathead screwdriver or a car key, as shown in the picture. Once placed below the key, twist the flat object or push down until the key pops off.


1 Answers

just go to your xml and put this attribute in EditText

android:singleLine="true"

and your enter key will be gone

like image 150
Adnan Ali Avatar answered Sep 17 '22 04:09

Adnan Ali