package Ġcom . br . ap imer cad ol iv re . search products . ui . list . view holder Ċ Ċ import Ġandroid . view . View Ċ import Ġandroid . widget . ImageView Ċ import Ġandroid . widget . TextView Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . br . ap imer cad ol iv re . R Ċ import Ġcom . br . ap imer cad ol iv re . search products . models . models . Product Ċ Ċ class ĠProduct ViewHolder ( private Ġval Ġlayout View : ĠView ) Ġ: ĠRecyclerView . ViewHolder ( layout View ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġview Root : ĠView ĊĠĠĠ Ġval Ġiv Product Image : ĠImageView ĊĠĠĠ Ġval Ġtv ProductName : ĠTextView ĊĠĠĠ Ġval Ġtv Product Price : ĠTextView ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġwith ( layout View ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġview Root Ġ= Ġthis . findViewById ( R . id . cv _ root _ item _ product _ list ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġiv Product Image Ġ= Ġthis . findViewById ( R . id . img _ view _ img _ product ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtv ProductName Ġ= Ġthis . findViewById ( R . id . tv _ label _ product _ name ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtv Product Price Ġ= Ġthis . findViewById ( R . id . tv _ label _ product _ price ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ Ċ }