AnchorLayout

New in version 1.0.0.

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

AnchorLayout

AnchorLayout:
    canvas:
        Color:
            rgba: app.theme_cls.primary_color
        Rectangle:
            pos: self.pos
            size: self.size

AnchorLayout

MDBoxLayout:
    md_bg_color: app.theme_cls.primary_color

Available options are:

adaptive_height

adaptive_height: True

Equivalent

size_hint_y: None
height: self.minimum_height

adaptive_width

adaptive_width: True

Equivalent

size_hint_x: None
height: self.minimum_width

adaptive_size

adaptive_size: True

Equivalent

size_hint: None, None
size: self.minimum_size

API - kivymd.uix.anchorlayout

class kivymd.uix.anchorlayout.MDAnchorLayout(**kwargs)

Anchor layout class. See the module documentation for more information.