package Ġcom . ag h aj ari . zoom helper . recycler Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . ag h aj ari . zoom helper . R Ċ import Ġcom . ag h aj ari . zoom helper . Zoom Helper Ċ import Ġcom . ag h aj ari . zoom helper . Zoom able Activity Ċ Ċ class ĠRecyclerView Activity Ġ: ĠZoom able Activity () Ġ{ ĊĊĠĠĠ Ġlateinit Ġvar Ġadapter : ĠAdapter ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ recycler ) ĊĊĠĠĠĠĠĠĠ Ġval Ġrv Ġ= ĠfindViewById < RecyclerView >( R . id . rv ) ĊĠĠĠĠĠĠĠ Ġrv . layout Manager Ġ= ĠLinearLayoutManager ( this ) ĊĠĠĠĠĠĠĠ Ġadapter Ġ= ĠAdapter ( Fake Data . fake Data ( this )) ĊĠĠĠĠĠĠĠ Ġrv . adapter Ġ= Ġadapter ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Resume () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Resume () ĊĠĠĠĠĠĠĠ ĠZoom Helper . getInstance (). add On Zoom StateChanged Listener ( adapter ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Pause () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Pause () ĊĠĠĠĠĠĠĠ ĠZoom Helper . getInstance (). remove On Zoom StateChanged Listener ( adapter ) ĊĠĠĠ Ġ} Ċ }