Skip to content

Commit 0365df7

Browse files
committed
replace AnimatorListener with android.animation.AnimatorListenerAdapter
1 parent 5ad7834 commit 0365df7

2 files changed

Lines changed: 3 additions & 48 deletions

File tree

expandabletextview/src/main/java/at/blogc/android/animator/AnimatorListener.java

Lines changed: 0 additions & 45 deletions
This file was deleted.

expandabletextview/src/main/java/at/blogc/android/views/ExpandableTextView.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package at.blogc.android.views;
22

33
import android.animation.Animator;
4+
import android.animation.AnimatorListenerAdapter;
45
import android.animation.ValueAnimator;
56
import android.content.Context;
67
import android.content.res.TypedArray;
@@ -11,7 +12,6 @@
1112

1213
import java.lang.reflect.Field;
1314

14-
import at.blogc.android.animator.AnimatorListener;
1515
import at.blogc.expandabletextview.R;
1616

1717
/**
@@ -153,7 +153,7 @@ public void onAnimationUpdate(final ValueAnimator animation)
153153
ExpandableTextView.this.setLayoutParams(layoutParams);
154154
}
155155
});
156-
valueAnimator.addListener(new AnimatorListener()
156+
valueAnimator.addListener(new AnimatorListenerAdapter()
157157
{
158158
@Override
159159
public void onAnimationEnd(final Animator animation)
@@ -204,7 +204,7 @@ public void onAnimationUpdate(final ValueAnimator animation)
204204
ExpandableTextView.this.setLayoutParams(layoutParams);
205205
}
206206
});
207-
valueAnimator.addListener(new AnimatorListener()
207+
valueAnimator.addListener(new AnimatorListenerAdapter()
208208
{
209209
@Override
210210
public void onAnimationEnd(final Animator animation)

0 commit comments

Comments
 (0)