JakeWharton/Android-ViewPagerIndicator — pull request #65 by jmrboosties (2012-02-28 20:39:58+00:00)
Title: IconPageIndicator

Added support for IconPageIndicator class. Built based on the TitlePageIndicator class.

FEATURES:

- Allows users to set icons for their views which will be displayed based on that view's relative position in the View Pager

- Users can control footer color, size, padding similar to TitlePageIndicator

- Users can control icon padding, position, and the opacity of the side icons (the centered icon fades when sliding left or right).

- Included IconProvider interface for users to declare which drawables to use as icons.

- Updated README to include documentation on new class (You will probably want to rearrange it a bit, I set the README to feature my changes more prominently in my fork).

POTENTIAL CHANGES

- We could create a hybrid class which supports both titles and icons, for instance, arrow icons to the left and right but the title as text when a view is in focus (centered).

- Create a styleable super class which both title and icon page indicators extend to avoid naming issues (admittedly not too experience with this).