[Solved] Picasso recycle view retrofit 2 in grid view
Change adapter = new DataAdapter(data,context); line to adapter = new DataAdapter(data,YourActivity.this); then, go to the Adapter class, and paste public class DataAdapter extends RecyclerView.Adapter<DataAdapter.ViewHolder> { private ArrayList<dashboard.Dashboard_info> android; private Activity activity; public DataAdapter(ArrayList<dashboard.Dashboard_info> android,Activity activity) { this.android = android; this.activity = activity; } now use picasso with Picasso.with(activity).load(android.get(i) .getWeek_image()) .resize(250,200) .into(viewHolder.img_android); solved Picasso recycle view … Read more