Class

HingePolicy

Policies that indicate how hinges are supposed to be addressed in an adaptive layout.

Source set: Common
public class HingePolicy private constructor(private val value: Int)

Policies that indicate how hinges are supposed to be addressed in an adaptive layout.

Members

Companion

Source set: Common
public companion object

Properties

AlwaysAvoid

Source set: Common
public val AlwaysAvoid: HingePolicy = HingePolicy(0)

When rendering content in a layout, always avoid where hinges are.

AvoidSeparating

Source set: Common
public val AvoidSeparating: HingePolicy = HingePolicy(1)

When rendering content in a layout, avoid hinges that are separating. Note that an occluding hinge is supposed to be separating as well but not vice versa.

AvoidOccluding

Source set: Common
public val AvoidOccluding: HingePolicy = HingePolicy(2)

When rendering content in a layout, avoid hinges that are occluding. Note that an occluding hinge is supposed to be separating as well but not vice versa.

NeverAvoid

Source set: Common
public val NeverAvoid: HingePolicy = HingePolicy(3)

When rendering content in a layout, never avoid any hinges, separating or not.

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: