ViewAlignment

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val alignToBaseline: Boolean

When true, aligns to View.getBaseline for the view used for the alignment

Link copied to clipboard
abstract val fraction: Float

The keyline position for the alignment. Default: 0.5f (center)

Link copied to clipboard
abstract val includePadding: Boolean

True if padding should be included for the alignment. Includes start/top padding if fraction is 0f. Includes end/bottom padding if fraction is 1f. If fraction is not 0f or 1f, padding isn't included

Link copied to clipboard

When enabled, fraction will be used for the alignment. Otherwise, only offset will be used.

Link copied to clipboard
abstract val offset: Int

The distance to the fraction of the view in pixels.