package Ġcom . yo lo . yo lo _ android . ui . home _ date . tab Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġandroidx . navigation . fragment . nav Args Ċ import Ġcom . google . android . material . tabs . Tab Layout Mediator Ċ import Ġcom . yo lo . yo lo _ android .* Ċ import Ġcom . yo lo . yo lo _ android . base . Binding Fragment Ċ import Ġcom . yo lo . yo lo _ android . databinding . Fragment Home Date Tab Binding Ċ Ċ class ĠHome Date Tab Fragment : ĠBinding Fragment < Fragment Home Date Tab Binding >( R . layout . fragment _ home _ date _ tab ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġargs : ĠHome Date Tab Fragment Args Ġby Ġnav Args () ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĠĠĠĠĠĠĠ Ġbinding . top Navigation . set Region Title ( args . selected Date ) ĊĠĠĠĠĠĠĠ Ġbinding . vp 2 Home Tab . adapter Ġ= ĠHome Date List Pager Adapter ( args . selected Date , Ġchild FragmentManager , Ġlifecycle ) ĊĠĠĠĠĠĠĠ ĠTab Layout Mediator ( binding . tl Home Tab , Ġbinding . vp 2 Home Tab ) Ġ{ Ġtab , Ġposition Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtab . text Ġ= ĠDate Tab Title [ position ] ĊĠĠĠĠĠĠĠ Ġ}. attach () ĊĠĠĠĠĠĠĠ Ġbinding . tl Home Tab . set Margin ( 0 , 0 , Ġ 1 2 . dp To Px (), 0 ) ĊĊĊĠĠĠ Ġ} Ċ }