actionview.kv 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Goblinoid: Experience all of MediaGoblin on an Android Device
  2. # Copyright (C) 2015 Dylan Jeffers
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. #action bar template
  17. <GoblinBar>:
  18. pos_hint: {'top':1}
  19. ActionView:
  20. use_separator: True
  21. ActionPrevious:
  22. with_previous: False
  23. app_icon: 'images/logo.png'
  24. # on_touch_down: app.open_view('action', True)
  25. ActionOverflow:
  26. ActionButton:
  27. text: 'Settings'
  28. # on_release: app.open_view('settings', False)
  29. #options bar allows for easy navigation between app's main screens
  30. <OptionsBar>:
  31. anchor_y: 'bottom'
  32. size_hint: (1.0, 0.1)
  33. BoxLayout:
  34. cols: 3
  35. Button:
  36. text: 'Feed'
  37. on_release: root.pressed = 'feed'
  38. Button:
  39. text: 'Media'
  40. on_release: root.pressed = 'media'
  41. Button:
  42. text: 'Profile'
  43. on_release: root.pressed = 'profile'
  44. <ActionLayout>
  45. asm: asm
  46. BoxLayout:
  47. orientation: 'vertical'
  48. GoblinBar:
  49. ScreenManager:
  50. id: asm
  51. OptionsBar:
  52. on_pressed: root.open_action_view(self.pressed, False)
  53. <SettingsScreen>:
  54. BoxLayout:
  55. orientation: 'vertical'
  56. Label:
  57. text_size: self.size
  58. valign: 'middle'
  59. halign: 'center'
  60. text: 'Settings Screen currently under development. If there is a particular setting you would like the app to have, please email the devel list or me personally at sapientechnology@openmailbox.com'
  61. Button:
  62. size_hint_y: 0.2
  63. text:
  64. 'return to feed'
  65. on_release:
  66. app.open_view('action', True)