操作栏选择“不显示全部/剪切/复制"以显示警报对话框 [英] Action Bar Select All/Cut/Copy not showing for alert dialog

查看:83
本文介绍了操作栏选择“不显示全部/剪切/复制"以显示警报对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

代码是

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

推荐答案

第二屏截图来自哪个API级别?

What API level is the 2nd screen cap from?

此处可能的答案:如何在Android中为TextView启用标准复制粘贴吗?

阅读emil10001的评论.

Read emil10001's comment.

这篇关于操作栏选择“不显示全部/剪切/复制"以显示警报对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆