简体   繁体   English

由android Asset Studio生成的Android操作栏图标始终处于停用状态

[英]Android actionbar icons as generated by android asset studio always appear deactivated

I've been using the huge time-saver Android asset studio at http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html to help with taking my images and creating tab icons. 我一直在使用位于http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html的节省时间的Android资源工作室来帮助拍摄图像和创建标签图标。

I'm now using the asset studio to generate actionbar icons for the options menu. 我现在正在使用Asset Studio为选项菜单生成操作栏图标。 I've given it an image of color white with 80% opacity as specified in the design guidelines. 我给了它一张白色的图像,不透明度达到设计准则中规定的80%。 The problem is that the images appears very dark, as if the icon is disabled. 问题是图像看起来很暗,就像禁用了该图标一样。 In fact, on actual hardware, I cannot even tell the icons are on the screen. 实际上,在实际硬件上,我什至不能告诉图标在屏幕上。 (My theme is holo-dark, btw) If I generate using the asset studio option 'menu icons' then then the icons are no longer so dark, but appear slightly too large. (我的主题是holo-dark,顺便说一句)如果我使用Asset Studio选项“菜单图标”生成,那么图标不再那么暗,而是显得太大了。

The menu I'm creating is the one created through onCreateOptionsMenu. 我正在创建的菜单是通过onCreateOptionsMenu创建的菜单。 Should I be using the menu icons or actionbar icon generator in the asset studio? 我应该在Asset Studio中使用菜单图标还是操作栏图标生成器? If actionbar icons, why do the icons always appear very dark? 如果是动作栏图标,为什么图标总是显得很暗?

Did you try changing the Theme when generating the icons using the Asset Studio? 使用Asset Studio生成图标时,您是否尝试过更改主题? There's an option to switch between Holo Light and Holo Dark. 有一个选项可以在“ Holo Light”和“ Holo Dark”之间切换。 With Holo Dark active, the output images are definitely white-ish, which leaves me to believe you might've used Holo Light (which will give quite dark icons). 在启用Holo Dark的情况下,输出图像肯定是白色的,这让我相信您可能使用过Holo Light(它将提供非常暗的图标)。

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

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