[android-developers] EditText functionality

2010-04-07 Thread dan
Hello,I have a login view on an application with an EditText for entering a username. I can't seem to restrict the EditText to be a single line. I don't want the user to be able to press "return" on the soft keyboard and get a second line. I tried setting maxLines to 1, but that appears to control

Re: [android-developers] EditText functionality

2010-04-07 Thread Mark Murphy
I have a login view on an application with an EditText for entering a username. I can't seem to restrict the EditText to be a single line. I don't want the user to be able to press return on the soft keyboard and get a second line. I tried setting maxLines to 1, but that appears to control

Re: [android-developers] EditText functionality

2010-04-07 Thread Nandan .
yaa you can do this using coding in java EditText1.setSingleLine(true); Regards** Bhavesh kumar ** On Wed, Apr 7, 2010 at 5:55 PM, Mark Murphy mmur...@commonsware.com wrote: I have a login view on an application with an EditText for entering a username. I can't seem to restrict the