5

有没有办法为 TextView: 中的错误弹出窗口设置自定义布局 有效的 XHTML
我们textView.setError(String, Drawable)只能设置一个错误图标。 showError()方法在TextView and ErrorPopup class are private, so I can't work with them.

Any ideas? Thanks in advance! Michael

UPD:
Thanks for comments, but as I understand it, the theme trick isn't applicable here: (TextView 3384 line from android-10)

void fixDirection(boolean above) {
    mAbove = above;

    if (above) {
        mView.setBackgroundResource(com.android.internal.R.drawable.popup_inline_error_above);
    } else {
        mView.setBackgroundResource(com.android.internal.R.drawable.popup_inline_error);
    }
}    

在 android-15 中使用了 com.android.internal.R.styleable.Theme_errorMessageBackground 主题参数,但它是内部的。
因此,除了编写我自己的错误通知器外,我看不到任何解决此问题的方法):

4

0 回答 0