1.概述
在10.0进行系统Laucher3定制中,有功能需求要求实现高斯模糊(毛玻璃)效果背景效果,在Launcher3中也是常见的功能这就需要了解Workspace的背景定义,然后对背景实现高斯模糊功能,首选要分析加载流程,然后对其背景进行高斯模糊就可以了
效果图如图:
2. Launcher3单层高斯模糊(毛玻璃)效果的实现的核心代码
packages\apps\Launcher3\res\layout\launcher.xml
packages\apps\Launcher3\src\com\android\launcher3\Launcher.java
packages\apps\Launcher3\src\com\android\launcher3\views\BlurUtil.java
3. Launcher3单层高斯模糊(毛玻璃)效果的实现代码功能分析
在Launcher3中的核心布局中,比较workspace hotseat folder等核心部件中,在
Launcher3中的核心部件就是在launcher.xml中,这里显示Launcher3桌面的核心控件,
DragLayer Workspace WorkspacePageIndicatorLine drop_target_bar hotseat等主要控件的布局
在虚拟桌面上可以摆放四种类型的对象:
1. ITEM_SHORTCUT,应用快捷方式
2. ITEM_APPWIDGET,app widget
3. ITEM_LIVE_F