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
You may also use this:
txt.setInputType(InputType.TYPE_CLASS_TEXT|InputType.TYPE_TEXT_FLAG_MULTI_LINE);