RelativeLayout#

#

RelativeLayout class equivalent. Simplifies working with some widget properties. For example:

RelativeLayout#

RelativeLayout:
    canvas:
        Color:
            rgba: app.theme_cls.primaryColor
        RoundedRectangle:
            pos: (0, 0)
            size: self.size
            radius: [25, ]

MDRelativeLayout#

MDRelativeLayout:
    radius: [25, ]
    md_bg_color: app.theme_cls.primaryColor

API - kivymd.uix.relativelayout#

class kivymd.uix.relativelayout.MDRelativeLayout(*args, **kwargs)#

Relative layout class.

For more information see in the DeclarativeBehavior and ThemableBehavior and BackgroundColorBehavior and RelativeLayout and MDAdaptiveWidget classes documentation.