aboutsummaryrefslogtreecommitdiffstats
path: root/templates/other/AppWidget/recipe.xml.ftl
blob: 876b7b0cdb31f55786586dfcec3a7ca3204118d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0"?>
<recipe>

    <merge from="AndroidManifest.xml.ftl" />

    <copy from="res/drawable-nodpi/example_appwidget_preview.png" />
    <instantiate from="res/layout/appwidget.xml"
                   to="res/layout/${class_name}.xml" />


    <#if configurable>
    <instantiate from="res/layout/appwidget_configure.xml"
                   to="res/layout/${class_name}_configure.xml" />
    </#if>

    <instantiate from="res/xml/appwidget_info.xml.ftl"
                   to="res/xml/${class_name}_info.xml" />
    <merge from="res/values/strings.xml.ftl" />
    <merge from="res/values-v14/dimens.xml" />
    <merge from="res/values/dimens.xml" />

    <instantiate from="src/app_package/AppWidget.java.ftl"
                   to="${srcOut}/${className}.java" />

    <#if configurable>
    <instantiate from="src/app_package/AppWidgetConfigureActivity.java.ftl"
                   to="${srcOut}/${className}ConfigureActivity.java" />
    </#if>

    <open file="${srcOut}/${className}.java" />
</recipe>