Structure in the _launcher.xml

Source: Internet
Author: User
Tags xmlns

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"           &nbsp ...         />          <!--  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  -->       

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.