我在对话框中创建了一个编辑文本,但我无法更改高度。
AlertDialog.Builder editalert = new AlertDialog.Builder(this);
editalert.setTitle("messagetitle");
editalert.setMessage("here is the message");
final EditText input = new EditText(this);
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.FILL_PARENT);
input.setLayoutParams(lp);
editalert.setView(input);
editalert.setPositiveButton("Send via email", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
}
});
editalert.show();