将文本设置为警告对话框Android

时间:2015-04-04 16:27:52

标签: android dialog set alert

我想将文本设置为警告对话框,但我遇到了一些问题。

        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没有设置文本。

有谁知道解决方案?

0 个答案:

没有答案