public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.ClassSchedule_row, parent, false); MyClassScheduleViewHolder vh = new MyClassScheduleViewHolder(itemView, OnClick, mRecyclerView); return(vh); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { MyClassScheduleViewHolder onlinetestViewHolder = holder as MyClassScheduleViewHolder; Animation animation = AnimationUtils.LoadAnimation(ac, (position > lastPosition) ? Resource.Animation.slide_up1 : Resource.Animation.slide_down1); onlinetestViewHolder.ItemView.StartAnimation(animation); lastPosition = position; }