Sideband/sbapp/kivymd/uix/relativelayout.py

39 lines
773 B
Python
Raw Normal View History

2022-07-07 16:16:10 -04:00
"""
Components/RelativeLayout
=========================
:class:`~kivy.uix.relativelayout.RelativeLayout` class equivalent. Simplifies working
with some widget properties. For example:
RelativeLayout
--------------
.. code-block::
RelativeLayout:
canvas:
Color:
rgba: app.theme_cls.primary_color
RoundedRectangle:
pos: (0, 0)
size: self.size
radius: [25, ]
MDRelativeLayout
----------------
.. code-block::
MDRelativeLayout:
radius: [25, ]
md_bg_color: app.theme_cls.primary_color
"""
from kivy.uix.relativelayout import RelativeLayout
from kivymd.uix import MDAdaptiveWidget
class MDRelativeLayout(RelativeLayout, MDAdaptiveWidget):
pass