This article from http://blog.csdn.net/chenshaoyang0011 reprint please affirm the source of the article.
One feature of the Android system is its desktop notification system, unlike the desktop management of iOS, which has a desktop system for managing and displaying apps and desktop widgets. Android provides a default desktop that should be
And of course we can use third-party desktop apps. Android's launcher source code is in \packages\apps\launcher2. Launcher2 's main layout file includes Res\layout-land\launcher.xml
, Res\layout-port\launcher.xml, Res\layout-sw600dp\launcher.xml, respectively, suitable for horizontal screen, vertical screen and 7-inch tablet. The content is similar, here is the example of Res\layout-port\launcher.xml.
First let's look at the structure in Launcher.xml:
[HTML] View plain copy <com.android.launcher2.DragLayer xmlns:android= "http ://schemas.android.com/apk/res/android " xmlns:launcher="/http Schemas.android.com/apk/res/com.android.launcher " android:id=" @+id/drag_ Layer ... > <!-- keep these behind the workspace so that they are not visible when we go into AllApps --> <include android:id= "@+id/dock_divider" layout= "@layout/workspace_divider"   ... /> <!-- Paging indicator --> <include android: Id= "@+id/paged_view_indicator" layout= "@layout/ Scroll_indicator " ... /> <!-- the workspace contains 5 screens of cells --> < com.android.launcher2.workspace android:id= "@+id/ Workspace " ... > <!-- Five split screen, default display cell3 --> <include android:id= "@+id/cell1" layout= "@layout/workspace_screen" /> <include android:id= "@+id/cell2" layout= "@layout/workspace_screen" /> <include android:id= "@+id/cell3" layout= "@layout/ Workspace_screen " /> <include Android:id= "@+id/cell4" layout= "@layout/workspace_screen" /> <include android:id= "@+id/cell5" layout= "@layout/workspace_screen" / > </com.android.launcher2.Workspace> <!-- Search box/delete box -->