/** Ċ Ġ* ĠAnt onio Ċ Ġ* ĠCopyright Ġ( c ) Ġ 2 0 2 1 - present ĠNA VER ĠZ ĠCorp . Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġio . github . na ver z . ant onio . sample . ant onio Ċ Ċ import Ġandroidx . annotation . Drawable Res Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġio . github . na ver z . ant onio . BR Ċ import Ġio . github . na ver z . ant onio . R Ċ import Ġio . github . na ver z . ant onio . annotations . Mapped With View Dependency Ċ import Ġio . github . na ver z . ant onio . core . Ant onio Model Ċ import Ġio . github . na ver z . ant onio . core . state . RecyclerView State Ċ import Ġio . github . na ver z . ant onio . core . state . Submit table RecyclerView State Ċ import Ġio . github . na ver z . ant onio . core . state . ViewPager State Ċ import Ġio . github . na ver z . ant onio . databinding . Ant onio Binding Model ĊĊ Ċ data Ġclass ĠRecyclerView Grid With Refresh < ITEM Ġ: ĠAnt onio Model >( ĊĠĠĠ Ġval Ġre cyclerView State : ĠRecyclerView State < ITEM >, ĊĠĠĠ Ġval Ġon Refresh Requested : Ġ(() Ġ-> ĠUnit )? Ġ= Ġnull Ċ ) Ġ: ĠAnt onio Binding Model Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġlayout Id () Ġ= ĠR . layout . view _ holder _ recycler _ view _ grid _ with _ refresh ĊĠĠĠ Ġoverride Ġfun Ġbinding Variable Id (): ĠInt Ġ= ĠBR . parent Ċ } Ċ Ċ data Ġclass ĠViewHolder RecyclerView Vertical ( val Ġre cyclerView State : ĠRecyclerView State < Ant onio Model >) Ġ: ĊĠĠĠ ĠAnt onio Binding Model Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġlayout Id (): ĠInt Ġ= ĠR . layout . view _ holder _ recycler _ view _ vertical _ linear ĊĠĠĠ Ġoverride Ġfun Ġbinding Variable Id (): ĠInt Ġ= ĠBR . parent Ċ } Ċ Ċ data Ġclass ĠViewHolder RecyclerView Horizontal < ITEM Ġ: ĠAnt onio Model >( ĊĠĠĠ Ġval Ġsubmit table RecyclerView State : ĠSubmit table RecyclerView State < ITEM > Ċ ) Ġ: ĠAnt onio Binding Model Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġlayout Id (): ĠInt Ġ= ĠR . layout . view _ holder _ recycler _ view _ horizontal _ linear ĊĠĠĠ Ġoverride Ġfun Ġbinding Variable Id (): ĠInt Ġ= ĠBR . parent Ċ } Ċ Ċ data Ġclass ĠViewHolder RecyclerView Flex Horizontal < ITEM Ġ: ĠAnt onio Model >( ĊĠĠĠ Ġval Ġsubmit table RecyclerView State : ĠSubmit table RecyclerView State < ITEM > Ċ ) Ġ: ĠAnt onio Binding Model Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġlayout Id (): ĠInt Ġ= ĠR . layout . view _ holder _ recycler _ view _ flex _ horizontal _ linear ĊĠĠĠ Ġoverride Ġfun Ġbinding Variable Id (): ĠInt Ġ= ĠBR . parent Ċ } Ċ Ċ data Ġclass ĠContent Header ( val Ġtitle : ĠString ) Ġ: ĠAnt onio Binding Model Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġlayout Id (): ĠInt Ġ= ĠR . layout . view _ holder _ content _ header ĊĠĠĠ Ġoverride Ġfun Ġbinding Variable Id (): ĠInt Ġ= ĠBR . model Ċ } Ċ Ċ data Ġclass ĠRank ing Container ( val Ġranking List : ĠList < Content Ranking >) Ġ: ĠAnt onio Binding Model Ġ{ ĊĠĠĠ Ġdata Ġclass ĠContent Ranking ( ĊĠĠĠĠĠĠĠ Ġval Ġranking : ĠInt , ĊĠĠĠĠĠĠĠ Ġ@ Drawable Res Ġval Ġicon Res : ĠInt , ĊĠĠĠĠĠĠĠ Ġval Ġname : ĠString , ĊĠĠĠĠĠĠĠ Ġval Ġsub Content : ĠString , ĊĠĠĠĠĠĠĠ Ġval ĠonClick : Ġ() Ġ-> ĠUnit ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġoverride Ġfun Ġlayout Id (): ĠInt Ġ= ĠR . layout . view _ holder _ vertical _ linear _ container _ ranking ĊĠĠĠ Ġoverride Ġfun Ġbinding Variable Id (): ĠInt Ġ= ĠBR . model Ċ } Ċ Ċ data Ġclass ĠContainer For Small Contents ( val Ġcontents : ĠList < Small Content >) Ġ: ĠAnt onio Binding Model Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġlayout Id (): ĠInt Ġ= ĠR . layout . view _ holder _ horizontal _ linear _ container _ small _ content ĊĠĠĠ Ġoverride Ġfun Ġbinding Variable Id (): ĠInt Ġ= ĠBR . model Ċ } Ċ Ċ data Ġclass ĠSmall Content ( ĊĠĠĠ Ġval Ġid : ĠString , ĊĠĠĠ Ġ@ Drawable Res Ġval Ġicon Res : ĠInt , ĊĠĠĠ Ġval Ġprice : ĠInt , ĊĠĠĠ Ġval ĠonClick : Ġ( id : ĠString ) Ġ-> ĠUnit , ĊĠĠĠ Ġval Ġon Long Click : Ġ( id : ĠString ) Ġ-> ĠBoolean , ĊĠĠĠ Ġval Ġselected Ids : ĠLive Data < Set < String >> ? Ċ ) Ġ: ĠAnt onio Binding Model Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġlayout Id (): ĠInt Ġ= ĠR . layout . view _ holder _ content _ small ĊĠĠĠ Ġoverride Ġfun Ġbinding Variable Id (): ĠInt Ġ= ĠBR . model Ċ } Ċ Ċ data Ġclass ĠFlex Width Content ( val Ġid : ĠString , Ġval Ġcontent : ĠString ) Ġ: ĠAnt onio Binding Model Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġlayout Id (): ĠInt Ġ= ĠR . layout . view _ holder _ content _ flex _ width ĊĠĠĠ Ġoverride Ġfun Ġbinding Variable Id (): ĠInt Ġ= ĠBR . model Ċ } Ċ Ċ @ Mapped With View Dependency ( view Class Ġ= ĠViewHolder Pager With Tab Layout :: class ) Ċ class ĠView Pager With Tab Layout < T Ġ: ĠAnt onio Model >( val Ġview Pager State : ĠView Pager State < T >) Ġ: ĊĠĠĠ ĠAnt onio Model Ċ