
I don’t know what your AppLayout is derived from. Using a BoxLayout seems to work as expected.
from kivy.lang import Builder
from kivymd.app import MDApp
KV = '''
MDBoxLayout:
orientation: 'vertical'
MDTopAppBar:
title: 'Top'
BoxLayout: # spacer to push topbar up
MDBottomAppBar:
MDTopAppBar:
title: "Title"
icon: "git"
type: "bottom"
left_action_items: [["menu", lambda x: x]]
'''
class Test(MDApp):
def build(self):
return Builder.load_string(KV)
Test().run()
From: Rahul
Sent: Wednesday, February 15, 2023 4:13 AM
To: Kivy users support
Subject: [kivy-users] MDTopAppBar and MDBottomAppBar Problem
Hi,
Within my Android mobile application I am trying to include both a Top bar and Bottom bar, however, for some reason only the bottom bar seems to work.
Here is the segment of code:
Essentially the VideoPreview appears in the background with the top bar and bottom bar placed over the top. The bottom bar seems to work but there is no visible top bar and I am not sure why. Any ideas would be appreciated :)
Thank you.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/6835a5d7-c21f-4baf-ae0e-345341208544n%40googlegroups.com.