Android Infinite Scroll Page Code Generator

Quickly and easily generate an Android Studio project with infinite scrolling pages, a toolbar header and left/right buttons.

Generate a complete Android Studio project containing all the source code you need to build and run a mobile application.

  • Save time by generating the Activity, Fragment, ViewPager, PageAdapter, image buttons, XML resource files and manifest.

    Android Studio lets you generate a project with three swipe views and a re-usable Fragment with a "Hello World" message.

    This web site's generated project simulates infinite scrolling with over two billion pages, a customizable Material design toolbar, and left/right buttons for easy clicking through pages that show either the page index or images from device external storage.

  • Easy-to-use Android Studio project can be imported, built and run in just minutes.
  • Easy-to-learn source code extends Android Studio's template described in Add Code from a Template - Tabbed Activity

To generate your own Android Studio project,
please Sign In or Create an Account.

To see how it all works, try the free
Android Pie Chart Code Generator

The generated zip file includes:

  • Source code - Java classes, XML layouts and resource files for:
    • An Activity that includes a customized toolbar and left/right image buttons.
    • A ViewPager and PageAdapter that simulate infinite scrolling with over two billion pages available.
    • Choice of Fragments:
      • Page index viewer that shows a "Hello World" message with page index
      • Gallery viewer that shows images from device external storage
        • Resizes the images to reduce the memory load
        • Rotates the ImageView so the image displays in user-friendly orientation
        • Requests permissions at deployment time or run time, as needed
    • Fragment can easily be replaced with your own custom Fragment
  • Material design - Customized primary and accent colors; customized text and icon colors in the Toolbar
  • Support files - Android manifest, launcher icon and gradle files

Sign In and download your zip file today!

Project Information

Project Name:
Package Name:

App and Activity Information

Application Name:
Main Activity Name:
Main Activity Title:
Activity Type:
Page index viewer with paging start position:
Gallery viewer of images from directories:
Both of the above
Page Change Handler:

Material Design Information

Activity Theme:
Material Primary Color:
Material Accent Color:
Material Color Preview:

– Removed redundant class casts
– Removed the copyright and license references from the comment headers of generated Java classes
– Replaced the GNU General Public License with a new End User License Agreement
– Added option of showing images from device external storage
– Initial release

Example Screenshots


As of Version 2.0 of all mobile application templates, the GNU General Public License has been retired in favor of an End User License Agreement (EULA) that more accurately reflects the nature of proprietary software that is available by subscription.

In summary, the EULA grants Licensees ownership of and permission to use and sell all End Products generated from the downloaded Software, but you are restricted from re-distributing or reselling the Software itself, except as packaged in the End Products as needed to make them functional.

Please read the EULA in full. A copy is included in each generated Android Studio project, and referenced in the comment header of each Java source file. The retired GNU General Public License is archived here for your reference.

Please send any questions to


Information about your mobile app submitted to this web site is not permanently stored, logged on our servers, used for internal or external analytics, or shared with any other external system or third party. For more information see this websites's Privacy Policy

Copyright ©