赞
踩
网上搜索了很多文章,很多是修改launcher.xml,如果你的是7寸平板电脑,就到的是launcher.xml是在res/layout-sw600dp里的,这个launcher.xml不包含workspace_page的设置,而是包含了workspace.xml。所以正确的方法是workspace.xml,同样是sw600dp的:
<com.android.launcher2.Workspace
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
android:paddingTop="@dimen/workspace_content_large_only_top_margin"
launcher:defaultScreen="2" 修改默认HOME屏
launcher:pageSpacing="@dimen/workspace_page_spacing">
<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>
下面是百度百科里的,基本是对的:
添加普通的应用程序快捷方式:
(0,0)
|
(1,0)
|
(2,0)
|
(3,0)
|
(4,0)
|
(0,1)
|
(1,1)
|
(2,1)
|
(3,1)
|
(4,1)
|
(0,2)
|
(1,2)
|
(2,2)
|
(3,2)
|
(4,2)
|
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。