在警报按钮中显示用户操作的长文本。但这被截断了。
我们如何在按钮(警告)中显示多行文字。
final AlertDialog alert = alertDialog.create();
alert.setOnShowListener(new DialogInterface.OnShowListener() {
@Override
public void onShow(DialogInterface arg0) {
alert.getButton(AlertDialog.BUTTON_POSITIVE).setTextColor(getResources().getColor(R.color.mdlivePrimaryBlueColor));
alert.getButton(AlertDialog.BUTTON_NEGATIVE).setTextColor(getResources().getColor(R.color.mdlivePrimaryBlueColor));
}
});
alert.show();
答案 0 :(得分:-1)
AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle( “HELLO”); builder.setMessage( “TEST”); builder.setPositiveButton(“LSDJFLJDSLFKDJSFLKDJSFLsdafsadfsadfsdafsadfsadfasdfasdasdfsadfasdfsdafsdafsdfadfsKD”,new DialogInterface.OnClickListener(){ public void onClick(DialogInterface对话框,int id){ } }); builder.show();
文字未裁剪