Function

constrainHeight

Takes a height and returns the closest size to it that satisfies the constraints.

constrainHeight

Source set: Common
public fun Constraints.constrainHeight(height: Int): Int

Takes a height and returns the closest size to it that satisfies the constraints.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: