|
|
@@ -34,7 +34,7 @@ public class BookmarkAnimation {
|
|
|
animationDrawable.start();
|
|
|
}
|
|
|
|
|
|
- public void offAnimationShow(ImageView target, @DrawableRes int drawableRes, boolean isWhite) {
|
|
|
+ public void offAnimationShow(ImageView target, @DrawableRes int drawableRes, int tintColor) {
|
|
|
target.setImageResource(R.drawable.bookmark_off_animation);
|
|
|
animationDrawable = (AnimationDrawable) target.getDrawable();
|
|
|
animationDrawable.setOneShot(true);
|
|
|
@@ -43,7 +43,7 @@ public class BookmarkAnimation {
|
|
|
* 이를 방지하기 위해서 컬러를 다시 설정해준다.
|
|
|
*/
|
|
|
Drawable drawable = ContextCompat.getDrawable(target.getContext(), drawableRes);
|
|
|
- DrawableCompat.setTint(drawable, isWhite ? ResourceUtil.getColor(R.color.CFFFFFF) : ResourceUtil.getColor(R.color.C000000));
|
|
|
+ DrawableCompat.setTint(drawable, ResourceUtil.getColor(tintColor));
|
|
|
animationDrawable.addFrame(drawable, 40);
|
|
|
animationDrawable.start();
|
|
|
}
|