Added the OnChildInflated event to the pager adapter and expanded the sample to use it.