aboutsummaryrefslogtreecommitdiffstats
path: root/templates/other/AppWidget/root/res
diff options
context:
space:
mode:
Diffstat (limited to 'templates/other/AppWidget/root/res')
-rw-r--r--templates/other/AppWidget/root/res/drawable-nodpi/example_appwidget_preview.pngbin3522 -> 0 bytes
-rw-r--r--templates/other/AppWidget/root/res/layout/appwidget.xml21
-rw-r--r--templates/other/AppWidget/root/res/layout/appwidget_configure.xml27
-rw-r--r--templates/other/AppWidget/root/res/values-v14/dimens.xml10
-rw-r--r--templates/other/AppWidget/root/res/values/dimens.xml10
-rw-r--r--templates/other/AppWidget/root/res/values/strings.xml.ftl8
-rw-r--r--templates/other/AppWidget/root/res/xml/appwidget_info.xml.ftl27
7 files changed, 0 insertions, 103 deletions
diff --git a/templates/other/AppWidget/root/res/drawable-nodpi/example_appwidget_preview.png b/templates/other/AppWidget/root/res/drawable-nodpi/example_appwidget_preview.png
deleted file mode 100644
index 894b069..0000000
--- a/templates/other/AppWidget/root/res/drawable-nodpi/example_appwidget_preview.png
+++ /dev/null
Binary files differ
diff --git a/templates/other/AppWidget/root/res/layout/appwidget.xml b/templates/other/AppWidget/root/res/layout/appwidget.xml
deleted file mode 100644
index 3a00464..0000000
--- a/templates/other/AppWidget/root/res/layout/appwidget.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="@dimen/widget_margin"
- android:background="#09C" >
-
- <TextView
- android:id="@+id/appwidget_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_centerVertical="true"
- android:text="@string/appwidget_text"
- android:textColor="#ffffff"
- android:textSize="24sp"
- android:textStyle="bold|italic"
- android:layout_margin="8dp"
- android:contentDescription="@string/appwidget_text"
- android:background="#09C"/>
-
-</RelativeLayout> \ No newline at end of file
diff --git a/templates/other/AppWidget/root/res/layout/appwidget_configure.xml b/templates/other/AppWidget/root/res/layout/appwidget_configure.xml
deleted file mode 100644
index 8ddc335..0000000
--- a/templates/other/AppWidget/root/res/layout/appwidget_configure.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:padding="16dp">
-
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/configure"
- android:layout_marginBottom="8dp" />
-
- <EditText
- android:id="@+id/appwidget_text"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="text" />
-
- <Button
- android:id="@+id/add_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/add_widget"
- android:layout_marginTop="8dp" />
-
-</LinearLayout> \ No newline at end of file
diff --git a/templates/other/AppWidget/root/res/values-v14/dimens.xml b/templates/other/AppWidget/root/res/values-v14/dimens.xml
deleted file mode 100644
index 4db8c59..0000000
--- a/templates/other/AppWidget/root/res/values-v14/dimens.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-
- <!--
-Refer to App Widget Documentation for margin information
-http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout
- -->
- <dimen name="widget_margin">0dp</dimen>
-
-</resources> \ No newline at end of file
diff --git a/templates/other/AppWidget/root/res/values/dimens.xml b/templates/other/AppWidget/root/res/values/dimens.xml
deleted file mode 100644
index fdececf..0000000
--- a/templates/other/AppWidget/root/res/values/dimens.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-
- <!--
-Refer to App Widget Documentation for margin information
-http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout
- -->
- <dimen name="widget_margin">8dp</dimen>
-
-</resources> \ No newline at end of file
diff --git a/templates/other/AppWidget/root/res/values/strings.xml.ftl b/templates/other/AppWidget/root/res/values/strings.xml.ftl
deleted file mode 100644
index 66c06bc..0000000
--- a/templates/other/AppWidget/root/res/values/strings.xml.ftl
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="appwidget_text">EXAMPLE</string>
- <#if configurable>
- <string name="configure">Configure</string>
- </#if>
- <string name="add_widget">Add widget</string>
-</resources> \ No newline at end of file
diff --git a/templates/other/AppWidget/root/res/xml/appwidget_info.xml.ftl b/templates/other/AppWidget/root/res/xml/appwidget_info.xml.ftl
deleted file mode 100644
index 75791be..0000000
--- a/templates/other/AppWidget/root/res/xml/appwidget_info.xml.ftl
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
- android:minWidth="${-30 + 70 * minWidth?number}dp"
- android:minHeight="${-30 + 70 * minHeight?number}dp"
- android:updatePeriodMillis="86400000"
- android:previewImage="@drawable/example_appwidget_preview"
- android:initialLayout="@layout/${class_name}"
-<#if configurable>
- android:configure="${packageName}.${className}ConfigureActivity"
-</#if>
-<#if resizable='both'>
- android:resizeMode="horizontal|vertical"
-<#elseif resizable='horizontal'>
- android:resizeMode="horizontal"
-<#elseif resizable='vertical'>
- android:resizeMode="vertical"
-<#elseif resizable='none'>
-</#if>
-<#if placement='both'>
- android:widgetCategory="home_screen|keyguard"
-<#elseif placement='homescreen'>
- android:widgetCategory="home_screen"
-<#elseif placement='keyguard'>
- android:widgetCategory="keyguard"
-</#if>
- android:initialKeyguardLayout="@layout/${class_name}">
-</appwidget-provider> \ No newline at end of file