app/src/main/java/io/github/ilya_lebedev/popularmovies/MoviesAdapter.java
/**
     * This method is called by the RecyclerView to display the data at the specific position.
     *
     * @param moviesAdapterViewHolder View holder representing the content of the movie item
     * @param position The position of the movie item within the adapter data set
     */
This method is called by the RecyclerView to display the data at the specific position.
@param moviesAdapterViewHolder View holder representing the content of the movie item
@param position The position of the movie item within the adapter data set
This method is called by the RecyclerView to display the data at the specific position . @param moviesAdapterViewHolder View holder representing the content of the movie item @param position The position of the movie item within the adapter data set
@Override
    public void onBindViewHolder(MoviesAdapterViewHolder moviesAdapterViewHolder, int position) {
        mCursor.moveToPosition(position);
        String moviePosterPath = mCursor.getString(MainActivity.INDEX_MOVIE_POSTER_PATH);
        String moviePosterUrl = NetworkUtils.getMoviePosterUrl(mContext, moviePosterPath);
        Picasso.with(mContext).load(moviePosterUrl).into(moviesAdapterViewHolder.posterView);
    }
@ Override public void onBindViewHolder ( MoviesAdapterViewHolder moviesAdapterViewHolder , int position ) { mCursor . moveToPosition ( position ) ; String moviePosterPath = mCursor . getString ( MainActivity . INDEX_MOVIE_POSTER_PATH ) ; String moviePosterUrl = NetworkUtils . getMoviePosterUrl ( mContext , moviePosterPath ) ; Picasso . with ( mContext ) . load ( moviePosterUrl ) . into ( moviesAdapterViewHolder . posterView ) ; }
This method is called by the RecyclerView to display the data at the specific position.
This method is called by the RecyclerView to display the data at the specific position .