Android Icon vs logo

Source: Internet
Author: User

There are two properties for icon and logo in Android configuration file. What is the difference between these two attributes?

The icon property of the activity in the manifest file describes:

Android:iconan icon representing the activity. The icon is displayed to users when a representation of the activity is required on-screen. For example, icons for activities that initiate tasks is displayed in the Launcher window. The icon is often accompanied by a label (see the Android:label attribute). This attribute must is set as a reference to a drawable resource containing the image definition. If It isn't set, the icon specified for the application as a whole are used instead (see the <application>element ' s Icon attribute). Theactivity ' s Icon-whether set here or by the <application> Element-is also the default icon for all the activity ' s intent filters (see the <intent-filter> element ' s icon attribute).


The general meaning is that icon represents an activity, which is displayed to the user as an activity interface, such as the mainactivity icon on the Launcher interface. In addition, its property value must be a resource file of type drawable. If the activity is not defined, then the activity uses the Application icon property.

The following is an introduction to the Icon property of application:

Android:iconan icon for the application as whole, and the default icon for each of the application ' s components. See the individual icon attributesfor <activity>, <activity-alias>, <service>, <receiver>,and & Lt;provider>elements. This attribute must is set as a reference to a drawable resource containing theimage (for example "@drawable/icon"). There is no default icon.

similar to the activity's Icon property, but the application icon attribute stone has no default value. The Icon property of the aplication is used to display the installation screen and the installation package thumbnail, not including the desktop and launcher icons. The diagram shown on the desktop and launcher is the app's main activity (typically named mainactivity) in icon.

Description of logo properties:

Android:logoa logo for the application as whole, and the default logo for activities. This attribute must is set as a reference to a drawableresource containing the image (for example "@drawable/logo"). There is no default logo.

The logo will not be used as a desktop icon, only as a navigation map of the activity, and when the icon and Logo properties are set (free), the logo is completely overwritten with the icon.

<span style= "Font-weight:normal;" >using a logo instead of a iconby default, the system uses your application icon in the action bar, as specified by th e icon attribute in the<application> or <activity> element. However, if you also specifythe logo attribute and then the action Bar UsesThe logo image instead of the icon. A logo should usually is wider than the icon, but should not include unnecessary text. You should generally use a logo if it represents your brand in a traditional format that users recognize. A good example is the YouTube app ' s logo-the logorepresents the expected user brand, whereas the app's icon is a Modifiedv Ersion that conforms to the square requirement for the launcher icon.</span>

Application of Actionbar:

ActionBar Actionbar=getactionbar ();

Use the Android:logo property. Unlike Square's Icon,logo, images don't have any width limitations .

When you have a logo, you can hideHide label.

Hide Label Label:

Actionbar.setdisplayshowtitleenabled (FALSE);

Hide Logos and icons:

Actionbar.setdisplayshowhomeenabled (FALSE);

By default, Actionbar is placed at the top of your activity and is part of the activity layout. When set to cover mode, Actionbar is the equivalent of floating on activity, without interfering with the layout of the activity.

public void OnCreate (Bundle savedinstancestate) {    super.oncreate (savedinstancestate);   GetWindow (). Requestfeature (Window.feature_action_bar_overlay);   Setcontentview (R.layout.main);}

Reference:

Http://stackoverflow.com/questions/6735649/android-icon-vs-logo

http://tieba.baidu.com/p/3516704970

http://blog.csdn.net/jdsjlzx/article/details/41353029

Android Icon vs logo

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.