Fixes disappearing title in TitlePageIndicator

The page offset returned by the ViewPager can be negative, causing a selectedPercent greater than 1f.  This causes the paint to be fully transparent, resulting in a disappearing title and underline, so the selectedPercent is now capped to 1f.