TextView.LastBaselineToBottomHeight 属性

定义

返回最后一个文本基线与此 TextView 底部之间的距离。 - 或 - 更新 TextView 的底部填充, lastBaselineToBottomHeight 以便它是 TextView 底部与最后一行基线之间的距离。

public virtual int LastBaselineToBottomHeight { [Android.Runtime.Register("getLastBaselineToBottomHeight", "()I", "GetGetLastBaselineToBottomHeightHandler", ApiSince=28)] get; [Android.Runtime.Register("setLastBaselineToBottomHeight", "(I)V", "GetSetLastBaselineToBottomHeight_IHandler", ApiSince=28)] set; }
[<get: Android.Runtime.Register("getLastBaselineToBottomHeight", "()I", "GetGetLastBaselineToBottomHeightHandler", ApiSince=28)>]
[<set: Android.Runtime.Register("setLastBaselineToBottomHeight", "(I)V", "GetSetLastBaselineToBottomHeight_IHandler", ApiSince=28)>]
member this.LastBaselineToBottomHeight : int with get, set

属性值

属性

注解

属性 getter 文档:

返回最后一个文本基线与此 TextView 底部之间的距离。

适用于 . 的 android.widget.TextView.getLastBaselineToBottomHeight()Java 文档

属性 setter 文档:

更新 TextView 的底部填充,以便 lastBaselineToBottomHeight 它是 TextView 底部与最后一行基线之间的距离。

<img src=“https://developer.android.com/reference/android/images/text/widget/first_last_baseline.png” /><figcaption>First 和 TextView 的最后一个基线指标。</figcaption>

<strong Note</strong>> that if FontMetrics.bottom or FontMetrics.descent already thanlastBaselineToBottomHeight, the bottom padding is not updated. 此外,由于此函数设置底部填充,如果 TextView 的高度小于顶部填充、行高和底部填充的总和,则会剪裁文本的底部。

适用于 . 的 android.widget.TextView.setLastBaselineToBottomHeight(int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于