setFirstBaselineToTopHeight

open fun setFirstBaselineToTopHeight(@NonNull textView: TextView, @Px @IntRange(from = 0) firstBaselineToTopHeight: Int)(source)

Updates the top padding of the TextView so that firstBaselineToTopHeight is equal to the distance between the first text baseline and the top of this TextView. Note that if FontMetrics.top or FontMetrics.ascent was already greater than firstBaselineToTopHeight, the top padding is not updated.

Parameters

textView

TextView for which to set the padding.

firstBaselineToTopHeight

distance between first baseline to top of the container in pixels

See also