private void FillSimpleView(RecyclerView.ViewHolder vh, User user) { NormalViewHolder normalViewHolder = (NormalViewHolder)vh.JavaCast<NormalViewHolder>(); ; SwipeMenuLayout itemView = (SwipeMenuLayout)normalViewHolder.ItemView.JavaCast<SwipeMenuLayout>(); itemView.Click += delegate { Toast.MakeText(mContext, "Hi " + user.userName, ToastLength.Short).Show(); }; normalViewHolder.btGood.Click += delegate { Toast.MakeText(normalViewHolder.ItemView.Context, "Good ", ToastLength.Short).Show(); }; normalViewHolder.btOpen.Click += delegate { Toast.MakeText(mContext, "Open " + user.userName, ToastLength.Short).Show(); }; normalViewHolder.btDelete.Click += delegate { try { users.RemoveAt(vh.AdapterPosition); mAdapter.NotifyItemRemoved(vh.AdapterPosition); } catch { //有的时候会执行多次点击事件导致报错 } }; normalViewHolder.tvName.Text = user.userName; }