FloatLayout#

#

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

FloatLayout#

FloatLayout:
    canvas:
        Color:
            rgba: app.theme_cls.primaryColor
        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.primaryColor

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(*args, **kwargs)#

Float layout class.

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