Merge "Enabling Home->Recents transition."
This commit is contained in:
@@ -120,11 +120,13 @@
|
||||
duration of the transition in to recents. -->
|
||||
<integer name="recents_animate_task_bar_enter_delay">225</integer>
|
||||
<!-- The min animation duration for animating the task bar out. -->
|
||||
<integer name="recents_animate_task_exit_to_home_duration">225</integer>
|
||||
<!-- The min animation duration for animating the task bar out. -->
|
||||
<integer name="recents_animate_task_bar_exit_duration">125</integer>
|
||||
<!-- The min animation duration for animating the task in when transitioning from home. -->
|
||||
<integer name="recents_animate_task_enter_from_home_duration">325</integer>
|
||||
<integer name="recents_animate_task_enter_from_home_duration">275</integer>
|
||||
<!-- The animation stagger to apply to each task animation when transitioning from home. -->
|
||||
<integer name="recents_animate_task_enter_from_home_delay">16</integer>
|
||||
<integer name="recents_animate_task_enter_from_home_delay">10</integer>
|
||||
<!-- The min animation duration for animating the nav bar scrim in. -->
|
||||
<integer name="recents_nav_bar_scrim_enter_duration">400</integer>
|
||||
<!-- The animation duration for animating the removal of a task view. -->
|
||||
|
||||
@@ -26,7 +26,7 @@ public class Constants {
|
||||
|
||||
public static class App {
|
||||
// Enables the home->Recents transition
|
||||
public static final boolean EnableHomeTransition = false;
|
||||
public static final boolean EnableHomeTransition = true;
|
||||
// Enables the screenshot app->Recents transition
|
||||
public static final boolean EnableScreenshotAppTransition = false;
|
||||
// Enables the filtering of tasks according to their grouping
|
||||
|
||||
@@ -70,6 +70,7 @@ public class RecentsConfiguration {
|
||||
/** Task view animation and styles */
|
||||
public int taskViewEnterFromHomeDuration;
|
||||
public int taskViewEnterFromHomeDelay;
|
||||
public int taskViewExitToHomeDuration;
|
||||
public int taskViewRemoveAnimDuration;
|
||||
public int taskViewRemoveAnimTranslationXPx;
|
||||
public int taskViewTranslationZMinPx;
|
||||
@@ -174,6 +175,8 @@ public class RecentsConfiguration {
|
||||
res.getInteger(R.integer.recents_animate_task_enter_from_home_duration);
|
||||
taskViewEnterFromHomeDelay =
|
||||
res.getInteger(R.integer.recents_animate_task_enter_from_home_delay);
|
||||
taskViewExitToHomeDuration =
|
||||
res.getInteger(R.integer.recents_animate_task_exit_to_home_duration);
|
||||
taskViewRemoveAnimDuration =
|
||||
res.getInteger(R.integer.recents_animate_task_view_remove_duration);
|
||||
taskViewRemoveAnimTranslationXPx =
|
||||
|
||||
@@ -327,8 +327,8 @@ public class TaskView extends FrameLayout implements Task.TaskCallbacks, View.On
|
||||
animate()
|
||||
.translationY(ctx.offscreenTranslationY)
|
||||
.setStartDelay(0)
|
||||
.setInterpolator(mConfig.fastOutSlowInInterpolator)
|
||||
.setDuration(mConfig.taskViewEnterFromHomeDuration)
|
||||
.setInterpolator(mConfig.fastOutLinearInInterpolator)
|
||||
.setDuration(mConfig.taskViewExitToHomeDuration)
|
||||
.withLayer()
|
||||
.withEndAction(ctx.postAnimationTrigger.decrementAsRunnable())
|
||||
.start();
|
||||
|
||||
Reference in New Issue
Block a user