Beispiel #1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView = LayoutInflater.From(parent.Context).
                            Inflate(Resource.Layout.rv_item, parent, false);
            LoginViewHolder vh = new LoginViewHolder(itemView);

            return(vh);
        }
Beispiel #2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            Log.Debug("", $"{position}");
            Log.Debug("", $"{mainList}");
            LoginViewHolder vh = holder as LoginViewHolder;

            vh.Login.Text    = mainList[position].login;
            vh.Password.Text = mainList[position].password;
        }