How to Use ViewPagerIndicator in Your App
In addition to featuring a unified user interface with sleek and modern colors and excellent typography, having a Holo-compliant interface has also come to mean horizontally scrolling panes when applicable. These are also accompanied by a page indicator up top showing your current location, as well as which tabs are on either side. In fact, one need look only as far as the official Google Play store for an excellent example of this.
So what do you do if you wish to implement page indicators in your own app? There is an excellent open source library called ViewPagerIndicator by developer Jake Wharton. If that name sounds familiar, it should; Jack has also created the incredibly useful ActionBarSherlock and NineOldAndroids.
Thankfully, XDA Senior Member ivn888 has created a quick guide and sample application aimed at getting you up to speed quickly and easily. The guide begins by showing you how to add the library to your Eclipse + ADT installation. It then continues on to discussing how to load the library into your project, as well as creating the layouts and implementing the library using Fragments API. Finally, ivn888 also includes a sample application of what you can expect by following the guide.
Want something on the XDA Portal? Send us a tip!