package Ġcom . go iz . poke dex . view . fragments Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . go iz . poke dex . R Ċ import Ġcom . go iz . poke dex . model . Abilities Ċ import Ġcom . go iz . poke dex . view . adapters . Ability Adapter Ċ Ċ class ĠAb ilities Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġlateinit Ġvar Ġrc Ab il ites : ĠRecyclerView ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġ// ĠInf late Ġthe Ġlayout Ġfor Ġthis Ġfragment ĊĠĠĠĠĠĠĠ Ġval Ġview Ġ= Ġinflater . inflate ( R . layout . fragment _ abilities , Ġcontainer , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġval Ġabilities Ġ= Ġarguments ?. get Serializable (" Abilities ") Ġas ĠAb ilities ĊĊĠĠĠĠĠĠĠ Ġrc Ab il ites Ġ= Ġview . findViewById ( R . id . rc Abilities ) ĊĠĠĠĠĠĠĠ Ġrc Ab il ites . adapter Ġ= ĠAbility Adapter ( abilities . abilities , Ġrequire Context ()) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġview ĊĠĠĠ Ġ} Ċ }