View.TextAlignmentGravity 字段

定义

注意

This constant will be removed in the future version. Use Android.Views.TextAlignment enum directly instead of this field.

根视图的默认值。

[Android.Runtime.Register("TEXT_ALIGNMENT_GRAVITY")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.TextAlignment enum directly instead of this field.", true)]
public const Android.Views.TextAlignment TextAlignmentGravity = 1;
[<Android.Runtime.Register("TEXT_ALIGNMENT_GRAVITY")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.TextAlignment enum directly instead of this field.", true)>]
val mutable TextAlignmentGravity : Android.Views.TextAlignment

字段值

Value = 1
属性

注解

根视图的默认值。 重力决定了相对于每个段落的文本方向的文本对齐方式、ALIGN_NORMAL、ALIGN_CENTER或ALIGN_OPPOSITE。

#setTextAlignment(int) 结合使用

android.view.View.TEXT_ALIGNMENT_GRAVITYJava 文档。

此页面的某些部分是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的条款使用。

适用于