我想将文本设置为警告对话框,但我遇到了一些问题。
final EditText input = new EditText(this);
input.setText(user_descript,TextView.BufferType.EDITABLE); //error
alert.setView(input);
我的错误是:
EditText类型中的方法setText(CharSequence,TextView.BufferType)不适用于参数(TextView,TextView.BufferType)
似乎生成的警报对话框的EditText没有设置文本。
有谁知道解决方案?