有没有办法将 Android 自定义对话框中的标题包装成多行?无需制作 AlertDialog ?
dialog.setContentView(R.layout.custom_dialog);
dialog.setTitle(itemTitle);
“itemTitle”有时太长,只能显示一半的文本。
最佳答案
答案复制自 this question
你可以让对话框标题多行:
TextView title = (TextView) dialog.findViewById(android.R.id.title);
title.setSingleLine(false);
关于java - 在多行上包装 android 对话框标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8152767/