Reputation: 664
Code:
<AutoCompleteTextView
android:id="@+id/txtUsername"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:completionThreshold="1"
android:hint="@string/prompt_uname"
android:inputType="text"
android:imeOptions="actionNext"
android:maxLines="1"
android:popupBackground="#aaaaaa"
android:textSize="@dimen/login_page_text_size" />
in above code when i don't specify android:inputType="text" "Next Button" Does not appear on the keyboard Android OS: 4.0.1
Upvotes: 2
Views: 2580
Reputation: 2251
You're talking about android:imeOptions not android:imeActionLabel which (as its name indicates) is a label, this is what will be wrote on the button...
Upvotes: 0
Reputation: 969
single line deprecated so need inputtype add below code.
android:inputType="text"
android:maxLines="1"
android:imeOptions="actionNext"
Upvotes: 3
Reputation: 261
Use imeActionLabel instead of imeOptions as follow..
android:inputType="text"
android:imeActionLabel="Next"
Upvotes: -1