Пример #1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.Vocabulary_Adapter_Layout, parent, false);
            VocabularyViewHolder vh = new VocabularyViewHolder(itemView, OnClick, mRecyclerView);

            return(vh);
        }
Пример #2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            VocabularyViewHolder photoViewHolder = holder as VocabularyViewHolder;

            photoViewHolder.Caption.Text = weekly_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;
        }