| | |
| | | */ |
| | | public static void dropExpand(View view,int initialHeight , int targetHeight) { |
| | | ValueAnimator animator = ValueAnimator.ofInt(initialHeight,targetHeight); |
| | | animator.setDuration(500); |
| | | animator.setDuration(400); |
| | | animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { |
| | | @Override |
| | | public void onAnimationUpdate(ValueAnimator animation) { |
| | |
| | | */ |
| | | public static void pullCollapse(View view,int initialHeight, int targetHeight) { |
| | | ValueAnimator animator = ValueAnimator.ofInt(initialHeight, targetHeight); |
| | | animator.setDuration(500); |
| | | animator.setDuration(400); |
| | | animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { |
| | | @Override |
| | | public void onAnimationUpdate(ValueAnimator animation) { |