显示标签栏和listIn动作条在同一时间。 (安卓蜂巢) [英] Show tab bar and listIn Actionbar at same time. (Android Honeycomb)

查看:152
本文介绍了显示标签栏和listIn动作条在同一时间。 (安卓蜂巢)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

还有一种情况,就是我想用Tab酒吧以及列表导航,无论是在同一时间行动吧。

There is a situation in which I want to use Tab bar as well as List navigation, Both at same time in Action bar.

文件说,我们可以把动作条中列表导航模式或制表符导航模式。

Documentation says 'we can put Actionbar in to list navigation mode or tabs navigation mode'.

有没有办法在同一时间同时使用。任何指针,帮助。谢谢你在前进。

Is there any way to use both at same time. Any pointers, help. Thank you in Advance.

推荐答案

对不起,你只能有一个或其他。

Sorry, you can only have one or the other.

话虽这么说,你可以使用安卓actionLayout 来一个选项菜单项转换为操作栏中的自定义充气布局。你也许可以使用标签导航模式,而把自己的微调的标签这样的权利。就个人而言,我会觉得迷惑作为一个用户,但也许它会为你的使用情况。

That being said, you can use android:actionLayout to convert an options menu item into a custom inflated layout in the action bar. You might be able to use the "tabs navigation mode" while putting your own Spinner to the right of the tabs this way. Personally, I would find this confusing as a user, but perhaps it will work for your use case.

这篇关于显示标签栏和listIn动作条在同一时间。 (安卓蜂巢)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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