setLastBaselineToBottomHeight
open fun setLastBaselineToBottomHeight(@NonNull textView: TextView, @Px @IntRange(from = 0) lastBaselineToBottomHeight: Int)(source)
Updates the bottom padding of the TextView so that lastBaselineToBottomHeight
is equal to the distance between the last text baseline and the bottom of this TextView. Note that if FontMetrics.bottom
or FontMetrics.descent
was already greater than lastBaselineToBottomHeight
, the bottom padding is not updated.
Parameters
textView
TextView for which to set the padding.
lastBaselineToBottomHeight
distance between last baseline to bottom of the container in pixels