[FAQ11625] Launcher3如何去掉主菜单,所有应用摆在桌面,类似小米桌面
2014-10-16 15:25
489 查看
Platform:MT6571MT6572MT6582MT6582/92+MT6290MT6588MT6589MT6592MT6595
Branch:KK1KK1.MP1KK1.MP3KK1.MP5KK1.MP6KK1.MP7
[DESCRIPTION]
Launcher3去掉主菜单,所有应用摆在桌面,类似小米桌面
[SOLUTION]
Launcher3/src/com/android/launcher3/
1. AppsCustomizePagedView.java
public static boolean DISABLE_ALL_APPS = true; //mtk modify
2. AppsCustomizePagedView.java
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int width = MeasureSpec.getSize(widthMeasureSpec);
int height = MeasureSpec.getSize(heightMeasureSpec);
LauncherLog.d(TAG, "onMeasure mIsInEditMode = " + mIsInEditMode + widthMeasureSpec + " " + heightMeasureSpec
+ " " + width + " " + height);
if (!isDataReady()) {
LauncherLog.d(TAG, "onMeasure DISABLE_ALL_APPS is " + DISABLE_ALL_APPS
+ " !mApps.isEmpty() is " + !mApps.isEmpty()
+ " !mWidgets.isEmpty()" + !mWidgets.isEmpty());
if ((DISABLE_ALL_APPS || (!mApps.isEmpty() && mAppsHasSet)) && !mWidgets.isEmpty()) { //mtk modify
setDataIsReady();
setMeasuredDimension(width, height);
onDataReady(width, height);
}
}
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
}
3.Launcher.java
private void showAppsCustomizeHelper(final boolean animated, final boolean springLoaded,
final AppsCustomizePagedView.ContentType contentType) {
......
// Shrink workspaces away if going to AppsCustomize from workspace
Animator workspaceAnim =
mWorkspace.getChangeStateAnimation(Workspace.State.SMALL, animated);
//if (!AppsCustomizePagedView.DISABLE_ALL_APPS) { //mtk modify
// Set the content type for the all apps space
mAppsCustomizeTabHost.setContentTypeImmediate(contentType);
//} //mtk modify
......
}
4. default_workspace.xml文件(这个文件很多路径有,请确保修改到正确的文件,例如)mediatek/operator/有)
这个文件会配置hotseat的图标,默认不会配置screen为2的位置,这是原来的allapp button,做了此客制化后就需要配置screen2,而不能配置screen 4,因此,请对应修改原来4个hotseat图标的screen id,从0到3.
Branch:KK1KK1.MP1KK1.MP3KK1.MP5KK1.MP6KK1.MP7
[DESCRIPTION]
Launcher3去掉主菜单,所有应用摆在桌面,类似小米桌面
[SOLUTION]
Launcher3/src/com/android/launcher3/
1. AppsCustomizePagedView.java
public static boolean DISABLE_ALL_APPS = true; //mtk modify
2. AppsCustomizePagedView.java
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int width = MeasureSpec.getSize(widthMeasureSpec);
int height = MeasureSpec.getSize(heightMeasureSpec);
LauncherLog.d(TAG, "onMeasure mIsInEditMode = " + mIsInEditMode + widthMeasureSpec + " " + heightMeasureSpec
+ " " + width + " " + height);
if (!isDataReady()) {
LauncherLog.d(TAG, "onMeasure DISABLE_ALL_APPS is " + DISABLE_ALL_APPS
+ " !mApps.isEmpty() is " + !mApps.isEmpty()
+ " !mWidgets.isEmpty()" + !mWidgets.isEmpty());
if ((DISABLE_ALL_APPS || (!mApps.isEmpty() && mAppsHasSet)) && !mWidgets.isEmpty()) { //mtk modify
setDataIsReady();
setMeasuredDimension(width, height);
onDataReady(width, height);
}
}
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
}
3.Launcher.java
private void showAppsCustomizeHelper(final boolean animated, final boolean springLoaded,
final AppsCustomizePagedView.ContentType contentType) {
......
// Shrink workspaces away if going to AppsCustomize from workspace
Animator workspaceAnim =
mWorkspace.getChangeStateAnimation(Workspace.State.SMALL, animated);
//if (!AppsCustomizePagedView.DISABLE_ALL_APPS) { //mtk modify
// Set the content type for the all apps space
mAppsCustomizeTabHost.setContentTypeImmediate(contentType);
//} //mtk modify
......
}
4. default_workspace.xml文件(这个文件很多路径有,请确保修改到正确的文件,例如)mediatek/operator/有)
这个文件会配置hotseat的图标,默认不会配置screen为2的位置,这是原来的allapp button,做了此客制化后就需要配置screen2,而不能配置screen 4,因此,请对应修改原来4个hotseat图标的screen id,从0到3.
相关文章推荐
- [FAQ11625] Launcher3如何去掉主菜单,所有应用摆在桌面,类似小米桌面
- Android Launcher 如何去掉主菜单,所有应用摆在桌面,类似小米桌面
- [FAQ11476] Launcher3如何设置桌面的行数和列数?
- mac 上如何把整个应用的所有窗口移动到某个桌面上去?
- Launcher3如何给桌面添加一页,并显示一个应用
- 小米桌面就是 Launcher3去掉主菜单
- 小米桌面就是 Launcher3去掉主菜单
- Android:GridView类似桌面显示所有应用
- Android Launcher 怎样去掉主菜单,全部应用摆在桌面,相似小米桌面
- 桌面图标背景如何去掉
- 如何去掉桌面图标上的阴影?
- 桌面上的图标下面有阴影,如何去掉?
- vc++中如何实现类似fences软件中的栅栏桌面
- 如何去掉桌面图标上的小箭头
- 如何去掉Android应用启动时带的标题栏及启动时的误解问题剖析?
- 如何从应用跳到桌面
- WinCE6 如何去掉控制面板中的应用?
- 如何去掉桌面文字背景
- ubuntu 如何让桌面显示“我的电脑”及去掉桌面上的“磁盘图标”
- 如何将电脑桌面图标下文字的白色框框和颜色去掉