动作条带的android自定形状 [英] ActionBar android with custom shape

查看:129
本文介绍了动作条带的android自定形状的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开发一个自定义形状的动作条的Andr​​oid应用程序。

I have to develop an actionBar with a custom shape for an android app.

在ActionBar是一个矩形一如既往,但每个选项(图标)我添加到动作条有大于的动作条和一个圆形。

The actionBar is a rectangle as always, but every option (icon) I add to the actionBar has to be bigger than the actionBar and with a circle shape.

任何想法如何实现该功能?我找不到如何解决这个问题。

Any ideas how to implement that feature? I can't find how to solve this problem.

感谢。

推荐答案

我想你应该完全删除动作条,并与期望的内容(如上文)自己的自定义视图,并把这种观点上的每个活动的顶部。

I think you should remove the ActionBar completely and make your own custom view with desired content (as mentioned) and put that view on top of each activity.

自定义操作栏这样的限制是,我认为不可能的。即使有可能它不会是值得这么多的努力。因此,让自己行动起来吧,它会节省你的麻烦和时间。

Customizing action bar to such a limit is i think not possible. and even if it is possible it wont be worth so much effort. So make your own Action bar and it will save you trouble and time.

这篇关于动作条带的android自定形状的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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