Android face question essay 1

Source: Internet
Author: User

1. How do I make one app produce two or more icons on my phone?

The activity node in the manifest file is configured as follows: "5, 7 lines of code"

  

1  <Activity2             Android:name=". Mainactivity "3 Android:label= "AAAA" >4             <Intent-filter>5                 <ActionAndroid:name= "Android.intent.action.MAIN" />6 7                 <categoryAndroid:name= "Android.intent.category.LAUNCHER" />8             </Intent-filter>9         </Activity>

  

1  <Activity2             Android:name=". Splashactivity "3 Android:label= "BBBB" >4             <Intent-filter>5                 <ActionAndroid:name= "Android.intent.action.MAIN" />6 7                 <categoryAndroid:name= "Android.intent.category.LAUNCHER" />8             </Intent-filter>9         </Activity>

The app can open the app with two identical icons on the phone, and the app name can be different.

2. Please describe the five types of layouts commonly used in Android.

After the introduction of the 5 layouts "and the use of methods or features", to highlight the addition of some of their own characteristics to be brilliant.

Framelayout is primarily used in gaming and video applications. Tablelayout is mainly used in securities and finance. Absolutelayout is mainly used in applications where the set-top box "does not consider screen adaptation".

Commonly used are relativelayout and linearlayout. And, the first consideration is relativelayout, because it is more efficient than linearlayout, the reason is Relativelayout hierarchy "Hierarchyviewer.bat" under normal circumstances. Lower than LinearLayout.

Android face question essay 1

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.