package Ġcom . myapp . med led . adapters . recycler _ view Ċ Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . myapp . med led . R Ċ import Ġcom . myapp . med led . adapters . recycler _ view . view _ holders . Links ViewHolder Ċ Ċ class ĠLinks RecyclerView Adapter ( private Ġval ĠlistOf Links Ġ: ArrayList < String >): ĠRecyclerView . Adapter < Links ViewHolder >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ): ĠLinks ViewHolder Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠLinks ViewHolder ( LayoutInflater . from ( parent . context ). inflate ( R . layout . link _ card , parent , false )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠlistOf Links . size ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠLinks ViewHolder , Ġposition : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġholder . link Text . text Ġ= ĠlistOf Links [ holder . adapter Position ] ĊĠĠĠ Ġ} ĊĊ Ċ }