简体   繁体   English

造型Android ActionBar

[英]Styling Android ActionBar

The image will explain everything i need ;) 图片将说明我需要的一切;) 在此处输入图片说明

I'm looking for the exactly same style ( with the thin line also that is near to their logo) (keep in mind i have the logo drawable file ) UPDATE Now i'm getting exactly what i want but i have one bug yet. 我正在寻找完全相同的样式(细线也靠近他们的徽标)(请记住,我有徽标可绘制文件) 更新现在我可以得到我想要的,但是我有一个错误。 在此处输入图片说明

How to remove the arrow highilited in red? 如何去掉红色箭头? keep in mind i'm extending Sliding Menu 请记住,我正在扩展滑动菜单

您是否尝试过getActionBar()。setLogo(R.drawable.logo);

you can use getActionbar().setDisplayUseLogoEnabled(false); 您可以使用getActionbar().setDisplayUseLogoEnabled(false); to remove the icon from the actionbar and then getActionBar().setDisplayShowHomeEnabled(true) to enable the arrow but the image you show looks like they created an image with an arrow and replaces the icon with that arrow image. 从操作栏中删除图标,然后从getActionBar().setDisplayShowHomeEnabled(true)启用箭头,但是显示的图像看起来像是他们创建了带有箭头的图像,并用该箭头图像替换了图标。

so in other words you would use this 所以换句话说,你会用这个

getActionBar().setIcon();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM