Relative Layout

The CRelativeLayout class inherits from RelativeLayout and extends its functionality by introducing additional properties.

For instance, let’s see an example of how CRelativeLayout enhances control of background color compared to standard one.

CRelativeLayout:
    bg_color: app.background_hover
RelativeLayout:
    canvas.before:
        Color:
            rgba: app.background_hover
        SmoothRectangle:
            pos: self.pos
            size: self.size

API

class carbonkivy.uix.relativelayout.relativelayout.CRelativeLayout(*args: Any, **kwargs: Any)[source]

Bases: AdaptiveBehavior, BackgroundColorBehaviorRectangular, RelativeLayout, DeclarativeBehavior