Search in sources :

Example 1 with URLImageParser

use of com.swifty.toptoastbar.UrlImage.URLImageParser in project ToastBar by SwiftyWang.

the class Toast method setText.

public void setText(String msg) {
    if (messageTextView != null && !TextUtils.isEmpty(msg)) {
        URLImageParser p = new URLImageParser(messageTextView, getContext());
        Spanned htmlSpan = Html.fromHtml(msg, p, null);
        messageTextView.setText(htmlSpan);
    }
}
Also used : URLImageParser(com.swifty.toptoastbar.UrlImage.URLImageParser) Spanned(android.text.Spanned)

Aggregations

Spanned (android.text.Spanned)1 URLImageParser (com.swifty.toptoastbar.UrlImage.URLImageParser)1