question: @ OnClick ( R . id . info_icon_button ) public void onInfoClick ( View view ) { Offer selectedOffer ; int position = getAdapterPosition ( ) ; int cardPosition = getCardPosition ( position ) ; selectedOffer = offers . get ( cardPosition ) ; goToInfo ( selectedOffer , view . getContext ( ) ) ; }
target:  When the info icon button is clicked on a card, need to get the offer that was selected and call the function goToInfo()