FloatLayout

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

FloatLayout

FloatLayout:
    canvas:
        Color:
            rgba: app.theme_cls.primary_color
        RoundedRectangle:
            pos: self.pos
            size: self.size
            radius: [25, 0, 0, 0]

MDFloatLayout

MDFloatLayout:
    radius: [25, 0, 0, 0]
    md_bg_color: app.theme_cls.primary_color

Warning

For a FloatLayout, the minimum_size attributes are always 0, so you cannot use adaptive_size and related options.

API - kivymd.uix.floatlayout

class kivymd.uix.floatlayout.MDFloatLayout(**kwargs)

Float layout class. See module documentation for more information.