StaticLayout.Builder.SetBreakStrategy(BreakStrategy) Method
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.
Set break strategy, useful for selecting high quality or balanced paragraph layout options.
[Android.Runtime.Register("setBreakStrategy", "(I)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)]
public Android.Text.StaticLayout.Builder SetBreakStrategy(Android.Text.BreakStrategy breakStrategy);
[<Android.Runtime.Register("setBreakStrategy", "(I)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)>]
member this.SetBreakStrategy : Android.Text.BreakStrategy -> Android.Text.StaticLayout.Builder
Parameters
- breakStrategy
- BreakStrategy
break strategy for paragraph layout. Value is one of the following: LineBreaker.BREAK_STRATEGY_SIMPLE; LineBreaker.BREAK_STRATEGY_HIGH_QUALITY; LineBreaker.BREAK_STRATEGY_BALANCED
Returns
this builder, useful for chaining. This value cannot be null.
- Attributes
Remarks
Set break strategy, useful for selecting high quality or balanced paragraph layout options. The default is Layout.BREAK_STRATEGY_SIMPLE.
Enabling hyphenation with either using Layout.HYPHENATION_FREQUENCY_NORMAL or Layout.HYPHENATION_FREQUENCY_FULL while line breaking is set to one of Layout.BREAK_STRATEGY_BALANCED, Layout.BREAK_STRATEGY_HIGH_QUALITY improves the structure of text layout however has performance impact and requires more time to do the text layout.
Android reference for android.text.StaticLayout.Builder.setBreakStrategy.
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.