Skip to content

Instantly share code, notes, and snippets.

@malikkurosaki
Created September 18, 2018 02:28
Show Gist options
  • Save malikkurosaki/a3bed311fb78597e5902732b869ebc19 to your computer and use it in GitHub Desktop.
Save malikkurosaki/a3bed311fb78597e5902732b869ebc19 to your computer and use it in GitHub Desktop.
package com.malik.rajanepikep;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
public class MyAdapter extends RecyclerView.ViewHolder {
public TextView nama,alamat;
public ImageView gambar;
public MyAdapter(@NonNull View itemView) {
super(itemView);
nama = itemView.findViewById(R.id.namanya);
alamat = itemView.findViewById(R.id.alamatnya);
gambar = itemView.findViewById(R.id.gambar);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment