a64_7.1android平板关于更改绘制矩形界面透明度
16lz
2021-12-04
diff --git a/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsTransitionController.java b/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsTransitionController.java
old mode 100644
new mode 100755
index b129bb0..cff810a
--- a/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsTransitionController.java
+++ b/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsTransitionController.java
@@ -293,7 +293,7 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
mProgress = progress;
float shiftCurrent = progress * mShiftRange;
//更改数字小数点改变透明度的深浅
- float workspaceHotseatAlpha = Utilities.boundToRange(progress, 0f, 1f);
+ float workspaceHotseatAlpha = Utilities.boundToRange(progress, 0.2f, 1f);
float alpha = 1 - workspaceHotseatAlpha;
float interpolation = mAccelInterpolator.getInterpolation(workspaceHotseatAlpha);
old mode 100644
new mode 100755
index b129bb0..cff810a
--- a/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsTransitionController.java
+++ b/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsTransitionController.java
@@ -293,7 +293,7 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
mProgress = progress;
float shiftCurrent = progress * mShiftRange;
//更改数字小数点改变透明度的深浅
- float workspaceHotseatAlpha = Utilities.boundToRange(progress, 0f, 1f);
+ float workspaceHotseatAlpha = Utilities.boundToRange(progress, 0.2f, 1f);
float alpha = 1 - workspaceHotseatAlpha;
float interpolation = mAccelInterpolator.getInterpolation(workspaceHotseatAlpha);
更多相关文章
- android设置背景色为透明
- android设置背景色为透明
- android设置背景色为透明
- android设置背景色为透明
- Android设置任何控件透明度
- 安卓开发学习笔记
- Android(安卓)字符串格式化 千位符
- Android对话框的高级设置《二》设置对话框按钮的透明度和对话框
- android:tint