package Ġbr . com . ric ard om ors ch . view pager indicator sample Ċ Ċ import Ġandroid . support . v 4 . app . FragmentManager Ċ import Ġandroid . support . v 4 . app . Fragment Pager Adapter Ċ Ċ class ĠSample Adapter ( fm : ĠFragment Manager ) Ġ: ĠFragment Pager Adapter ( fm ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem ( position : ĠInt ) Ġ= ĠEmpty Fragment . newInstance (" Fragment Ġ${ position Ġ+ Ġ 1 }") ĊĊĠĠĠ Ġoverride Ġfun Ġget Count () Ġ= Ġ 1 5 Ċ } Ċ