package Ġsubmission . dic od ing . fund amental . git user . ui . adapters Ċ Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . view pager 2 . adapter . Fragment State Adapter Ċ import Ġsubmission . dic od ing . fund amental . git user . R Ċ import Ġsubmission . dic od ing . fund amental . git user . models . User Detail Ċ import Ġsubmission . dic od ing . fund amental . git user . ui . detail . Follow ers Following Fragment Ċ import Ġsubmission . dic od ing . fund amental . git user . ui . detail . Repos Fragment Ċ import Ġjava . util .* Ċ Ċ class ĠDetail Pager Adapter ĊĠĠĠ Ġ( ĊĠĠĠ Ġactivity : ĠAppCompatActivity , ĊĠĠĠ Ġprivate Ġval Ġuser Detail : ĠUser Detail , ĊĠĠĠ Ġprivate Ġval Ġcurr Destination : ĠString , Ċ ) Ġ: ĠFragment State Adapter ( activity ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġtab Title Ġ= Ġactivity . resources . getString Array ( R . array . tab _ title ) ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Fragment ( pos : ĠInt ): ĠFragment Ġ{ ĊĠĠĠĠĠĠĠ Ġvar Ġfragment : ĠFragment ? Ġ= Ġnull ĊĠĠĠĠĠĠĠ Ġval Ġtitle Ġ= Ġtab Title [ pos ]. toLowerCase ( Locale . ROOT ) ĊĠĠĠĠĠĠĠ Ġwhen Ġ( pos ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠ 0 Ġ-> Ġfragment Ġ= ĠRe pos Fragment . setUp Data ( user Detail , Ġtitle , Ġcurr Destination ) ĊĠĠĠĠĠĠĠĠĠĠĠĠ 1 Ġ-> Ġfragment Ġ= ĠFollow ers Following Fragment . setUp Data ( user Detail , Ġtitle , Ġcurr Destination ) ĊĠĠĠĠĠĠĠĠĠĠĠĠ 2 Ġ-> Ġfragment Ġ= ĠFollow ers Following Fragment . setUp Data ( user Detail , Ġtitle , Ġcurr Destination ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġfragment Ġas ĠFragment ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ= Ġtab Title . size Ċ Ċ }