操作栏选择全部/剪切/复制不显示警告对话框

时间:2014-02-25 05:08:10

标签: android android-actionbar

操作栏在警告对话框中选择全部/剪切/复制不显示EditText(图2),请帮助

enter image description here

enter image description here

编辑: 代码是

            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();

1 个答案:

答案 0 :(得分:2)

第二个屏幕上限是什么API级别?

可能的答案:How do I enable standard copy paste for a TextView in Android?

阅读emil10001的评论。