我可以嵌入操作栏里面滚动的标签? [英] Can I embed scrollable tabs inside the action bar?

查看:289
本文介绍了我可以嵌入操作栏里面滚动的标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有一个布局,其中屏幕房地产是在较小的屏幕很重要,但我希望用户能够正好两个选项卡之间刷卡。在这些小屏幕设备,我不想浪费一整行用的滚动标签控件是这样的:

I'd like to have a layout where screen real estate is important on smaller screens, but I'd like users to be able to swipe between exactly two tabs. On these smaller screened devices, I don't want to waste an entire row with a scrollable tab widget like this:

固定标签提供任何指示用户,他们可以刷卡:

but fixed tabs offer no indication to users that they can swipe:

用户通常需要查看两个选项卡来完成任务。有什么办法presently嵌入标签为刷卡即可切换标签页主要操作栏里面的支持?

Users will typically need to view both tabs to complete the task. Is there any way presently to embed tabs with support for "swipe to switch tabs" inside the main action bar?

推荐答案

它不仅可以支持标准的操作栏固定卡刷卡,这是一个的设计方针

Not only is it possible to support swiping with standard action bar fixed tabs, it's a design guideline:

使用固定选项卡来支持两个或三个应用程序之间快速切换
  意见。固定标签应始终允许用户之间导航
  意见通过滑动左边或右边的内容区域。

Use fixed tabs to support quick changes between two or three app views. Fixed tabs should always allow the user to navigate between the views by swiping left or right on the content area.

滚动标签比在标签栏本身可以滚动看到更多的标签比将适合在给定的显示上的固定卡不同的:

Scrollable tabs are different than fixed tabs in that the tab bar itself can be scrolled to see more tabs than will fit on the given display:

这篇关于我可以嵌入操作栏里面滚动的标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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