package Ġcom . kernel . fin ch . core . presentation . detail . network log . list Ċ Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . kernel . fin ch . common . log gers . data . models . Network Log Entity Ċ import Ġcom . kernel . fin ch . core . presentation . detail . network log . Network Log List Fragment Ċ Ċ internal Ġclass ĠNetwork Log Adapter ( private Ġval Ġlistener : ĠNetwork Log List Fragment . On List Fragment Interaction Listener ) Ġ: ĊĠĠĠ Ġandroidx . recyclerview . widget . RecyclerView . Adapter < Network Log ViewHolder >() Ġ{ ĊĊĠĠĠ Ġprivate Ġvar Ġdata : ĠList < Network Log Entity > Ġ= ĠArrayList () ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ= Ġdata . size ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠNetwork Log ViewHolder , Ġposition : ĠInt ) Ġ= ĊĠĠĠĠĠĠĠ Ġholder . bind ( data [ position ], Ġlistener ) ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ): ĠNetwork Log ViewHolder Ġ= ĊĠĠĠĠĠĠĠ ĠNetwork Log ViewHolder ( parent ) ĊĊĠĠĠ Ġfun ĠsetData ( data : ĠList < Network Log Entity >) Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . data Ġ= Ġdata ĊĠĠĠĠĠĠĠ Ġnotify DataSet Changed () ĊĠĠĠ Ġ} Ċ } Ċ