中心定位可能在动作条? [英] Center positioning possible on actionbar?

查看:103
本文介绍了中心定位可能在动作条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能集中在动作条什么?我知道APPICON,appLogo或标签可以在清单中设置的,但它会自动跳转到左侧。反正拿的标志或名称,并将其定位到中心?

Is it possible to center anything in the actionbar? I know that the appIcon, appLogo, or the label can be set in the manifest, but it automatically jumps to the left side. Is there anyway to take the logo or title and position it to the center?

我发现这个谷歌上的一些讨论,但大多是提Adobe Flex的

推荐答案

想通了,你可以在动作条自定义布局。创建一个自定义布局(就在中心的XML图像或文字),然后调用它的动作条。

Figured out that you can have a custom layout in the actionbar. Create a custom layout (Just center an image or text in xml) and then call it in the actionbar.

这篇关于中心定位可能在动作条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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