setGravity

open fun setGravity(gravity: Int)

Sets the horizontal and vertical alignment of the text.

Parameters

gravity

The gravity.