kivy 浮动按钮 android material 设计风格

kivy floating button android material design style

有什么方法可以实现一个浮动在所有其他东西之上的按钮。例如,Reddit android 应用程序就有这样一个按钮。我不想使用 kivymd。

例如,您只需将内容放在 FloatLayout 中,并将按钮作为 FloatLayout 的另一个子项,并指定所需的大小和位置。

FloatLayout:
    BoxLayout:
        orientation: 'vertical'
        Label:
            text: '1'
        Label:
            text: '2'
        Label:
            text: '3'
        Label:
            text: '4'


    Button:
        size_hint: None, None
        right: self.width and root.right - 200
        y: 200
        text: 'such button'