constrainWidth
Source set: Common
public fun Constraints.constrainWidth(width: Int): Int
Takes a width and returns the closest size to it that satisfies the constraints.
Takes a width and returns the closest size to it that satisfies the constraints.
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Robomori
Run Android emulators and devices outside Android Studio.
public fun Constraints.constrainWidth(width: Int): Int
Takes a width and returns the closest size to it that satisfies the constraints.
Content updated: