I have an editText and it shows a newline button instead of a go button. Why?
android:minLines=”40″
Also, I’m showing the virtual keyboard using:
InputMethodManager imm = (InputMethodManager) TrackActivity.this.getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm != null){
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
}
If you want a “Go” button, try this as your edittext element:
<EditText android:text="EditText" android:id="@+id/editText1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:imeOptions="actionGo" />In other words set imeOptions to “actionGo“.