package Ġgithub . s achin 2 de h ury . weather . ui . fragments Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . lifecycle . Observer Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġgithub . s achin 2 de h ury . weather . R Ċ import Ġgithub . s achin 2 de h ury . weather . adapters . Week ly ListAdapter Ċ import Ġgithub . s achin 2 de h ury . weather . api . data . Week ly Weather Ċ import Ġgithub . s achin 2 de h ury . weather . others . Constants . pos Ċ import Ġgithub . s achin 2 de h ury . weather . others . Constants . weekly Forecast Ċ import Ġkotlinx . android . synt hetic . main . fragment _ weekly _ weather .* Ċ Ċ class ĠWeek ly Weather Fragment Ġ: ĠFragment ( R . layout . fragment _ weekly _ weather ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġweekly List . layout Manager Ġ= ĠLinearLayoutManager ( context ) ĊĊĠĠĠĠĠĠĠ Ġval Ġweekly Forecast Observer Ġ= ĠObserver < Week ly Weather > Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġweekly ListAdapter Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠWeek ly ListAdapter ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġweekly Forecast . weekly Forecast . value !!. weekly Forecast , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġparent FragmentManager ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġweekly List . adapter Ġ= Ġweekly ListAdapter ĊĠĠĠĠĠĠĠĠĠĠĠ ĠprogressBar . visibility Ġ= ĠView . GONE ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġweekly Forecast . weekly Forecast . observe ( view Lifecycle Owner , Ġweekly Forecast Observer ) ĊĊĠĠĠĠĠĠĠ Ġweekly Forecast . get Week ly Forecast ( pos . lat , Ġpos . lon ) ĊĠĠĠ Ġ} Ċ Ċ }