Skip to content

Instantly share code, notes, and snippets.

@ckdevrel
Last active October 17, 2017 02:51
Show Gist options
  • Save ckdevrel/5f73098824c7a50e00c92e4e076bd4b0 to your computer and use it in GitHub Desktop.
Save ckdevrel/5f73098824c7a50e00c92e4e076bd4b0 to your computer and use it in GitHub Desktop.
<#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" />
<instantiate from="res/layout/activity_recycler_view.xml.ftl"
to="${escapeXmlAttribute(resOut)}/layout/${layoutActivityName}.xml" />
</#if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment