LineBreakConfig.LineBreakStyleAuto 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.LineBreakStyle enum directly instead of this field.
A special value for the line breaking style option.
[Android.Runtime.Register("LINE_BREAK_STYLE_AUTO", ApiSince=35)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.Text.LineBreakStyle enum directly instead of this field.", true)]
public const Android.Graphics.Text.LineBreakStyle LineBreakStyleAuto = 5;
[<Android.Runtime.Register("LINE_BREAK_STYLE_AUTO", ApiSince=35)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.Text.LineBreakStyle enum directly instead of this field.", true)>]
val mutable LineBreakStyleAuto : Android.Graphics.Text.LineBreakStyle
Field Value
Value = 5Implements
- Attributes
Remarks
A special value for the line breaking style option.
The auto option for the line break style set the line break style based on the locale of the text rendering context. You can specify the context locale by android.widget.TextView#setTextLocales(LocaleList)
or android.graphics.Paint#setTextLocales(LocaleList)
.
In the API Build.VERSION_CODES#VANILLA_ICE_CREAM
, auto option does followings: - If at least one locale in the locale list contains Japanese script, this option is equivalent to #LINE_BREAK_STYLE_STRICT
. - Otherwise, this option is equivalent to #LINE_BREAK_STYLE_NONE
.
Note: future versions may have special line breaking style rules for other locales.
Java documentation for android.graphics.text.LineBreakConfig.LINE_BREAK_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.