예제 #1
0
 public ViewHolder(UserAdapter adapter, View itemView, IOnUserInteraction onUserInteraction) : base(itemView)
 {
     _adapter = adapter;
     itemView.SetOnClickListener(this);
     userName           = itemView.FindViewById <TextView>(Resource.Id.user_name);
     firstLastName      = itemView.FindViewById <TextView>(Resource.Id.first_last_name);
     _onUserInteraction = onUserInteraction;
 }
예제 #2
0
 public SwipeToDelete(UserAdapter adapter) : base(0, ItemTouchHelper.Left)
 {
     _adapter    = adapter;
     _icon       = ContextCompat.GetDrawable(_adapter.Context, Resource.Mipmap.ic_delete_black_24dp);
     _background = new ColorDrawable(Color.Red);
 }