Well, that's strange. It says here:
http://developer.android.com/reference/android/text/InputType.html#TYPE_TEXT_FLAG_MULTI_LINE
"If this flag is not set, the text field will be constrained to a single 
line."
Well, I have not set that flag. Here's my xml:

<EditText 
    android:layout_height="wrap_content" 
    android:layout_width="match_parent" 
    android:id="@+id/editTextUsername"
    android:nextFocusDown="@+id/editTextPassword">
</EditText>

and there is nothing in my java that is touching that control. I know that 
it is the right section because other changes I make here do show up. But 
the enter key is always available when this field has the focus, and presses 
it sure enough does type a carriage return.

I even put a usernameText.getInputType() call in my onLoginButtonClicked 
method so I could see the input types after the controls were placed on the 
screen, and it has a type of "1" which is TYPE_CLASS_TEXT. I also notice 
that when my password field has the focus, the "Done" soft key is displayed.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to