Insets
constructor(startDp: Float = 0.0f, topDp: Float = 0.0f, endDp: Float = 0.0f, bottomDp: Float = 0.0f)
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).
Creates an Insets instance with startDp = endDp and topDp = bottomDp.
Creates an Insets instance with a common size for all four insets.