尝试在我的回收视图适配器中调用R.anime.bounce_interpolator
时,我一直收到错误消息?原因是什么?
构造
private LayoutInflater inflater = null;
private List<GlobalLists> results = null;
private Context context = null;
public RecycleViewAdapter(Context context, List<GlobalLists> results){
this.inflater = LayoutInflater.from(context);
this.results = results;
this.context = context;
}
方法:
public void animate(RecyclerView.ViewHolder viewHolder) {
final Animation animAnticipateOvershoot = AnimationUtils.loadAnimation(this, R.anim.bounce_interpolator);
viewHolder.itemView.setAnimation(animAnticipateOvershoot);
}