【问题标题】:What is the recommended navigation approach in Android for navigating between disparate activities/fragmentsAndroid 中用于在不同活动/片段之间导航的推荐导航方法是什么
【发布时间】:2012-09-27 07:36:54
【问题描述】:

我正在将我的 Android 应用程序切换到使用 ActionBar 等更“合适”的用户体验。我一直在尝试确定最佳/推荐的导航样式是什么。

我的应用有 5 个活动,我目前使用菜单/溢出菜单在它们之间切换。

我的应用有 1 个主屏幕,用户将大部分时间都花在上面。用户需要一种导航到其他活动的方法,但它们都没有真正相互关联。它们更像是用户在需要进行一些维护时会访问的实用程序屏幕。

我正在阅读这个链接:http://developer.android.com/design/patterns/actionbar.html

我最初考虑使用操作栏下拉导航,但它似乎不是为导航而设计的,更适用于在相同数据的视图之间切换:

Use a spinner in the main action bar if:

You don't want to give up the vertical screen real estate for a dedicated tab bar.
The user is switching between views of the same data set (for example: calendar events   viewed by day, week, or month) or data sets of the same type (such as content for two different accounts).

然后我打算使用 ActionBar 选项卡,但它说这更适合在经常使用的项目之间滑动:

Use tabs if:

You expect your app's users to switch views frequently.
You want the user to be highly aware of the alternate views.

我猜最后一个选项是将操作放入溢出菜单,但这似乎我要倒退了。

谁能提供一些见解?

谢谢

【问题讨论】:

    标签: android android-layout


    【解决方案1】:

    我决定按照这里使用侧抽屉: http://developer.android.com/design/patterns/actionbar.html

    Open a drawer from the main action bar if:
    
    You want to provide direct navigation to a number of views within your app which don't have direct relationships between each other.
    

    【讨论】:

      猜你喜欢
      • 2017-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-06
      相关资源
      最近更新 更多