다음을 통해 공유


TextAttribute.Justification Property

Definition

Attribute key for the justification of a paragraph.

[Android.Runtime.Register("JUSTIFICATION")]
public static Java.Awt.Font.TextAttribute? Justification { get; }
[<Android.Runtime.Register("JUSTIFICATION")>]
static member Justification : Java.Awt.Font.TextAttribute

Property Value

Attributes

Remarks

Attribute key for the justification of a paragraph. Values are instances of <b>Number</b>. The default value is 1, indicating that justification should use the full width provided. Values are pinned to the range [0..1].

The constants #JUSTIFICATION_FULL and #JUSTIFICATION_NONE are provided.

Specifies the fraction of the extra space to use when justification is requested on a TextLayout. For example, if the line is 50 points wide and it is requested to justify to 70 points, a value of 0.75 will pad to use three-quarters of the remaining space, or 15 points, so that the resulting line will be 65 points in length.

<em>Note:</em> This should have the same value for all the text in a paragraph, otherwise the behavior is undetermined.

Java documentation for java.awt.font.TextAttribute.JUSTIFICATION.

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