app/src/main/java/com/example/android/sunshine/ui/list/ForecastAdapter.java
@Override
        public void onClick(View v) {
            int adapterPosition = getAdapterPosition();
            Date date = mForecast.get(adapterPosition).getDate();
            mClickHandler.onItemClick(date);
        }
/**
         * This gets called by the child views during a click. We fetch the date that has been
         * selected, and then call the onItemClick handler registered with this adapter, passing that
         * date.
         *
         * @param v the View that was clicked
         */
This gets called by the child views during a click. We fetch the date that has been
selected, and then call the onItemClick handler registered with this adapter, passing that
date.

@param v the View that was clicked
This gets called by the child views during a click . We fetch the date that has been selected and then call the onItemClick handler registered with this adapter passing that date . @param v the View that was clicked
@Override
        public void onClick(View v) {
            int adapterPosition = getAdapterPosition();
            Date date = mForecast.get(adapterPosition).getDate();
            mClickHandler.onItemClick(date);
        }
@ Override public void onClick ( View v ) { int adapterPosition = getAdapterPosition ( ) ; Date date = mForecast . get ( adapterPosition ) . getDate ( ) ; mClickHandler . onItemClick ( date ) ; }
This gets called by the child views during a click.
This gets called by the child views during a click .