The second Android 11 Developer Preview is now available, test it out and share your feedback.

androidx.percentlayout.widget

Classes

PercentFrameLayout

Subclass of android.widget.FrameLayout that supports percentage based dimensions and margins.

PercentLayoutHelper

Helper for layouts that want to support percentage based dimensions.

PercentRelativeLayout

Subclass of android.widget.RelativeLayout that supports percentage based dimensions and margins.