@Override
 private void start(View view, long l, float f, float f2, float f3, float f4, float f5, float f6) {
   view.setScaleX(f);
   view.setScaleY(f);
   view.setTranslationX(f3);
   view.setTranslationY(f4);
   ViewPropertyAnimator viewPropertyAnimator =
       view.animate().translationX(f5).translationY(f6).scaleX(f2).scaleY(f2).setDuration(l);
   viewPropertyAnimator.start();
 }
예제 #2
0
  private void ResetListItem(View tempView) {
    Log.d("Shortlist reset call", "Works");
    tempView
        .animate()
        .translationX(0)
        .alpha(1f)
        .setListener(
            new AnimatorListenerAdapter() {
              @Override
              public void onAnimationEnd(Animator animation) {
                super.onAnimationEnd(animation);
                int count = mDownView_parent.getChildCount() - 1;
                for (int i = 0; i < count; i++) {
                  View V = mDownView_parent.getChildAt(i);
                  Log.d("removing child class", "" + V.getClass());
                  mDownView_parent.removeViewAt(0);
                }

                moptionsDisplay = false;
              }
            });
    stagged_position = -1;
    opened_position = -1;
  }