public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { var binding = holder as SessionItemViewBinder; var session = GetItem(position); binding.SetSession(session); if (position > 0 && position < ItemCount) { Session prevSession = GetItem(position - 1); if (prevSession.stime.Ticks == session.stime.Ticks) { binding.txtStime.Visibility = ViewStates.Invisible; } else { binding.txtStime.Visibility = ViewStates.Visible; } } else { binding.txtStime.Visibility = ViewStates.Visible; } binding.btnStar.SetOnLikeAction( v => { session.IsChecked = true; dao.UpdateChecked(session).Subscribe(); }, v => { session.IsChecked = false; dao.UpdateChecked(session).Subscribe(); }); binding.cardView.SetOnClickAction(v => activityNavigator.ShowSessionDetail(this.Context as Activity, session, REQ_DETAIL)); }