nice actionbar

This commit is contained in:
rgarcia-herrera 2020-07-16 12:14:47 -05:00
parent 7bce2dc8bd
commit b929e1df8f

View File

@ -1,11 +1,22 @@
#:import random random.random
#:import RiseInTransition kivy.uix.screenmanager.RiseInTransition
<MapScreen>:
BoxLayout:
Button:
text: 'Goto settings'
on_press: root.manager.current = 'compass'
orientation: 'vertical'
ActionBar:
pos_hint: {'top':1}
ActionView:
use_separator: True
ActionPrevious:
title: 'Social Cycling'
with_previous: False
ActionButton:
important: True
text: 'we ride together'
on_press: root.manager.current = 'compass'
MapView:
id: mapview
@ -26,8 +37,19 @@
<CompassScreen>:
BoxLayout:
Button:
text: 'My settings button'
Button:
text: 'Back to menu'
on_press: root.manager.current = 'map'
orientation: 'vertical'
ActionBar:
pos_hint: {'top':1}
ActionView:
use_separator: True
ActionPrevious:
title: 'Social Cycling'
with_previous: False
ActionButton:
important: True
text: 'set destination'
on_press: root.manager.current = 'map'