This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#if isFragment> | |
<instantiate from="src/app_package/RecyclerFragment.java.ftl" | |
to="${escapeXmlAttribute(srcOut)}/${className}.java" /> | |
<instantiate from="res/layout/fragment_recycler_view.xml.ftl" | |
to="${escapeXmlAttribute(resOut)}/layout/${fragmentName}.xml" /> | |
<#else> | |
<instantiate from="src/app_package/RecyclerActivity.java.ftl" | |
to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<parameter | |
id="className" | |
name="Fragment Class Name" | |
type="string" | |
constraints="class|unique|nonempty" | |
visibility="isFragment" //This view will be shown only if fragment checkbox is true | |
default="RecyclerViewFragment" | |
help="The name of the fragment class to create"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<parameter | |
id="activityClass" | |
name="Activity Name" | |
type="string" constraints="class|unique|nonempty" | |
visibility="!isFragment" //This view will be shown only if fragment checkbox is false | |
suggest="${layoutToActivity(layoutActivityName)}" | |
default="RecyclerViewActivity" | |
help="The name of the activity class to create"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<parameter | |
id=”isFragment” | |
name=”Need Fragment code instead of Activitiy?” | |
type=”boolean” | |
default=”false” | |
help=”If true, the fragment code will be created instead of Activity”/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<parameter | |
id=”isFragment” | |
name=”Need Fragment code instead of Activitiy?” | |
type=”boolean” | |
default=”false” | |
help=”If true, the fragment code will be created instead of Activity”/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<global id="srcOut" value="${srcDir}/${slashedPackageName(packageName)}" /> | |
<global id="srcOutPackage" value="${srcDir}" /> | |
<global id="resOut" value="${resDir}" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<open file="${escapeXmlAttribute(srcOut)}/${activityClass}.java" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<copy from="res/drawable" | |
to="${escapeXmlAttribute(resOut)}/drawable" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<instantiate from="src/app_package/MainActivity.java.ftl" | |
to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" /> |