@ Override public VH getViewHolder ( ViewGroup parent ) { return getViewHolder ( LayoutInflater . from ( parent . getContext ( ) ) . inflate ( getLayoutRes ( ) , parent , false ) ) ; }
This method returns the ViewHolder for our item using the provided View .