Center positioning possible on actionbar?

佐手、 提交于 2020-01-03 05:01:14

问题


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?

I've found some discussions about this on Google, but mostly mentioning Adobe Flex


回答1:


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.




回答2:


If I am not wrong you want to set screen title at top center !! if I am correct hope you tried below suggestions in this answer??

screen title in center.



来源:https://stackoverflow.com/questions/11397562/center-positioning-possible-on-actionbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!