Will Verduzco · Sep 20, 2013 at 01:30 am

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.


_________
Want something on the XDA Portal? Send us a tip!

Will Verduzco

willverduzco is an editor on XDA-Developers, the largest community for Android users. Will Verduzco is the Portal Administrator for the XDA-Developers Portal. He has been addicted to mobile technology since the HTC Wizard. But starting with the Nexus One, his gadget love affair shifted to Google's little green robot. He is also a Johns Hopkins University graduate in neuroscience and is now currently studying to become a physician. View willverduzco's posts and articles here.
Mario Tomás Serrafero · Aug 2, 2015 at 11:33 am · 1 comment

Sunday Debate: How Can We Get a No-Compromise Phone?

Join us in a fun Sunday Debate on Compromises. Come with your opinions and feel free to read some of our thoughts, then pick your side or play devil’s advocate to get your voice heard and engage in friendly discussion. You can read our food-for-thought or jump straight into the fray below!     Getting an upgrade is a big deal to us power users: it’s our little Android Christmas, where after a long time (for plenty of us, at least)...

XDA NEWS
Mario Tomás Serrafero · Aug 1, 2015 at 03:54 pm · 2 comments

PSA: You Can Optimize Your Note 4’s Recents Menu & RAM

The Note 4 never had the fastest Recents Menu, and despite its 3GB of RAM, its app-holding capabilities only got worse on Lollipop. The infamous RAM bug that plagued the S6 is indeed an annoyance on the Note 4's 5.0.X ROMs. Rumors of an update to fix all of this were confirmed with the first reports of the 5.1.1 update for the Russian Note 4, which seemingly improved the Recents Menu and RAM management. But it'll be a long time...

XDA NEWS
Mario Tomás Serrafero · Aug 1, 2015 at 01:33 pm · 1 comment

XDA Picks: Best Apps of the Week (July 25 – Aug 1)

Apps are at the front and center of any smartphone experience, and with over a million apps on the Google Play Store and new apps being submitted to our forums every day, staying up to date on the latest apps and games can be a hassle. At XDA we don’t discriminate apps - if it’s interesting, innovative, original or useful, we mention them. The XDA Portal Team loves apps too, and here are our top picks for this week.  ...

XDA NEWS