Android的图标VS标志 [英] Android icon vs logo

查看:154
本文介绍了Android的图标VS标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<应用> 标签Android清单中包含的标识属性这是我以前从未见过。您的应用程序的图标及其标志之间的区别是什么?它是用纯粹的市场?

解决方案
  

在ActionBar将采用Android:你的清单中标识的属性,如果   一个设置。这使您可以使用不同的绘制资源,   图标(发射器)和标识(动作条,除其他事项外)。

来源:<一href="http://stackoverflow.com/questions/6351479/android-how-to-change-the-actionbar-home-icon-to-be-something-other-than-the-a/6351736#6351736">Android:如何改变动作条&QUOT;家&QUOT;图标为比应用程序图标以外的其他?中


  

setDisplayUseLogoEnabled()       允许使用替代图像的(一个标志)的行动   酒吧,而不是默认的应用程序图标。一个logo通常是一个更广泛的,   即重新presents应用更详细的图像。若这是   启用后,系统将使用应用程序定义的标志图片   (或个别活动)在清单文件,与   机器人:标识属性。该标志将被调整为必要,以适应   操作栏的高度。 (最佳做法是设计的徽标   大小相同的应用程序图标。)

来源:<一href="http://developer.android.com/guide/topics/ui/actionbar.html#Style">http://developer.android.com/guide/topics/ui/actionbar.html#Style


  

要使用徽标替换的图标,在指定的应用程序标识   清单文件用android:标识属性,然后调用   在您的活动setDisplayUseLogoEnabled(真)。

来源:<一href="http://developer.android.com/sdk/android-3.0.html#api">http://developer.android.com/sdk/android-3.0.html#api

The <application> tag for the Android Manifest contains a logo attribute which I have never seen before. What is the difference between your application's icon and its logo? Is it used purely for market?

解决方案

The ActionBar will use the android:logo attribute of your manifest, if one is provided. That lets you use separate drawable resources for the icon (Launcher) and the logo (ActionBar, among other things).

Source: Android: How to change the ActionBar "Home" Icon to be something other than the app icon?


setDisplayUseLogoEnabled() Enables the use of an alternative image (a "logo") in the Action Bar, instead of the default application icon. A logo is often a wider, more detailed image that represents the application. When this is enabled, the system uses the logo image defined for the application (or the individual activity) in the manifest file, with the android:logo attribute. The logo will be resized as necessary to fit the height of the Action Bar. (Best practice is to design the logo at the same size as your application icon.)

Source: http://developer.android.com/guide/topics/ui/actionbar.html#Style


To replace the icon with a logo, specify your application logo in the manifest file with the android:logo attribute, then call setDisplayUseLogoEnabled(true) in your activity.

Source: http://developer.android.com/sdk/android-3.0.html#api

这篇关于Android的图标VS标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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