Tomek Kondrat · Dec 30, 2013 at 02:30 am

Modified ViewPager Library Reduces the Size of Your Application

The ViewPager class is commonly used in Android, starting from Honeycomb onwards. You can see it in action in the Google Play Store, where you can browse applications or games by category, by simply swiping left or right.

These applications are also often created to be compatible with older versions of Android such as Froyo. However, not many devices run Froyo anymore, as more than 75% of devices run Honeycomb or greater. Keeping compatibility with older versions forces the developer to make the APK bigger and possibly slower.

XDA Senior Member gade12 modified the Google Library to reduce its size by removing compatibility libs. Gade12 removed all unrelated code before API level 11. The ViewPager library after modification is much smaller, and it takes just over 120 KB. Using it in your application will reduce the amount of code, size and possibly improve the speed of the application. Of course, this breaks the compatibility with older Android devices, but you still have a choice between the original library from Google and the modified one by gade12.

If you are an app developer and want to try modified ViewPager library in one of your projects, make your way to the original thread and grab the compiled Java Archive. You can see ViewPager class in action in the following video:


_________
Want something on the XDA Portal? Send us a tip!
Brandon Noskoviak · Mar 3, 2015 at 01:30 pm · no comments

Pebble Time Steel with Customizable Sensor Smartband

Previously I talked about the Pebble Time Kickstarter, and why I thought it was the most practical smartwatch to buy in 2015, and that I decided to be an early backer on Kickstarter. Well as of this morning an interesting development has come from my - currently - favorite smartwatch company. They will release the Pebble Time Steel variant alongside the regular Pebble, instead of say a whole release cycle down the road. The accompanying announcement along with the Steel,...

XDA NEWS
GermainZ · Mar 3, 2015 at 12:32 pm · 1 comment

LG G Pro Lite Unsecured Boot Image and CWM Recovery

The LG G Pro Lite D680 is a budget phone that was released in 2013 alongside the LG Optimus G Pro, LG's 2013 flagship device. Unfortunately, it hasn't received much development attention so far… but XDA Recognized Developer laufersteppenwolf has now released an unsecured boot.img along with a CWM recovery. This is despite the bootloader being locked (which means there's no need for you to void your warranty!), and marks the first step towards custom ROM and kernel development for...

XDA NEWS
Emil Kako · Mar 3, 2015 at 11:53 am · 1 comment

S6 Edge: Innovation, or Desperate Attempt to be Different?

Samsung's latest and greatest, the Galaxy S6 Edge, is drastically different from any Samsung flagship that has come before it. The Korean giant took a very different approach when designing this little beast, creating quite the debate among android enthusiasts about whether this is really the next big thing or not. Is the Galaxy S6 Edge true innovation, or Samsung's desperate attempt to be different? Let us know what you think!

DISCUSS
Share This