android L1 版本Launcher桌面循环滑动
2017-04-22 09:39
288 查看
每个版本的Launcher都有很大的变动,经过测试5.1的launcher可以完美在6.0环境运行 遇到这个需要桌面循环滑动的需求 我就又开始偷懒了 废话不多说 直接上代码 具体过程就不分析了 直接在这里解决问题
路径Launcher3\src\com\android\launcher3\Workspace.java*/ public Workspace(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); mContentIsRefreshable = false; /// M: Whether support Cycle Sliding or not. //mSupportCycleSliding = LauncherExtPlugin.getInstance().getWorkspaceExt(context) //.supportAppListCycleSliding(); mSupportCycleSliding =true; mOutlineHelper = HolographicOutlineHelper.obtain(context); mDragEnforcer = new DropTarget.DragEnforcer(context); // With workspace, data is available straight from the get-go setDataIsReady();
/** * M: Support cycle sliding screen or not. * @return true: support cycle sliding screen. */ @Override public boolean isSupportCycleSlidingScreen() { return mSupportCycleSliding; } /** * M: Support cycle sliding screen or not. */ private boolean mSupportCycleSliding = false;//false改成true
相关文章推荐
- Android Launcher桌面循环
- Android setting中添加桌面循环滑动选项
- android桌面(launch2)循环滑动
- android桌面画面循环滑动
- Android Launcher桌面循环
- Android 如何在Launcher的桌面滑动时添加动画效果? M
- Launcher2桌面循环滑动
- 开发日志整理1【android Launcher如何实现多屏循环滑动】
- adw-launcher-android----流行的桌面
- Android Launcher桌面图标的加载和存储
- Android桌面快捷方式图标生成与删除,使用Intent与launcher交互
- 实现类似launcher的滑动桌面
- 定制你自己的android手机桌面Launcher===一个完成Launcher开发的介绍-第二篇
- Android Launcher桌面应用快捷方式的开发
- 说说Android桌面(Launcher应用)背后的故事(四)——揭秘Workspace
- android 1.6 launcher研究之launcher的左右滑动
- 说说Android桌面(Launcher应用)背后的故事(二)——应用程序的添加
- Android Launcher中桌面图标的加载和存储
- Android桌面快捷方式图标生成与删除,使用Intent与launcher交互
- Android中程序向桌面和Launcher添加快捷方式【安卓进化三十二】