Language

FromHtmlOptions Enum

Definition

public enum FromHtmlOptions
type FromHtmlOptions = 
Inheritance
FromHtmlOptions

Fields

Name Value Description
ModeLegacy 0

Flags for fromHtml(String,int,ImageGetter,TagHandler): Separate block-level elements with blank lines (two newline characters) in between. This is the legacy behavior prior to N.

Android reference for android.text.Html.FROM_HTML_MODE_LEGACY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SeparatorLineBreakParagraph 1

Flag indicating that texts inside <p> elements will be separated from other texts with one newline character by default.

Android reference for android.text.Html.FROM_HTML_SEPARATOR_LINE_BREAK_PARAGRAPH.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SeparatorLineBreakHeading 2

Flag indicating that texts inside <h1>~<h6> elements will be separated from other texts with one newline character by default.

Android reference for android.text.Html.FROM_HTML_SEPARATOR_LINE_BREAK_HEADING.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SeparatorLineBreakListItem 4

Flag indicating that texts inside <li> elements will be separated from other texts with one newline character by default.

Android reference for android.text.Html.FROM_HTML_SEPARATOR_LINE_BREAK_LIST_ITEM.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SeparatorLineBreakList 8

Flag indicating that texts inside <ul> elements will be separated from other texts with one newline character by default.

Android reference for android.text.Html.FROM_HTML_SEPARATOR_LINE_BREAK_LIST.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SeparatorLineBreakDiv 16

Flag indicating that texts inside <div> elements will be separated from other texts with one newline character by default.

Android reference for android.text.Html.FROM_HTML_SEPARATOR_LINE_BREAK_DIV.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SeparatorLineBreakBlockquote 32

Flag indicating that texts inside <blockquote> elements will be separated from other texts with one newline character by default.

Android reference for android.text.Html.FROM_HTML_SEPARATOR_LINE_BREAK_BLOCKQUOTE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ModeCompact 63

Flags for fromHtml(String,int,ImageGetter,TagHandler): Separate block-level elements with line breaks (single newline character) in between. This inverts the Spanned to HTML string conversion done with the option TO_HTML_PARAGRAPH_LINES_INDIVIDUAL.

Android reference for android.text.Html.FROM_HTML_MODE_COMPACT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

OptionUseCssColors 256

Flag indicating that CSS color values should be used instead of those defined in Color.

Android reference for android.text.Html.FROM_HTML_OPTION_USE_CSS_COLORS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to