Debian Codegraph @

templates/activities/ScrollActivity/recipe.xml.ftl

raw
1 <?xml version="1.0"?>
2 <recipe>
3 <#if appCompat && !(hasDependency('com.android.support:appcompat-v7'))>
4 <dependency mavenUrl="com.android.support:appcompat-v7:${buildApi}.+"/>
5 </#if>
6 <#if hasAppBar && !(hasDependency('com.android.support:design'))>
7 <dependency mavenUrl="com.android.support:design:${buildApi}.+"/>
8 </#if>
9 <#if !appCompat && !(hasDependency('com.android.support:support-v4'))>
10 <dependency mavenUrl="com.android.support:support-v4:${buildApi}.+" />
11 </#if>
12
13 <#include "../common/recipe_manifest.xml.ftl" />
14
15 <merge from="root/res/values/strings.xml.ftl"
16 to="${escapeXmlAttribute(resOut)}/values/strings.xml" />
17 <merge from="root/res/values/dimens.xml.ftl"
18 to="${escapeXmlAttribute(resOut)}/values/dimens.xml" />
19
20 <#if hasAppBar>
21 <#include "../common/recipe_no_actionbar.xml.ftl" />
22 <#include "../common/recipe_simple_menu.xml.ftl" />
23 <instantiate from="root/res/layout/app_bar.xml.ftl"
24 to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
25 <instantiate from="root/res/layout/simple.xml.ftl"
26 to="${escapeXmlAttribute(resOut)}/layout/${simpleLayoutName}.xml" />
27
28 <open file="${escapeXmlAttribute(resOut)}/layout/${simpleLayoutName}.xml" />
29 <#else>
30 <instantiate from="root/res/layout/simple.xml.ftl"
31 to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
32
33 <open file="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
34 </#if>
35
36 <instantiate from="root/src/app_package/ScrollActivity.java.ftl"
37 to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />
38
39 <open file="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />
40 </recipe>