• 5,737,784
    REGISTERED
  • 47,424
    ONLINE NOW

How to Use ViewPagerIndicator in Your App

Difficulty:
1
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.

Head over to the tutorial thread to get started. You can get the code over at Jake Wharton’s Github.

_________
Join us for xda:devcon 2014. For a limited time, XDA Portal readers get 20% off registration!
Advertisment
Advertisement

XDA TV: Most Recent Video

Buy/Sell on Swappa

  • Nexus 5 (Unlocked) buy | sell
  • Galaxy Note 3 (T-Mobile) buy | sell
  • HTC One M7 (Verizon) buy | sell
  • Galaxy S 5 (Unlocked) buy | sell
  • Nexus 7 2013 buy | sell
  • Swappa is the official marketplace of XDA