Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public UserAdapter(Context context, List <User> users, IOnUserInteraction onUserInteraction)
 {
     Context            = context;
     _users             = users;
     _onUserInteraction = onUserInteraction;
 }