Action Bar Select All/Cut/Copy not showing for alert dialog

倖福魔咒の 提交于 2020-01-05 06:52:30

问题


Action Bar Select All/Cut/Copy not showing for EditText in Alert dialog(picture 2),Kindly help

Edit: the code is

            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:


What API level is the 2nd screen cap from?

Potential answer here: How do I enable standard copy paste for a TextView in Android?

Read emil10001's comment.



来源:https://stackoverflow.com/questions/22005126/action-bar-select-all-cut-copy-not-showing-for-alert-dialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!