如何去掉主菜单,所有应用摆在桌面,类似小米手机出现主菜单桌面

原文地址:http://blog.csdn.net/fanmengke_im/article/details/,感谢作者分享。
修改内容如下:
Launcher3/src/com/android/launcher3/
1. AppsCustomizePagedView.java
&& public static boolean DISABLE_ALL_APPS = //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.
相关标签/搜索sponsored links
FAQ11625 Launcher3如何去掉主菜单,所有应用摆在桌面,类似小米桌面
Platform:MTMT/92+MT6290...
Branch:KK1KK1.MP1KK1.MP3KK1.MP5...
FAQ Content
[DESCRIPTION]
Launcher3去掉主菜单,所有应用摆在桌面,类似小米桌面
[SOLUTION]
Launcher3/src/com/android/launcher3/
1. AppsCustomizePagedView.java
&& public static boolean DISABLE_ALL_APPS = //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.
最近有人在QQ中问我,在与portal集成时,客户不想显示maximo的主菜单,以前也有过朋友问过我这个问题,被我忽悠过去了,现在想起来,是不对的! 经过一翻查找,发现maximo有一个参数,portalmode=true 好像有这个功能,但是,试发后,发现如下面的效果,不是客户想要的效果. 最后,没办法了,修改源码吧.
对于MAXIMO url添加一个 ...
Launcher3/src/com/android/launcher3/ KK版本: 1. AppsCustomizePagedView.java
public static boolean DISABLE_ALL_APPS = //modify KK2版本: 1. LauncherAppState.java
请修改isDisable ...
欢迎大家我分享和推荐好用的代码段~~ 声明
欢迎转载,但请保留文章原始出处:
CSDN:http://www.csdn.net
雨季o莫忧离:http://blog.csdn.net/luckkof 正文
Launcher3/src/com/android/launcher3/ ...
这个功能的实现只要找对了地方改动起来很简单 点击MainMenu进入了AppsCustomizeTabHost 里面有一个方法叫onTabChangedEnd, 这个方法是在tab改变时调用的,进入菜单时已经调用了一次 int bgAlpha=(int)(255*(getResources().getInteger(R.Integer.config_apps ...
Android4.4之后的Launcher3,主菜单布局的行数和列数,都是在DynamicGrid.java中动态计算的,xml中无法配置. 如果想修改主菜单的布局,调整行数和列数,需要修改DynamicGrid.java中对应的值. DynamicGrid.java中allAppsNumRows和allAppsNumCols的值. allAppsNumRo ...可以隐藏应用的桌面除了“小米桌面”还有哪些APP?_百度知道
可以隐藏应用的桌面除了“小米桌面”还有哪些APP?
我有更好的答案
怎么打开?
小米桌面是俩手指上划
采纳率:27%
嗨!推荐你安装小米系统使用。小米系统,不用刷机即可享受MIUI 桌面、拨号、短信、联系人、云服务五大核心功能,下载链接更多MIUI技巧和优惠活动可以关注MIUI官方微博官方微信MIUI米柚
本回答被网友采纳
一般第三方桌面app都可以
金山保险箱
这个还得去金山管家里面打开...
是吗?别的好像不太注意了,360保险箱
好的我试试
好的。,。。。
方便打开一点的有没有?
其他2条回答
为您推荐:
其他类似问题
桌面的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。

我要回帖

更多关于 小米主菜单 的文章

 

随机推荐