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