Compartir a través de


TextView.HyphenationFrequency Property

Definition

Gets the current frequency of automatic hyphenation to be used when determining word breaks. -or- Sets the frequency of automatic hyphenation to use when determining word breaks.

public virtual Android.Text.HyphenationFrequency HyphenationFrequency { [Android.Runtime.Register("getHyphenationFrequency", "()I", "GetGetHyphenationFrequencyHandler", ApiSince=23)] get; [Android.Runtime.Register("setHyphenationFrequency", "(I)V", "GetSetHyphenationFrequency_IHandler", ApiSince=23)] set; }
[<get: Android.Runtime.Register("getHyphenationFrequency", "()I", "GetGetHyphenationFrequencyHandler", ApiSince=23)>]
[<set: Android.Runtime.Register("setHyphenationFrequency", "(I)V", "GetSetHyphenationFrequency_IHandler", ApiSince=23)>]
member this.HyphenationFrequency : Android.Text.HyphenationFrequency with get, set

Property Value

the current frequency of automatic hyphenation to be used when determining word breaks.

Attributes

Remarks

Property getter documentation:

Gets the current frequency of automatic hyphenation to be used when determining word breaks.

Java documentation for android.widget.TextView.getHyphenationFrequency().

Property setter documentation:

Sets the frequency of automatic hyphenation to use when determining word breaks. The default value for both TextView and EditText is Layout#HYPHENATION_FREQUENCY_NONE. Note that the default hyphenation frequency value is set from the theme. <p/> 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. <p/> Note: Before Android Q, in the theme hyphenation frequency is set to Layout#HYPHENATION_FREQUENCY_NORMAL. The default value is changed into Layout#HYPHENATION_FREQUENCY_NONE on Q.

Java documentation for android.widget.TextView.setHyphenationFrequency(int).

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.

Applies to