public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.spinner_row, parent, false); SpinnerViewHolder vh = new SpinnerViewHolder(itemView, OnClick, mRecyclerView); return(vh); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { SpinnerViewHolder photoViewHolder = holder as SpinnerViewHolder; photoViewHolder.txtspinnertext.Text = itemlist[position]; //int color = Resource.Color.abc_background_cache_hint_selector_material_dark; Animation animation = AnimationUtils.LoadAnimation(ac, (position > lastPosition) ? Resource.Animation.slide_up : Resource.Animation.slide_up); photoViewHolder.ItemView.StartAnimation(animation); lastPosition = position; }