Reputation: 97
It seems that kivy does not provide a bottom navigation bar (like BottomNavigationView on Android).
As I'm quite new to Kivy I wanted to ask what would be the best approach to implement such functionality?
Upvotes: 1
Views: 1839
Reputation: 8747
Action Bar can be placed at the bottom of the screen too.
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.lang import Builder
Builder.load_string('''
<MyWidget>:
orientation: 'vertical'
ActionBar:
ActionView:
use_separator: True
ActionPrevious:
title: 'Action Bar'
with_previous: False
Label:
text: 'content'
ActionBar:
ActionView:
ActionPrevious:
title: 'Action Bar'
with_previous: False
''')
class MyWidget(BoxLayout):
pass
class TestApp(App):
def build(self):
return MyWidget()
TestApp().run()
Upvotes: 2