use of com.android.systemui.recents.tv.views.TaskCardView in project android_frameworks_base by DirtyUnicorns.
the class HomeRecentsEnterExitAnimationHolder method startEnterAnimation.
public void startEnterAnimation(boolean isPipShown) {
for (int i = 0; i < mGridView.getChildCount(); i++) {
TaskCardView view = (TaskCardView) mGridView.getChildAt(i);
long delay = Math.max(mDelay * i, 0);
view.setTranslationX(-mTranslationX);
view.animate().alpha(isPipShown ? mDimAlpha : 1.0f).translationX(0).setDuration(mDuration).setStartDelay(delay).setInterpolator(Interpolators.FAST_OUT_SLOW_IN);
}
}
use of com.android.systemui.recents.tv.views.TaskCardView in project android_frameworks_base by AOSPA.
the class HomeRecentsEnterExitAnimationHolder method setEnterFromAppStartingAnimationValues.
/**
* Sets the initial values Recents enter animation
* when Recents is started from an app.
*/
public void setEnterFromAppStartingAnimationValues(boolean isPipShown) {
for (int i = 0; i < mGridView.getChildCount(); i++) {
TaskCardView view = (TaskCardView) mGridView.getChildAt(i);
view.setTranslationX(0);
view.setAlpha(isPipShown ? mDimAlpha : 1f);
view.getInfoFieldView().setAlpha(isPipShown ? 0 : 1f);
if (isPipShown && view.hasFocus()) {
view.getViewFocusAnimator().changeSize(false);
}
}
}
use of com.android.systemui.recents.tv.views.TaskCardView in project android_frameworks_base by AOSPA.
the class HomeRecentsEnterExitAnimationHolder method startExitAnimation.
public void startExitAnimation(DismissRecentsToHomeAnimationStarted dismissEvent) {
for (int i = mGridView.getChildCount() - 1; i >= 0; i--) {
TaskCardView view = (TaskCardView) mGridView.getChildAt(i);
long delay = Math.max(mDelay * (mGridView.getChildCount() - 1 - i), 0);
view.animate().alpha(0.0f).translationXBy(-mTranslationX).setDuration(mDuration).setStartDelay(delay).setInterpolator(Interpolators.FAST_OUT_SLOW_IN);
if (i == 0) {
view.animate().setListener(dismissEvent.getAnimationTrigger().decrementOnAnimationEnd());
dismissEvent.getAnimationTrigger().increment();
}
}
}
use of com.android.systemui.recents.tv.views.TaskCardView in project android_frameworks_base by AOSPA.
the class HomeRecentsEnterExitAnimationHolder method setEnterFromHomeStartingAnimationValues.
/**
* Sets the initial values Recents enter animation
* when Recents is started from the Launcher.
*/
public void setEnterFromHomeStartingAnimationValues(boolean isPipShown) {
for (int i = 0; i < mGridView.getChildCount(); i++) {
TaskCardView view = (TaskCardView) mGridView.getChildAt(i);
view.setTranslationX(0);
view.setAlpha(0.0f);
view.getInfoFieldView().setAlpha(isPipShown ? 0 : 1f);
if (isPipShown && view.hasFocus()) {
view.getViewFocusAnimator().changeSize(false);
}
}
}
use of com.android.systemui.recents.tv.views.TaskCardView in project android_frameworks_base by crdroidandroid.
the class HomeRecentsEnterExitAnimationHolder method setEnterFromHomeStartingAnimationValues.
/**
* Sets the initial values Recents enter animation
* when Recents is started from the Launcher.
*/
public void setEnterFromHomeStartingAnimationValues(boolean isPipShown) {
for (int i = 0; i < mGridView.getChildCount(); i++) {
TaskCardView view = (TaskCardView) mGridView.getChildAt(i);
view.setTranslationX(0);
view.setAlpha(0.0f);
view.getInfoFieldView().setAlpha(isPipShown ? 0 : 1f);
if (isPipShown && view.hasFocus()) {
view.getViewFocusAnimator().changeSize(false);
}
}
}
Aggregations