I am trying to create a multiline EditText by code. This is what I use:
EditText txt = new EditText(this); lp = new LinearLayout.LayoutParams(LayoutParam
This should do it
txt.setSingleLine(false); txt.setImeOptions(EditorInfo.IME_FLAG_NO_ENTER_ACTION);