diff options
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/templates')
15 files changed, 58 insertions, 0 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/AndroidManifest.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/AndroidManifest.template new file mode 100644 index 000000000..e8975a06c --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/AndroidManifest.template @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="PACKAGE" + android:versionCode="1" + android:versionName="1.0"> +USES-SDK +TEST-INSTRUMENTATION + <application android:icon="@drawable/ic_launcher" android:label="APPLICATION_NAME"> +ACTIVITIES +TEST-USES-LIBRARY + </application> +</manifest> diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/activity.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/activity.template new file mode 100644 index 000000000..ee17fb82a --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/activity.template @@ -0,0 +1,7 @@ + <activity android:name="ACTIVITY_NAME" + android:label="APPLICATION_NAME"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> +INTENT_FILTERS + </intent-filter> + </activity> diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_hdpi.png b/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_hdpi.png Binary files differnew file mode 100644 index 000000000..96a442e5b --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_hdpi.png diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_ldpi.png b/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_ldpi.png Binary files differnew file mode 100644 index 000000000..99238729d --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_ldpi.png diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_mdpi.png b/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_mdpi.png Binary files differnew file mode 100644 index 000000000..359047dfa --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_mdpi.png diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_xhdpi.png b/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_xhdpi.png Binary files differnew file mode 100644 index 000000000..71c6d760f --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/ic_launcher_xhdpi.png diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/java_file.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/java_file.template new file mode 100644 index 000000000..e40e77ef5 --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/java_file.template @@ -0,0 +1,13 @@ +package PACKAGE; +IMPORT_RESOURCE_CLASS +import android.app.Activity; +import android.os.Bundle; + +public class ACTIVITY_NAME extends Activity { + /** Called when the activity is first created. */ + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.main); + } +} diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/launcher_intent_filter.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/launcher_intent_filter.template new file mode 100644 index 000000000..f5681be1e --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/launcher_intent_filter.template @@ -0,0 +1 @@ + <category android:name="android.intent.category.LAUNCHER" />
\ No newline at end of file diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/layout.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/layout.template new file mode 100644 index 000000000..398b79a97 --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/layout.template @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + tools:context=".ACTIVITY_NAME" + > +<TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/hello" + /> +</LinearLayout> + diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/preference_intent_filter.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/preference_intent_filter.template new file mode 100644 index 000000000..609bb2cf0 --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/preference_intent_filter.template @@ -0,0 +1 @@ + <category android:name="android.intent.category.PREFERENCE" />
\ No newline at end of file diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/string.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/string.template new file mode 100644 index 000000000..3a6e4b2b5 --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/string.template @@ -0,0 +1 @@ + <string name="STRING_NAME">STRING_CONTENT</string>
\ No newline at end of file diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/strings.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/strings.template new file mode 100644 index 000000000..b980acea4 --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/strings.template @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> +STRINGS +</resources> + diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/test_instrumentation.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/test_instrumentation.template new file mode 100755 index 000000000..c282fbcfe --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/test_instrumentation.template @@ -0,0 +1 @@ + <instrumentation android:targetPackage="TEST_TARGET_PCKG" android:name="android.test.InstrumentationTestRunner" /> diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/test_uses-library.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/test_uses-library.template new file mode 100755 index 000000000..28ae7a431 --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/test_uses-library.template @@ -0,0 +1 @@ + <uses-library android:name="android.test.runner" /> diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/uses-sdk.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/uses-sdk.template new file mode 100644 index 000000000..8adae717a --- /dev/null +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/uses-sdk.template @@ -0,0 +1 @@ + <uses-sdk android:minSdkVersion="MIN_SDK_VERSION" /> |