Android Master Detail Flow Custom Fragment Code Generator

Quickly and easily generate an Android Studio project with a Master Detail Flow and your own custom Fragments.

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 and XML layouts for:
    • Master and Detail Activities with Material design Toolbars
    • Optional Tabbed Fragment includes its own TabLayout, ViewPager, custom FragmentPageAdapter, and references to its nested Fragments
    • Optional Map Activity containing a MapView Fragment, with a marker and camera panned/zoomed to a configured geographic location
    • Optional Search icon opens a SearchView in the Toolbar and submits the query to a Search Activity (you will have to add the search algorithm and code to display the results).
    • Optional Preference icon that uses an application controller to start a PreferenceActivity
    • Optional "About App" icon shows a screen with the application name, version name, custom text or HTML, and/or buttons to "Call Us" and "Email Us"
  • Material design - Customized primary and accent colors
  • 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:
Master Activity Name:
Master Activity Title:
Detail Activity Name:

Toolbar Icons

Opens a SearchView input control and submits the query to a Search Activity.
Starts a custom PreferenceActivity with two placeholder preference groups and two preferences per group.
  About App
Shows the "About App" screen with display information, extra HTML and/or buttons selected below.
App Name
Version Name
Extra HTML:
"Call Us" Button for
"Email Us" Button for

Material Design Colors

Material Primary Color:
Material Accent Color:
Material Color Preview:

Fragment Information

Master List Item Text
Fragment Class Name
Fragment Type

Map and Marker Information

Google Map
API Key:

(editable only on HTTPS)
Place Map Marker:
Marker Title:
Marker Location:

(If needed see Get the coordinates of a place)

  • Improved location retrieval and map handling
  • Refactored SoftKeyboardHelper to use Context not Activity
v2.0+ Toggle Version 2.0+ Rows
– Removed redundant class casts
  • Upgraded the generated build files per Migrate to Android Plugin for Gradle 3.0.0
    • Referenced Google repository in project build.gradle
    • Removed deprecated buildToolsVersion from module build.gradle
    • Raised compileSdkVersion and targetSdkVersion to 27
    • Raised versions of SDK Tools Support libraries to 27.1.1
    • Referenced SDK Tools Play Services libraries at version 15.0.1
    • Changed "compile" dependency keyword to "implementation"
    • Changed "androidTestCompile" dependency keyword to "androidTestImplementation"
    • Changed "testCompile" dependency keyword to "testImplementation"
  • Fixed compiler errors in code shared with other generators
  • Moved the "Email Us" email address from Java code to the Button XML
  • Tabbed fragment can send metadata to selected fragment
  • Removed the copyright and license references from the comment headers of generated Java classes
  • MapHandler can manage and display collections of map markers
  • Added error handling when moving the camera on the Google Map
  • On request, MapHandler changes the map type (examples: geometric, satellite, terrain)
  • On request, MapHandler provides a reference to its GoogleMap
  • Enabled phone call and email from a web page and custom WebViewClient
v1.0+ Toggle Version 1.0+ Rows
  • Show the map compass when the map is rotated
  • Show the map toolbar when a map marker is clicked
  • Use a helper class to initialize the "About App" screen's SearchView
  • Launch the "About App" screen from a toolbar icon (not a master list item)
  • In two-pane view, highlight the selected master list row
  • Removed unused TextView from the master list row
  • Store the "About App" Fragment's extra HTML in an assets file
  • Refactored Java class AppRecyclerViewAdapter into MasterListViewAdapter
  • Refactored Java class AppRecyclerViewHolder into MasterListRow
  • Added optional phone and email buttons to the "About App" Fragment
  • Added optional MapView Fragment and marker
  • Added optional "About App" Fragment
  • Added optional Search icon and SearchView in Toolbar
  • Initial release plus enhancements through January 2017


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 ©