Android4.0 桌面快捷方式布置

packages/apps/Launcher2/res/xml/default_workspace.xml:

可以通过反编译查看apk包名和类名,或者logcat &查看。

<favorites xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher">
    <!-- Far-left screen [0] --> //共5个桌面0、1、2、3、4、5默认进入第3个 下标为2

    <!-- Left screen [1] -->
    <!--<appwidget
        launcher:packageName="com.android.settings"
        launcher:className="com.android.settings.widget.SettingsAppWidgetProvider"
        launcher:screen="1"
        launcher:x="2"
        launcher:y="3"
        launcher:spanX="4"
        launcher:spanY="1" />-->

    <!-- Middle screen [2] -->
    <!--<appwidget
        launcher:packageName="com.android.deskclock"
        launcher:className="com.android.alarmclock.AnalogAppWidgetProvider"
        launcher:screen="2"
        launcher:x="2"
        launcher:y="1"
        launcher:spanX="2"
        launcher:spanY="2" />-->
    <appwidget
        launcher:packageName="com.beansoft.browserplus" //包名
        launcher:className="com.android.browser.widget.BookmarkThumbnailWidgetProvider" //主类名
        launcher:screen="2"
        launcher:x="0"
        launcher:y="0"
        launcher:spanX="3"
        launcher:spanY="3" />
    <favorite
        launcher:packageName="com.metago.astro"
        launcher:className="com.metago.astro.FileManagerActivity2"
        launcher:screen="2"
        launcher:x="0"
        launcher:y="4" />
    <favorite
        launcher:packageName="com.android.settings"
        launcher:className="com.android.settings.Settings"
        launcher:screen="2"
        launcher:x="0"
        launcher:y="5" />
    <favorite
        launcher:packageName="com.android.gallery3d"
        launcher:className="com.android.gallery3d.app.Gallery"
        launcher:screen="2"
        launcher:x="1"
        launcher:y="4" />
    <favorite
        launcher:packageName="com.android.camera"
        launcher:className="com.android.camera.Camera"
        launcher:screen="2"
        launcher:x="1"
        launcher:y="5" />
    <favorite
        launcher:packageName="com.android.music"
        launcher:className="com.android.music.MusicBrowserActivity"
        launcher:screen="2"
        launcher:x="2"
        launcher:y="4" />
    <favorite
        launcher:packageName="com.android.email"
        launcher:className="com.android.email.activity.setup.AccountSetupBasics"
        launcher:screen="2"
        launcher:x="2"
        launcher:y="5" />
    <appwidget
        launcher:packageName="com.android.settings"
        launcher:className="com.android.settings.widget.SettingsAppWidgetProvider"
        launcher:screen="2"
        launcher:x="3"
        launcher:y="0"
        launcher:spanX="4"
        launcher:spanY="1" />
    <favorite
        launcher:packageName="com.vortex.ui3d.media"
        launcher:className="com.vortex.ui3d.media.Vortex3DActivity"
        launcher:screen="2"
        launcher:x="3"
        launcher:y="4" />
    <favorite
        launcher:packageName="com.android.browser"
        launcher:className="com.android.browser.BrowserActivity"
        launcher:screen="2"
        launcher:x="3"
        launcher:y="5" />
    <favorite
        launcher:packageName="com.weather.Weather"
        launcher:className="com.weather.Weather.activity.WeatherController"
        launcher:screen="2"
        launcher:x="4"
        launcher:y="1" />    
    <favorite
        launcher:packageName="com.barisefe.germanynewspapers"
        launcher:className="com.barisefe.germanynewspapers.MainActivity"
        launcher:screen="2"
        launcher:x="4"
        launcher:y="2" />
    <favorite
        launcher:packageName="com.facebook.katana"
        launcher:className="com.facebook.katana.activity.login.RealLoginActivity"
        launcher:screen="2"
        launcher:x="5"
        launcher:y="1" />    
    <favorite
        launcher:packageName="com.twitter.android"
        launcher:className="com.twitter.android.LoginActivity"
        launcher:screen="2"
        launcher:x="5"
        launcher:y="2" />
    <favorite
        launcher:packageName="com.skype.raider"
        launcher:className="com.skype.raider.Main"
        launcher:screen="2"
        launcher:x="6"
        launcher:y="1" />    
    <favorite
        launcher:packageName="com.google.android.youtube"
        launcher:className="com.google.android.youtube.HomeActivity"
        launcher:screen="2"
        launcher:x="6"
        launcher:y="2" />
        
    <!-- Right screen [3] -->
    <!--<favorite
        launcher:packageName="com.android.gallery3d"
        launcher:className="com.android.gallery3d.app.Gallery"
        launcher:screen="3"
        launcher:x="1"
        launcher:y="3" />
    <favorite
        launcher:packageName="com.android.settings"
        launcher:className="com.android.settings.Settings"
        launcher:screen="3"
        launcher:x="2"
        launcher:y="3" />-->

    <!-- Far-right screen [4] -->


你可能感兴趣的:(Android4.0 桌面快捷方式布置)