操作栏在警告对话框中选择全部/剪切/复制不显示EditText(图2),请帮助
编辑: 代码是
View view = MainActivity.this.getLayoutInflater().inflate(
R.layout.custom_dialog, null);
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(
MainActivity.this);
alertDialogBuilder.setView(view);
alertDialogBuilder.setPositiveButton("Add",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int whichButton) {
}
});
alertDialogBuilder.setNegativeButton("Cancel",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int whichButton) {
}
});
Dialog d = alertDialogBuilder.create();
d.show();
答案 0 :(得分:2)
第二个屏幕上限是什么API级别?
可能的答案:How do I enable standard copy paste for a TextView in Android?
阅读emil10001的评论。