From: http://blog.csdn.net/android_tutor/article/details/5629337
In the previous section, I talked about how to download the launcher tutorial. Today, I will focus on what launcher is and what is its mysterious stuff?
Launcher, also known as homescreen, is the application we first saw when starting Android phones. This application is special and has a tough task.
It is responsible for all the operations except for the application itself. It is responsible for several desktops, click the application icon to start the application, and display the context menu on the desktop for a long time,
After a long period of time, you can press the icon on the desktop to display the recycle bin, drag the application icon to reposition, and perform a series of operations. I will cut some pictures to make it easier for everyone to understand!
Figure 1: boot screen, laucher main interface Figure 2: Open the drawer to list all our installed applications
Figure 3: Long press icon, the drawer turns into a garbage bin Figure 4: sliding your finger to the left to enter another desktop
Let's take a look at these figures. All the applications we listed in figure 2 do not include applications such as launcher and widget, because the applications we listed are only in androidmanifest. the xml configuration file has an application marked as this (the following code :)
[Java]
View plaincopy
- <Activity Android: Name = ". Homestyle"
- Android: theme = "@ Android: style/theme. notitlebar"
- Android: Label = "@ string/app_name">
- <Intent-filter>
- <Action Android: Name = "android. Intent. Action. Main"/>
- <Category Android: Name = "android. Intent. Category. launcher"/>
- </Intent-filter>
- </Activity>
Lines 5 and 6 are the key. With these two sentences, your application will be listed. In particular, launcher declares that the only activity in this application is as follows:
[Java]
View plaincopy
- <Activity
- Android: Name = "launcher"
- Android: launchmode = "singletask"
- Android: cleartaskonlaunch = "true"
- Android: statenotneeded = "true"
- Android: theme = "@ Android: style/theme. wallpaper. notitlebar"
- Android: screenorientation = "nosensor"
- Android: windowsoftinputmode = "stateunspecified | adjustpan">
- <Intent-filter>
- <Action Android: Name = "android. Intent. Action. Main"/>
- <Category Android: Name = "android. Intent. Category. Home"/>
- <Category Android: Name = "android. Intent. Category. Default"/>
- <Category Android: Name = "android. Intent. Category. Monkey"/>
- </Intent-filter>
- </Activity>
Here, row 11th plays a role. Do you see the difference between launcher and common applications? When it becomes home, when we reinstall a launcher, click the Home Key of the mobile phone to display the launcher list, for example:
Figure 5: launcher list Figure 6: The legendary launcher2
OK. Let's talk about it today. Please leave a message if you don't understand anything! I will try to reply on time. Thank you ~
From: http://blog.csdn.net/android_tutor/article/details/5629337
In the previous section, I talked about how to download the launcher tutorial. Today, I will focus on what launcher is and what is its mysterious stuff?
Launcher, also known as homescreen, is the application we first saw when starting Android phones. This application is special and has a tough task.
It is responsible for all the operations except for the application itself. It is responsible for several desktops, click the application icon to start the application, and display the context menu on the desktop for a long time,
After a long period of time, you can press the icon on the desktop to display the recycle bin, drag the application icon to reposition, and perform a series of operations. I will cut some pictures to make it easier for everyone to understand!
Figure 1: boot screen, laucher main interface Figure 2: Open the drawer to list all our installed applications
Figure 3: Long press icon, the drawer turns into a garbage bin Figure 4: sliding your finger to the left to enter another desktop
Let's take a look at these figures. All the applications we listed in figure 2 do not include applications such as launcher and widget, because the applications we listed are only in androidmanifest. the xml configuration file has an application marked as this (the following code :)
[Java]
View plaincopy
- <Activity Android: Name = ". Homestyle"
- Android: theme = "@ Android: style/theme. notitlebar"
- Android: Label = "@ string/app_name">
- <Intent-filter>
- <Action Android: Name = "android. Intent. Action. Main"/>
- <Category Android: Name = "android. Intent. Category. launcher"/>
- </Intent-filter>
- </Activity>
Lines 5 and 6 are the key. With these two sentences, your application will be listed. In particular, launcher declares that the only activity in this application is as follows:
[Java]
View plaincopy
- <Activity
- Android: Name = "launcher"
- Android: launchmode = "singletask"
- Android: cleartaskonlaunch = "true"
- Android: statenotneeded = "true"
- Android: theme = "@ Android: style/theme. wallpaper. notitlebar"
- Android: screenorientation = "nosensor"
- Android: windowsoftinputmode = "stateunspecified | adjustpan">
- <Intent-filter>
- <Action Android: Name = "android. Intent. Action. Main"/>
- <Category Android: Name = "android. Intent. Category. Home"/>
- <Category Android: Name = "android. Intent. Category. Default"/>
- <Category Android: Name = "android. Intent. Category. Monkey"/>
- </Intent-filter>
- </Activity>
Here, row 11th plays a role. Do you see the difference between launcher and common applications? When it becomes home, when we reinstall a launcher, click the Home Key of the mobile phone to display the launcher list, for example:
Figure 5: launcher list Figure 6: The legendary launcher2
OK. Let's talk about it today. Please leave a message if you don't understand anything! I will try to reply on time. Thank you ~