gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 21:13:44 28 4
gpt4 key购买 nike

Action Bar Select All/Cut/Copy not showing for EditText in Alert dialog(picture 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();

最佳答案

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

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

阅读 emil10001 的评论。

关于android - 操作栏选择全部/剪切/复制不显示警报对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22005126/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com