package Ġnet . app tr onic . core . android . view model . bindings . navigation Ċ Ċ import Ġandroid . view . ViewGroup Ċ import Ġnet . app tr onic . core . android . anim . adapter . View Transition Adapter Ċ import Ġnet . app tr onic . core . android . view model . Binding Ċ import Ġnet . app tr onic . core . android . view model . Binding Container Ċ import Ġnet . app tr onic . core . android . view model . View Binder Ċ import Ġnet . app tr onic . core . android . view model . View Binder Adapter Ċ import Ġnet . app tr onic . core . android . view model . navigation . Single View Binder ListAdapter Ċ import Ġnet . app tr onic . core . view model . I ViewModel Ċ import Ġnet . app tr onic . core . view model . navigation . models . Supports Single ViewModel ListAdapter Ċ Ċ fun ĠBinding Container . bind Navigator ( ĊĠĠĠ Ġcontainer : ĠViewGroup , ĊĠĠĠ Ġnavigator : ĠSupports Single ViewModel ListAdapter , ĊĠĠĠ Ġmode : ĠSingle View List Mode Ċ ) Ġ{ ĊĠĠĠ Ġ+ Single View List Mode Binding ( container , Ġnavigator , Ġmode ) Ċ } Ċ Ċ private Ġclass ĠSingle View List Mode Binding ( ĊĠĠĠ Ġprivate Ġval Ġcontainer : ĠViewGroup , ĊĠĠĠ Ġprivate Ġval Ġnavigator : ĠSupports Single ViewModel ListAdapter , ĊĠĠĠ Ġprivate Ġval Ġmode : ĠSingle View List Mode Ċ ) Ġ: ĠBinding () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ( viewModel : ĠI ViewModel , Ġview Binder : ĠView Binder <* >) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbinder Adapter Ġ= Ġget Comp osed View Binder Adapter ( mode . binder Adapter , ĠviewModel ) ĊĠĠĠĠĠĠĠ Ġval Ġtransition Adapter Ġ= Ġget Comp osed View Transition Adapter ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmode . transition Adapter , ĠviewModel ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġval Ġdefault Animation Time Ġ= Ġmode . default Animation Time ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ?: Ġcontainer . resources . getInteger ( android . R . integer . config _ medium Anim Time ). to Long () ĊĠĠĠĠĠĠĠ Ġnavigator . setAdapter ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSingle View Binder ListAdapter ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcontainer , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbinder Adapter , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtransition Adapter , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdefault Animation Time , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmode . max Cached Views ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ Ċ } Ċ Ċ class ĠSingle View List Mode ( ĊĠĠĠ Ġval Ġbinder Adapter : ĠView Binder Adapter ? Ġ= Ġnull , ĊĠĠĠ Ġval Ġtransition Adapter : ĠView Transition Adapter ? Ġ= Ġnull , ĊĠĠĠ Ġval Ġdefault Animation Time : ĠLong ? Ġ= Ġnull , ĊĠĠĠ Ġval Ġmax Cached Views : ĠInt Ġ= Ġ 5 Ċ ) Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠCACHE _ ALL Ġ= ĠSingle View Binder ListAdapter . CACHE _ ALL ĊĠĠĠ Ġ} Ċ }