package Ġandroid . tv z . hr . ped ometer . fragments Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . tv z . hr . ped ometer . Ach ievement Ċ import Ġandroid . tv z . hr . ped ometer . MainActivity Ċ import Ġandroid . tv z . hr . ped ometer . R Ċ import Ġandroid . tv z . hr . ped ometer . adapters . Ach ievement RecyclerView Adapter Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroid . view . animation . Animation Utils Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ Ċ import Ġkotlinx . android . synt hetic . main . fragment _ ach ievements .* Ċ import Ġkotlinx . android . synt hetic . main . fragment _ history .* Ċ Ċ class ĠA ch ievements Fragment Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , ĊĠĠĠĠĠĠĠ Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġinflater . inflate ( R . layout . fragment _ ach ievements , Ġcontainer , Ġfalse ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Activity Created ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Activity Created ( savedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġupdate Ach ievements () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Resume () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Resume () ĊĊĠĠĠĠĠĠĠ Ġupdate Ach ievements () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġupdate Ach ievements () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġach ievement List : ĠList < Ach ievement > Ġ= ĠMainActivity . ach ievements ĊĊĠĠĠĠĠĠĠ Ġach ievement _ recycler _ view . adapter Ġ= ĠA ch ievement RecyclerView Adapter ( ach ievement List ) ĊĠĠĠĠĠĠĠ Ġach ievement _ recycler _ view . layout Manager Ġ= ĠLinearLayoutManager ( context ) ĊĠĠĠĠĠĠĠ Ġach ievement _ recycler _ view . layout Animation Ġ= ĠAnimation Utils . load Layout Animation ( context , ĠR . anim . layout _ animation _ fall _ down ) ĊĠĠĠĠĠĠĠ Ġach ievement _ recycler _ view . set Has Fixed Size ( true ) ĊĠĠĠ Ġ} Ċ Ċ }