app/src/main/java/io/github/ilya_lebedev/popularmovies/MoviesAdapter.java
/**
     * This method called when new ViewHolder is created.
     *
     * @param parent The ViewGroup that these ViewHolders are contained within.
     * @param viewType Used to provide different layout.
     *                 In our case we don't use it.
     * @return A new MoviesAdapter that holds the view for each movie list item
     */
This method called when new ViewHolder is created.
@param parent The ViewGroup that these ViewHolders are contained within.
@param viewType Used to provide different layout.
In our case we don't use it.
@return A new MoviesAdapter that holds the view for each movie list item
This method called when new ViewHolder is created . @param parent The ViewGroup that these ViewHolders are contained within . @param viewType Used to provide different layout . In our case we don ' t use it . @return A new MoviesAdapter that holds the view for each movie list item
@Override
    public MoviesAdapterViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(mContext)
                .inflate(R.layout.list_item_movie, parent, false);
        view.setFocusable(true);
        return new MoviesAdapterViewHolder(view);
    }
@ Override public MoviesAdapterViewHolder onCreateViewHolder ( ViewGroup parent , int viewType ) { View view = LayoutInflater . from ( mContext ) . inflate ( R . layout . list_item_movie , parent , false ) ; view . setFocusable ( true ) ; return new MoviesAdapterViewHolder ( view ) ; }
This method called when new ViewHolder is created.
This method called when new ViewHolder is created .