diff --git a/library/src/main/java/com/silencedut/expandablelayout/ExpandableLayout.java b/library/src/main/java/com/silencedut/expandablelayout/ExpandableLayout.java index 8183fb2..4c64ddf 100644 --- a/library/src/main/java/com/silencedut/expandablelayout/ExpandableLayout.java +++ b/library/src/main/java/com/silencedut/expandablelayout/ExpandableLayout.java @@ -96,14 +96,9 @@ private void verticalAnimate(final int startHeight, final int endHeight ) { final View target = getChildAt(1); mExpandAnimator = ValueAnimator.ofInt(startHeight,endHeight); mExpandAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { - //private IntEvaluator intEvaluator = new IntEvaluator(); - int lastHeight=0; @Override public void onAnimationUpdate(ValueAnimator animation) { - int height = (int) animation.getAnimatedValue(); - int scrollStep = height-lastHeight; - lastHeight=height; - target.getLayoutParams().height=height; + target.getLayoutParams().height= ( int) animation.getAnimatedValue(); target.requestLayout(); } });