ListContact/app/src/main/java/com/example/a64/listcontact/fragments/CustomRecyclerview.java
@Override
    public void onBindViewHolder(ViewHolder holder, int position) {
        // - get element from your dataset at this position
        // - replace the contents of the view with that element
        String Nombre = mDataset.get(position).getNombre();
        String Cargo = mDataset.get(position).getCargo();
        holder.txtNombre.setText(Nombre);
        holder.txtCargo.setText(Cargo);
        holder.imgIcono.setImageResource(mDataset.get(position).getImagen());

    }
// Replace the contents of a view (invoked by the layout manager)
Replace the contents of a view (invoked by the layout manager)
Replace the contents of a view ( invoked by the layout manager )
@Override
    public void onBindViewHolder(ViewHolder holder, int position) {
        String Nombre = mDataset.get(position).getNombre();
        String Cargo = mDataset.get(position).getCargo();
        holder.txtNombre.setText(Nombre);
        holder.txtCargo.setText(Cargo);
        holder.imgIcono.setImageResource(mDataset.get(position).getImagen());
    }
@ Override public void onBindViewHolder ( ViewHolder holder , int position ) { String Nombre = mDataset . get ( position ) . getNombre ( ) ; String Cargo = mDataset . get ( position ) . getCargo ( ) ; holder . txtNombre . setText ( Nombre ) ; holder . txtCargo . setText ( Cargo ) ; holder . imgIcono . setImageResource ( mDataset . get ( position ) . getImagen ( ) ) ; }
Replace the contents of a view (invoked by the layout manager)
Replace the contents of a view ( invoked by the layout manager )
// - get element from your dataset at this position // - replace the contents of the view with that element