5
A
답변
3
이 사용할 수 있습니다.
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT);
0
내가 너무 늦게 그것은`를 생각하지만, 당신이 시도 할 수 있습니다 :
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();
작동하지 않습니다 ... 오류가 발생했습니다. – Si8