LineBreakConfig.LineBreakWordStyleAuto 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.LineBreakWordStyle enum directly instead of this field.
A special value for the line breaking word style option.
[Android.Runtime.Register("LINE_BREAK_WORD_STYLE_AUTO", ApiSince=35)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.Text.LineBreakWordStyle enum directly instead of this field.", true)]
public const Android.Graphics.Text.LineBreakWordStyle LineBreakWordStyleAuto = 2;
[<Android.Runtime.Register("LINE_BREAK_WORD_STYLE_AUTO", ApiSince=35)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.Text.LineBreakWordStyle enum directly instead of this field.", true)>]
val mutable LineBreakWordStyleAuto : Android.Graphics.Text.LineBreakWordStyle
Field Value
Value = 2Implements
- Attributes
Remarks
A special value for the line breaking word style option.
The auto option for the line break word style does some heuristics based on locales and line count.
In the API Build.VERSION_CODES#VANILLA_ICE_CREAM
, auto option does followings: - If at least one locale in the locale list contains Korean script, this option is equivalent to #LINE_BREAK_WORD_STYLE_PHRASE
. - If not, then if at least one locale in the locale list contains Japanese script, this option is equivalent to #LINE_BREAK_WORD_STYLE_PHRASE
if the result of its line count is less than 5 lines. - Otherwise, this option is equivalent to #LINE_BREAK_WORD_STYLE_NONE
.
Note: future versions may have special line breaking word style rules for other locales.
Java documentation for android.graphics.text.LineBreakConfig.LINE_BREAK_WORD_STYLE_AUTO
.
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.