Loading src/com/android/calculator2/HistoryFragment.java +6 −2 Original line number Diff line number Diff line Loading @@ -19,9 +19,9 @@ package com.android.calculator2; import android.animation.Animator; import android.animation.ObjectAnimator; import android.app.Fragment; import android.app.FragmentTransaction; import android.os.Bundle; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.MotionEvent; Loading Loading @@ -179,7 +179,11 @@ public class HistoryFragment extends Fragment { final View view = getView(); final int height = getResources().getDisplayMetrics().heightPixels; if (enter) { if (transit == FragmentTransaction.TRANSIT_FRAGMENT_OPEN) { return ObjectAnimator.ofFloat(view, View.TRANSLATION_Y, -height, 0f); } else { return null; } } else { return ObjectAnimator.ofFloat(view, View.TRANSLATION_Y, -height); } Loading Loading
src/com/android/calculator2/HistoryFragment.java +6 −2 Original line number Diff line number Diff line Loading @@ -19,9 +19,9 @@ package com.android.calculator2; import android.animation.Animator; import android.animation.ObjectAnimator; import android.app.Fragment; import android.app.FragmentTransaction; import android.os.Bundle; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.MotionEvent; Loading Loading @@ -179,7 +179,11 @@ public class HistoryFragment extends Fragment { final View view = getView(); final int height = getResources().getDisplayMetrics().heightPixels; if (enter) { if (transit == FragmentTransaction.TRANSIT_FRAGMENT_OPEN) { return ObjectAnimator.ofFloat(view, View.TRANSLATION_Y, -height, 0f); } else { return null; } } else { return ObjectAnimator.ofFloat(view, View.TRANSLATION_Y, -height); } Loading