问题
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