5
Tôi muốn chạy OsmAnd trong studio android, tôi thấy có lỗi:gói android.support.v4.animation không tồn tại nhập android.support.v4.animation.AnimatorCompatHelper;
hãy giúp tôi.
Tôi muốn chạy OsmAnd trong studio android, tôi thấy có lỗi:gói android.support.v4.animation không tồn tại nhập android.support.v4.animation.AnimatorCompatHelper;
hãy giúp tôi.
Tôi cố định vấn đề của tôi từ repo này 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);
}