Insets
class Insets(val startDp: Float = 0.0f, val topDp: Float = 0.0f, val endDp: Float = 0.0f, val bottomDp: Float = 0.0f)
Stores inset sizes for the sides of a rectangle. Used for margins and padding.
Parameters
startDp
the start inset’s size (in dp).
topDp
the top inset’s size (in dp).
endDp
the end inset’s size (in dp).
bottomDp
the bottom inset’s size (in dp).
Constructors
Link copied to clipboard
Creates an Insets instance with a common size for all four insets.