Launcher3 Hotseat布局
来源:互联网 发布:简明python教程 沈洁元 编辑:程序博客网 时间:2024/06/07 14:29
当我们修改完LCD竖屏横用之后会出现一个问题,那就是Hotseat的布局不会跟随着变化,当竖屏的时候默认就会在下面,但是我们竖屏横用之后Hotseat布局依然是在右边没有随之实现水平排列下面我们就来实现这个功能。
1 、修改packages/apps/launcher3\src\main\res\values\config.xml
<bool name="hotseat_transpose_layout_with_orientation">false</bool>
2 、修改packages\apps\launcher3\src\com\android\launcher3\Hotseat.java
protected void onFinishInflate() { super.onFinishInflate(); LauncherAppState app = LauncherAppState.getInstance(); DeviceProfile grid = app.getDynamicGrid().getDeviceProfile(); mAllAppsButtonRank = grid.hotseatAllAppsRank; mContent = (CellLayout) findViewById(R.id.layout);//判断设备是横向还是纵向类型,决定横向还是纵向布局热键 if (grid.isLandscape && !grid.isLargeTablet()) { // mContent.setGridSize(1, (int) grid.numHotseatIcons);// 替换成水平布局mContent.setGridSize((int) grid.numHotseatIcons, 1); } else { mContent.setGridSize((int) grid.numHotseatIcons, 1); } mContent.setIsHotseat(true); Log.i(TAG, "onFinishInflate,(int) grid.numHotseatIcons: " + (int) grid.numHotseatIcons); resetLayout(); }
这里网上看到一个修改屏蔽开机小提示的分享出来packages\apps\launcher3\src\com\android\launcher3\LauncherClings.java
private static final boolean DISABLE_CLINGS = true;
还有隐藏搜索引擎栏
修改packages\apps\launcher3\src\com\android\launcher3\Launcher.java
private void setupViews() { ... mSearchDropTargetBar = (SearchDropTargetBar) mDragLayer.findViewById(R.id.search_drop_target_bar); //隐藏首页搜索栏 mSearchDropTargetBar.setVisibility(View.GONE); .... }
阅读全文
0 0
- Launcher3 Hotseat布局
- Launcher3 HotSeat显示名称
- android去掉Launcher3中的hotseat
- Android Launcher3修改行数,列数,布局等;隐藏HostSeat,使用户无法拖拽应用图标到Hotseat
- launcher3的hotseat的图标文字处理
- Launcher3源码浅析(5.1)--Hotseat
- Launcher3--launcher3 icon以及hotseat size大小修改
- Android 6.0的Launcher3的关于Hotseat的浅析
- Launcher3将hotseat栏固定,禁止拖动,禁止形成文件夹
- 修改Launcher3的Hotseat的位置到右侧的方法
- Android Launcher3在Hotseat中将AllappsButton 替换成普通shortcut
- android launcher3 布局简介
- launcher3 修改默认桌面布局
- Android launcher3布局和结构
- Android launcher3布局和结构
- (7)Launcher3客制化之,修改单屏幕后,Fix在Hotseat拖动应用删除报错
- (3)Launcher3 的布局和结构
- AndroidL中修改launcher3主菜单布局
- 个人svn服务器搭建
- 孤儿进程与僵尸进程[总结]
- 初学笔记
- MPEG音频编码
- H5新标签Html5新标签解释及用法
- Launcher3 Hotseat布局
- 计算广告学习笔记1.3 广告的基础知识-广告与营销的区别
- 51Nod
- 解决apt-get install E: 无法定位软件包问题
- linux insmod
- ASCII码字符表
- Servlet的过滤器与Spring拦截器详解
- c++中的重载,重写,重定义
- 史上最全的maven pom.xml文件教程详解