Search in sources :

Example 6 with ACCEL_2

use of com.android.launcher3.anim.Interpolators.ACCEL_2 in project android_packages_apps_404Launcher by P-404.

the class WorkspaceStateTransitionAnimation method setScrim.

public void setScrim(PropertySetter propertySetter, LauncherState state, StateAnimationConfig config) {
    Scrim workspaceDragScrim = mLauncher.getDragLayer().getWorkspaceDragScrim();
    propertySetter.setFloat(workspaceDragScrim, SCRIM_PROGRESS, state.getWorkspaceBackgroundAlpha(mLauncher), LINEAR);
    SysUiScrim sysUiScrim = mLauncher.getRootView().getSysUiScrim();
    propertySetter.setFloat(sysUiScrim, SYSUI_PROGRESS, state.hasFlag(FLAG_HAS_SYS_UI_SCRIM) ? 1 : 0, LINEAR);
    propertySetter.setViewBackgroundColor(mLauncher.getScrimView(), state.getWorkspaceScrimColor(mLauncher), config.getInterpolator(ANIM_SCRIM_FADE, ACCEL_2));
}
Also used : SysUiScrim(com.android.launcher3.graphics.SysUiScrim) Scrim(com.android.launcher3.graphics.Scrim) SysUiScrim(com.android.launcher3.graphics.SysUiScrim)

Example 7 with ACCEL_2

use of com.android.launcher3.anim.Interpolators.ACCEL_2 in project android_packages_apps_Launcher3 by crdroidandroid.

the class WorkspaceStateTransitionAnimation method setScrim.

public void setScrim(PropertySetter propertySetter, LauncherState state, StateAnimationConfig config) {
    Scrim workspaceDragScrim = mLauncher.getDragLayer().getWorkspaceDragScrim();
    propertySetter.setFloat(workspaceDragScrim, SCRIM_PROGRESS, state.getWorkspaceBackgroundAlpha(mLauncher), LINEAR);
    SysUiScrim sysUiScrim = mLauncher.getRootView().getSysUiScrim();
    propertySetter.setFloat(sysUiScrim, SYSUI_PROGRESS, state.hasFlag(FLAG_HAS_SYS_UI_SCRIM) ? 1 : 0, LINEAR);
    propertySetter.setViewBackgroundColor(mLauncher.getScrimView(), state.getWorkspaceScrimColor(mLauncher), config.getInterpolator(ANIM_SCRIM_FADE, ACCEL_2));
}
Also used : SysUiScrim(com.android.launcher3.graphics.SysUiScrim) Scrim(com.android.launcher3.graphics.Scrim) SysUiScrim(com.android.launcher3.graphics.SysUiScrim)

Aggregations

Scrim (com.android.launcher3.graphics.Scrim)5 SysUiScrim (com.android.launcher3.graphics.SysUiScrim)5 Animator (android.animation.Animator)1 ObjectAnimator (android.animation.ObjectAnimator)1 TimeInterpolator (android.animation.TimeInterpolator)1 Point (android.graphics.Point)1 TextPaint (android.text.TextPaint)1 View (android.view.View)1 Interpolator (android.view.animation.Interpolator)1 ListView (android.widget.ListView)1 LauncherState (com.android.launcher3.LauncherState)1 PagedView (com.android.launcher3.PagedView)1 SpringProperty (com.android.launcher3.anim.SpringProperty)1 ShelfPeekAnim (com.android.quickstep.util.ShelfPeekAnim)1 ShelfAnimState (com.android.quickstep.util.ShelfPeekAnim.ShelfAnimState)1 LauncherRecentsView (com.android.quickstep.views.LauncherRecentsView)1 ResourceProvider (com.android.systemui.plugins.ResourceProvider)1