Debian Codegraph @

templates/eclipse/activities/NavigationDrawerActivity/recipe.xml.ftl

raw
1 <?xml version="1.0"?>
2 <recipe>
3
4 <#if appCompat><dependency mavenUrl="com.android.support:appcompat-v7:19.+"/></#if>
5 <#if !appCompat><dependency mavenUrl="com.android.support:support-v4:19.+"/></#if>
6
7 <merge from="root/AndroidManifest.xml.ftl"
8 to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" />
9
10 <instantiate from="root/res/menu/main.xml.ftl"
11 to="${escapeXmlAttribute(resOut)}/menu/${menuName}.xml" />
12
13 <merge from="root/res/values/strings.xml.ftl"
14 to="${escapeXmlAttribute(resOut)}/values/strings.xml" />
15
16 <merge from="root/res/values/dimens.xml.ftl"
17 to="${escapeXmlAttribute(resOut)}/values/dimens.xml" />
18 <merge from="root/res/values-w820dp/dimens.xml"
19 to="${escapeXmlAttribute(resOut)}/values-w820dp/dimens.xml" />
20
21 <!-- TODO: switch on Holo Dark v. Holo Light -->
22 <copy from="root/res/drawable-hdpi"
23 to="${escapeXmlAttribute(resOut)}/drawable-hdpi" />
24 <copy from="root/res/drawable-mdpi"
25 to="${escapeXmlAttribute(resOut)}/drawable-mdpi" />
26 <copy from="root/res/drawable-xhdpi"
27 to="${escapeXmlAttribute(resOut)}/drawable-xhdpi" />
28 <copy from="root/res/drawable-xxhdpi"
29 to="${escapeXmlAttribute(resOut)}/drawable-xxhdpi" />
30
31 <instantiate from="root/res/menu/global.xml.ftl"
32 to="${escapeXmlAttribute(resOut)}/menu/global.xml" />
33
34 <instantiate from="root/res/layout/activity_drawer.xml.ftl"
35 to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
36 <instantiate from="root/res/layout/fragment_navigation_drawer.xml.ftl"
37 to="${escapeXmlAttribute(resOut)}/layout/${navigationDrawerLayout}.xml" />
38
39 <instantiate from="root/res/layout/fragment_simple.xml.ftl"
40 to="${escapeXmlAttribute(resOut)}/layout/${fragmentLayoutName}.xml" />
41
42 <instantiate from="root/src/app_package/DrawerActivity.java.ftl"
43 to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />
44 <instantiate from="root/src/app_package/NavigationDrawerFragment.java.ftl"
45 to="${escapeXmlAttribute(srcOut)}/NavigationDrawerFragment.java" />
46
47 <open file="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />
48 <open file="${escapeXmlAttribute(resOut)}/layout/${fragmentLayoutName}.xml" />
49 </recipe>