a64_7.1android平板关于更改绘制矩形界面透明度
16lz
2021-01-23
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 透明度对应16进制值
- android设置view透明度的效果
- Android EditText保留小数点后两位
- android 透明度
- 对view设置透明度
- c语言float类型小数点后有几位有效数字?