core-ktx / androidx.graphics.drawable / android.graphics.drawable.Drawable / updateBounds

updateBounds

fun Drawable.updateBounds(@Px left: Int = bounds.left, @Px top: Int = bounds.top, @Px right: Int = bounds.right, @Px bottom: Int = bounds.bottom): Unit

Updates this drawable's bounds. This version of the method allows using named parameters to just set one or more axes.

See Also

Drawable.setBounds