屏幕内容重叠的Kivy中的导航抽屉
您可以看到我屏幕上的任何内容在我的导航栏上重叠 我的屏幕和导航条代码
MDNavigationLayout:
ScreenManager:
Screen:
BoxLayout:
orientation: "vertical"
MDToolbar:
title: "My App"
left_action_items: [["menu",lambda x: nav_drawer.set_state("open")]]
right_action_items: [["login",lambda x: app.login()]]
elevation: 10
Widget:
MDBottomAppBar:
MDToolbar:
left_action_items: [["white-balance-sunny",lambda x: app.dark()]]
mode: 'end'
type: 'bottom'
icon: 'plus'
on_action_button: app.new()
MDNavigationDrawer:
id: nav_drawer
BoxLayout:
orientation: 'vertical'
spacing: '8dp'
padding: '8dp'
Image:
source: 'no_pfp.jpg'
MDLabel:
text: ' Naitik'
font_style: 'Subtitle1'
size_hint_y: None
height: self.texture_size[1]
MDLabel:
text: ' [email protected]'
font_style: 'Caption'
size_hint_y: None
height: self.texture_size[1]
ScrollView:
MDList:
OneLineIconListItem:
text: 'Profile'
IconLeftWidget:
icon: 'face-profile'
OneLineIconListItem:
text: 'Login'
IconLeftWidget:
icon: 'login'
我试图将mdnavigation drawder放置在ScreenManager上方,但随后变成了透性 我能做些什么?
As you can see any content from my screen is overlapping on my navigation bar
My screen and nav bar code
MDNavigationLayout:
ScreenManager:
Screen:
BoxLayout:
orientation: "vertical"
MDToolbar:
title: "My App"
left_action_items: [["menu",lambda x: nav_drawer.set_state("open")]]
right_action_items: [["login",lambda x: app.login()]]
elevation: 10
Widget:
MDBottomAppBar:
MDToolbar:
left_action_items: [["white-balance-sunny",lambda x: app.dark()]]
mode: 'end'
type: 'bottom'
icon: 'plus'
on_action_button: app.new()
MDNavigationDrawer:
id: nav_drawer
BoxLayout:
orientation: 'vertical'
spacing: '8dp'
padding: '8dp'
Image:
source: 'no_pfp.jpg'
MDLabel:
text: ' Naitik'
font_style: 'Subtitle1'
size_hint_y: None
height: self.texture_size[1]
MDLabel:
text: ' [email protected]'
font_style: 'Caption'
size_hint_y: None
height: self.texture_size[1]
ScrollView:
MDList:
OneLineIconListItem:
text: 'Profile'
IconLeftWidget:
icon: 'face-profile'
OneLineIconListItem:
text: 'Login'
IconLeftWidget:
icon: 'login'
I tried to put MDNavigationDrawer and it's stuff above screenmanager but then it become transperant
What can i do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论