Home | History | Annotate | Download | only in MasterDetailFlow
      1 <?xml version="1.0"?>
      2 <template
      3     format="3"
      4     revision="2"
      5     name="New Master/Detail Flow"
      6     minApi="11"
      7     description="Creates a new master/detail flow, which is two columns on tablets, and one column on smaller screens. This creates a master fragment, detail fragment, and two activities.">
      8     <dependency name="android-support-v4" revision="8" />
      9 
     10     <thumbs>
     11         <thumb>template_master_detail.png</thumb>
     12     </thumbs>
     13 
     14     <category value="Flows" />
     15 
     16     <parameter
     17         id="objectKind"
     18         name="Object Kind"
     19         type="string"
     20         constraints="nonempty"
     21         default="Item"
     22         help="Other examples are 'Person', 'Book', etc." />
     23 
     24     <parameter
     25         id="objectKindPlural"
     26         name="Object Kind Plural"
     27         type="string"
     28         constraints="nonempty"
     29         default="Items"
     30         help="Other examples are 'People', 'Books', etc." />
     31 
     32     <parameter
     33         id="activityTitle"
     34         name="Title"
     35         type="string"
     36         constraints="nonempty"
     37         suggest="${objectKindPlural}"
     38         default="Items" />
     39 
     40     <parameter
     41         id="isLauncher"
     42         name="Launcher Activity"
     43         type="boolean"
     44         default="false"
     45         help="If true, the primary activity in the flow will have a CATEGORY_LAUNCHER intent filter, making it visible in the launcher" />
     46 
     47     <parameter
     48         id="parentActivityClass"
     49         name="Hierarchical Parent"
     50         type="string"
     51         constraints="activity|exists|empty"
     52         default=""
     53         help="The hierarchical parent activity, used to provide a default implementation for the 'Up' button" />
     54 
     55     <parameter
     56         id="packageName"
     57         name="Package name"
     58         type="string"
     59         constraints="package"
     60         default="com.mycompany.myapp" />
     61 
     62     <globals file="globals.xml.ftl" />
     63     <execute file="recipe.xml.ftl" />
     64 
     65 </template>
     66