语言

LineBreakConfig.HyphenationUnspecified 字段

定义

注意

This constant will be removed in the future version. Use Android.Graphics.Text.LineBreakHyphenation enum directly instead of this field.

未指定连字符首选项。

[Android.Runtime.Register("HYPHENATION_UNSPECIFIED", ApiSince=35)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.Text.LineBreakHyphenation enum directly instead of this field.", true)]
public const Android.Graphics.Text.LineBreakHyphenation HyphenationUnspecified = -1;
[<Android.Runtime.Register("HYPHENATION_UNSPECIFIED", ApiSince=35)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.Text.LineBreakHyphenation enum directly instead of this field.", true)>]
val mutable HyphenationUnspecified : Android.Graphics.Text.LineBreakHyphenation

字段值

Value = -1

实现

特性

注解

未指定连字符首选项。

这是一个特殊值的连字符首选项,指示未指定连字符首选项。 使用函数重写另一个LineBreakConfigLineBreakConfig带Builder#merge(LineBreakConfig)函数的连字符首选项时,如果重写配置的连字符首选项是#HYPHENATION_UNSPECIFIED,则保留重写配置的断字符首选项。

val override = LineBreakConfig.Builder()
                     .setLineBreakWordStyle(LineBreakConfig.LINE_BREAK_WORD_STYLE_PHRASE)
                     .build();  // UNSPECIFIED if no setHyphenation is called.
                val config = LineBreakConfig.Builder()
                     .setHyphenation(LineBreakConfig.HYPHENATION_DISABLED)
                     .merge(override)
                     .build()
                // Here, config has HYPHENATION_DISABLED for line break config and
                // LINE_BREAK_WORD_STYLE_PHRASE for line break word style.

如果此值用于文本布局/呈现,则此值解析 #HYPHENATION_ENABLED 为。

Java文档android.graphics.text.LineBreakConfig.HYPHENATION_UNSPECIFIED。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于