LineBreakConfig.HyphenationUnspecified Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This constant will be removed in the future version. Use Android.Graphics.Text.LineBreakHyphenation enum directly instead of this field.
No hyphenation preference is specified.
[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
Field Value
Value = -1Implements
- Attributes
Remarks
No hyphenation preference is specified.
This is a special value of hyphenation preference indicating no hyphenation preference is specified. When overriding a LineBreakConfig
with another LineBreakConfig
with Builder#merge(LineBreakConfig)
function, the hyphenation preference of overridden config will be kept if the hyphenation preference of overriding config is #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.
This value is resolved to #HYPHENATION_ENABLED
if this value is used for text layout/rendering.
Java documentation for android.graphics.text.LineBreakConfig.HYPHENATION_UNSPECIFIED
.
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.