Android的 - 顶部在页面底部的操作栏和标签 [英] Android - Action bar at top and tabs at bottom of the page

查看:233
本文介绍了Android的 - 顶部在页面底部的操作栏和标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手Android开发者。我刚开始学习编程的Andr​​oid。我想知道它是否可以在页面和标签上添加操作栏与操作图标在页面底部!如果是有人请指导我如何实现一个code呢!

I am a novice Android developer. I have just started learning Android programming. I want to know whether it is possible to add Action Bar with Action Icons at top of the page and Tabs at bottom of the page! If so someone please guide me how to implement a code for it!

在此先感谢,
UDAY

Thanks in advance, UDAY

推荐答案

据我所知,您可以在底部添加动作按钮,只要没有空间的顶部,但要做到这一点,你应该激活分离选项在活动你的行动吧:

AFAIK, you can add action buttons on the bottom, only if there is no room at the top, however to do this, you should activate "split" option of your action bar in activity:

要使用支持库时启用拆分行动起来吧,你必须做两件事情:

To enable split action bar when using the support library, you must do two things:

uiOptions =splitActionBarWhenNarrow添加到每个<活性GT; 元素或元素。此属性是API 14级及更高版本(它是由旧版本忽略)只听懂。
为了支持旧版本中,添加<元数据> 元素作为一个声明为android.support相同值的每个元素的子元素。 UI_OPTIONS

Add uiOptions="splitActionBarWhenNarrow" to each <activity> element or to the element. This attribute is understood only by API level 14 and higher (it is ignored by older versions). To support older versions, add a <meta-data> element as a child of each element that declares the same value for "android.support.UI_OPTIONS"

这是引自官方的文档,我建议你阅读更多关于 HTTP: //developer.android.com/guide/topics/ui/actionbar.html

This is quote from official docs, I recommend you to read more on http://developer.android.com/guide/topics/ui/actionbar.html

顺便说一句,如果你想支持旧版本的Andr​​oid SDK中的(小于3)使用 ActionBarSherlock 这是第三方的lib,但它具有非常相似的IP官方动作条,并且支持任何版本Android SDK中的。要了解更多关于它的访问 actionBarSherlock首页

By the way, if you want to support older versions of android sdk (less than 3) use ActionBarSherlock it is third-party lib, but it has very similar ip to official actionbar and supports any version of android sdk. To learn more about it visit actionBarSherlock Home Page

这篇关于Android的 - 顶部在页面底部的操作栏和标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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