简体   繁体   English

带滑动菜单的codenameone应用

[英]codenameone app with sliding menu

new to codename one, and I'm looking to build a fairly robust app. 一个新的代号,我正在寻找一个相当强大的应用程序。 I've read a lot of codename one documentation and have looked through many of the demos on git. 我已经阅读了很多有关代号的文档,并浏览了git上的许多演示。 My question is, what is the best way to architect the application? 我的问题是,构建应用程序的最佳方法是什么?

Here are my basic requirements: 这是我的基本要求:

  • Splash screen 启动画面
  • Lock screen (enabled/disabled by user) 锁定屏幕(由用户启用/禁用)
  • Sliding (hamburger) menu 滑动(汉堡)菜单
  • Contents of sliding menu will change based on current 'form' 滑动菜单的内容将根据当前的“表单”而改变
  • Application settings 应用程序设置

Based on this short list of requirements, would it better to make each different screen a form, and the sliding menu for each a different 'instance', or make a main form that contains the sliding menu (and just change contents of menu based on current screen) and make each different screen a component instead of a form? 根据简短的要求列表,最好将每个不同的屏幕都设置为一个表单,并为每个滑动菜单创建一个不同的“实例”,或者将一个包含滑动菜单的主表单(并根据以下内容更改菜单的内容)当前屏幕)并使每个不同的屏幕成为组件而不是表单?

Also, I was considering coding it by hand, and not using the gui builder. 另外,我正在考虑手动编码,而不使用gui构建器。

Thank you. 谢谢。

Greg 格雷格

I would go with separate forms mostly because of the hassle of updating the side menu for every selection you make. 我之所以选择单独的表格,主要是因为您每次选择时都需要更新侧边菜单。 This would also make the general design more flexible. 这也将使总体设计更加灵活。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM