什么是标签上的官方Android建议? [英] What are the official Android recommendations for tabs?

查看:262
本文介绍了什么是标签上的官方Android建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不得不说我是当它涉及到现在的设计在Android标签布局pretty的丢失。该平台的开发似乎是不断变化的设计速度比我可以计算出他们的意图。

I have to say I'm pretty lost when it comes to designing tabbed layouts on Android right now. The platform developers seem to be evolving the design faster than I can figure out their intentions.

从我可以从最近去相结合收集precated TabActivity 和新设计指南,我认为他们打算让标签成为完全的操作栏,无论是内部的主操作栏,或堆放在一个辅助操作栏。

From what I can gather from the combination of the recently deprecated TabActivity and the new design guide, I think they intend for tabs to be exclusively with the Action Bar, either inside the main action bar or stacked on a secondary action bar.

虽然开发人员指南建议使用操作栏全球导航。这是否意味着它的建议,以创建自己的操作栏外的标签,如果你的卡只适用于特定的应用环境?

Though the developer's guide suggests using the Action Bar for "global navigation". Does this mean that it's recommended to create your own tabs outside the Action Bar if your tabs only apply to a particular application context?

推荐答案

环球被用在当地的情况在这里。 :)这句话的原意是说动作栏选项卡应采用以活动为全球导航,并且,你应该避免使用操作栏选项卡,同一活动的一个子窗格中切换导航。

"Global" is used in a local context here. :) The intent of that statement is to say that action bar tabs should be used for activity-global navigation, and that you should refrain from using action bar tabs to switch navigation within a sub-pane of the same activity.

这主要适用于大屏幕或平板电脑的布局,你可能有内容的多个窗格。如果在这样的配置使用操作栏选项卡,那就没有意义了这些选项卡只适用于活动的右侧详细信息窗格,但独自离开左窗格中。如果你想选项卡,仅适用于活动的一个窗格,这些标签应是窗格中的一部分,而不是操作栏的一部分。

This mostly applies to large-screen or tablet layouts where you might have multiple panes of content. If you use action bar tabs in such a configuration, it wouldn't make sense for those tabs to only apply to the right detail pane of the activity but leave a left pane alone. If you wanted tabs that only apply to a single pane of an activity, those tabs should be part of that pane rather than part of the action bar.

基本上,标签应始终是本地的,它们影响的内容。如果切换为整个活动窗口不同的内容之间的选项卡切换,使用操作栏选项卡。如果标签是更当地化,以你的用户界面的一小部分,把它们接近的内容,当你选择一个新的标签,这将真正改变。

Basically, tabs should always be local to the content that they affect. If switching tabs switches between different content for the whole activity window, use action bar tabs. If tabs are more local to a smaller part of your UI, place them closer to the content that will actually change when you select a new tab.

这篇关于什么是标签上的官方Android建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆