@Override public void onBindViewHolder(MyViewHolder holder, int position) { MyData data = mDataList.get(position); holder.mTextView.setText(data.getText()); holder.mImageView.setImageResource(data.getImageResourceId()); }In this example, the MyViewHolder object is passed in to populate the views for the item at the given position in the list. The ViewHolder holds references to the TextView and ImageView for that item, which are set with the appropriate data from the mDataList. ViewHolder is a part of the Android SDK and is typically used in the RecyclerView package.