Java Code Examples for android.text.Html#TagHandler
The following examples show how to use
android.text.Html#TagHandler .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AsyncLoadNetworkPic.java From nono-android with GNU General Public License v3.0 | 5 votes |
public AsyncLoadNetworkPic(Context context, TextView editText, String content, Html.ImageGetter imageGetter, Html.TagHandler htmlTagHandler){ this.context=context; this.editText = editText; this.content = content; this.imageGetter = imageGetter; this.htmlTagHandler = htmlTagHandler; }
Example 2
Source File: CustomHtmlToSpannedConverter.java From zulip-android with Apache License 2.0 | 5 votes |
public CustomHtmlToSpannedConverter(String source, Html.ImageGetter imageGetter, Html.TagHandler tagHandler, Parser parser, Html.ImageGetter emojiGetter, String baseUri, Context context) { mSource = source; mSpannableStringBuilder = new SpannableStringBuilder(); mImageGetter = imageGetter; mTagHandler = tagHandler; mReader = parser; mEmojiGetter = emojiGetter; mBaseUri = baseUri; userMentionColor = ContextCompat.getColor(context, R.color.dark_red); userMentionSelfColor = ContextCompat.getColor(context, R.color.self_mention_color); }
Example 3
Source File: AKHtml.java From Mupdf with Apache License 2.0 | 5 votes |
public HtmlToSpannedConverter(String source, Html.ImageGetter imageGetter, Html.TagHandler tagHandler, Parser parser, int flags) { mSource = source; mSpannableStringBuilder = new SpannableStringBuilder(); mImageGetter = imageGetter; mTagHandler = tagHandler; mReader = parser; mFlags = flags; }
Example 4
Source File: HtmlHelper.java From FairEmail with GNU General Public License v3.0 | 4 votes |
static SpannableStringBuilder fromDocument( Context context, @NonNull Document document, boolean compress, @Nullable Html.ImageGetter imageGetter, @Nullable Html.TagHandler tagHandler) { return fromDocument(context, document, true, compress, imageGetter, tagHandler); }
Example 5
Source File: HtmlHelper.java From FairEmail with GNU General Public License v3.0 | 4 votes |
static Spanned fromHtml(@NonNull String html, boolean compress, @Nullable Html.ImageGetter imageGetter, @Nullable Html.TagHandler tagHandler, Context context) { Document document = JsoupEx.parse(html); return fromDocument(context, document, false, compress, imageGetter, tagHandler); }
Example 6
Source File: Html2SpannedParser.java From RichText with MIT License | 4 votes |
public Html2SpannedParser(Html.TagHandler tagHandler) { this.tagHandler = tagHandler; }
Example 7
Source File: AKHtml.java From Mupdf with Apache License 2.0 | 2 votes |
/** * Returns displayable styled text from the provided HTML string with the legacy flags * {@link #FROM_HTML_MODE_LEGACY}. * * @deprecated use {@link #fromHtml(String, int, Html.ImageGetter, Html.TagHandler)} instead. */ @Deprecated public static Spanned fromHtml(String source, Html.ImageGetter imageGetter, Html.TagHandler tagHandler) { return fromHtml(source, FROM_HTML_MODE_LEGACY, imageGetter, tagHandler); }