Esempio n. 1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.CurrentAffair_AdapterLayout, parent, false);
            CurrentViewHolder vh = new CurrentViewHolder(itemView, OnClick, mRecyclerView);

            return(vh);
        }
Esempio n. 2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            CurrentViewHolder photoViewHolder = holder as CurrentViewHolder;

            photoViewHolder.Caption.Text = current_list[position].content_title;
            Animation animation = AnimationUtils.LoadAnimation(ac, (position > lastPosition) ? Resource.Animation.slide_up1 : Resource.Animation.slide_down1);

            photoViewHolder.ItemView.StartAnimation(animation);
            lastPosition = position;
        }