package Ġcom . sel jab ali . design tokens . ui . elev ations Ċ Ċ import Ġandroid . view . View Ċ import Ġandroid . widget . TextView Ċ import Ġandroidx . appcompat . widget . AppCompat Button Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . sel jab ali . design tokens . R Ċ import Ġcom . sel jab ali . design tokens . utilities . Res Ċ import Ġcom . sel jab ali . design tokens . utilities . set Under lined Ċ Ċ class ĠE levation ViewHolder ( item View : ĠView ) Ġ: ĠRecyclerView . ViewHolder ( item View ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġelevation Name TextView : ĠTextView Ġ= ĠitemView . findViewById ( R . id . elevation Name TextView ) ĊĠĠĠ Ġprivate Ġval Ġelevation Dp Value TextView : ĠTextView Ġ= ĠitemView . findViewById ( R . id . elevation Dp Value TextView ) ĊĠĠĠ Ġprivate Ġval Ġelevation Px Value TextView : ĠTextView Ġ= ĠitemView . findViewById ( R . id . elevation Px Value TextView ) ĊĠĠĠ Ġprivate Ġval Ġelevation View : ĠAppCompat Button Ġ= ĠitemView . findViewById ( R . id . elevation View ) ĊĊĠĠĠ Ġfun Ġbind ( elevation : ĠE lev ations ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcontext Ġ= ĠitemView . context ĊĠĠĠĠĠĠĠ Ġelevation Name TextView . text Ġ= ĠRes . getString ( context , Ġelevation . string Id ) ĊĠĠĠĠĠĠĠ Ġelevation Name TextView . set Under lined () ĊĊĠĠĠĠĠĠĠ Ġelevation Dp Value TextView . text Ġ= ĠRes . getString Formatted ( context , ĠR . string . colon _ formatted , ĠRes . getString ( context , ĠR . string . dp ), ĠRes . get Dp ( context , Ġelevation . elevation Id ). toString ()) ĊĠĠĠĠĠĠĠ Ġelevation Px Value TextView . text Ġ= ĠRes . getString Formatted ( context , ĠR . string . colon _ formatted , ĠRes . getString ( context , ĠR . string . px ), ĠRes . get Px ( context , Ġelevation . elevation Id ). toString ()) ĊĠĠĠĠĠĠĠ Ġelevation View . elevation Ġ= ĠRes . get Px ( context , Ġelevation . elevation Id ) ĊĠĠĠĠĠĠĠ ĠitemView . invalidate () ĊĠĠĠ Ġ} Ċ }