Package android.support.v4.animation does not exist. import android.support.v4.animation.AnimatorCompatHelper;

I want to run OsmAnd in android studio, I saw by mistake:

enter image description here

please help me.

+5
source share
1 answer

I fixed my problem from this repo https://github.com/jordyamc/android-advancedrecyclerview/ BaseItemAnimationManager

import android.view.animation.Interpolator; protected void resetAnimation(RecyclerView.ViewHolder holder) { clearInterpolator(holder.itemView); endAnimation(holder); } protected void clearInterpolator(View v) { ViewCompat.setAlpha(v, 1.0F); ViewCompat.setScaleY(v, 1.0F); ViewCompat.setScaleX(v, 1.0F); ViewCompat.setTranslationY(v, 0.0F); ViewCompat.setTranslationX(v, 0.0F); ViewCompat.setRotation(v, 0.0F); ViewCompat.setRotationY(v, 0.0F); ViewCompat.setRotationX(v, 0.0F); //v.setPivotY((float)(v.getMeasuredHeight() / 2)); ViewCompat.setPivotX(v, (float) (v.getMeasuredWidth() / 2)); ViewCompat.animate(v).setInterpolator((Interpolator) null); } 
0
source

Source: https://habr.com/ru/post/1270608/


All Articles