package Ġcom . br illi ances oft . m ush af . ui . library . manage Ċ Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . Fragment Activity Ċ import Ġandroidx . view pager 2 . adapter . Fragment State Adapter Ċ Ċ class ĠTab Pager Adapter ( fragment Activity : ĠFragment Activity ) Ġ: ĠFragment State Adapter ( fragment Activity ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ= Ġ 2 ĊĠĠĠ Ġoverride Ġfun Ġcreate Fragment ( position : ĠInt ): ĠFragment Ġ= ĊĠĠĠĠĠĠĠ ĠTab Fragment . newInstance ( tab Position Ġ= Ġposition ) Ċ }