[SCORCHED] SF.net SVN: scorched:[2] trunk
Status: Planning
Brought to you by:
zkunath
|
From: <zk...@us...> - 2009-02-03 00:05:29
|
Revision: 2
http://scorched.svn.sourceforge.net/scorched/?rev=2&view=rev
Author: zkunath
Date: 2009-02-03 00:05:26 +0000 (Tue, 03 Feb 2009)
Log Message:
-----------
first commit, basic android project with some basic UI spikes done -zak
Added Paths:
-----------
trunk/.classpath
trunk/.project
trunk/.settings/
trunk/.settings/org.eclipse.jdt.core.prefs
trunk/AndroidManifest.xml
trunk/assets/
trunk/res/
trunk/res/drawable/
trunk/res/drawable/icon.png
trunk/res/layout/
trunk/res/layout/main.xml
trunk/res/layout/other.xml
trunk/res/values/
trunk/res/values/strings.xml
trunk/src/
trunk/src/com/
trunk/src/com/android/
trunk/src/com/android/scorch/
trunk/src/com/android/scorch/OtherActivity.java
trunk/src/com/android/scorch/ScorchedAndroid.java
Added: trunk/.classpath
===================================================================
--- trunk/.classpath (rev 0)
+++ trunk/.classpath 2009-02-03 00:05:26 UTC (rev 2)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/.project
===================================================================
--- trunk/.project (rev 0)
+++ trunk/.project 2009-02-03 00:05:26 UTC (rev 2)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>ScorchedAndroid</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/.settings/org.eclipse.jdt.core.prefs 2009-02-03 00:05:26 UTC (rev 2)
@@ -0,0 +1,5 @@
+#Fri Jan 30 15:57:07 CST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.5
Property changes on: trunk/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/AndroidManifest.xml
===================================================================
--- trunk/AndroidManifest.xml (rev 0)
+++ trunk/AndroidManifest.xml 2009-02-03 00:05:26 UTC (rev 2)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.scorch"
+ android:versionCode="1"
+ android:versionName="1.0.0">
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:name=".ScorchedAndroid"
+ android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity android:name=".OtherActivity"
+ android:label="@string/sub_app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+ </application>
+</manifest>
\ No newline at end of file
Property changes on: trunk/AndroidManifest.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/res/drawable/icon.png
===================================================================
(Binary files differ)
Property changes on: trunk/res/drawable/icon.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/res/layout/main.xml
===================================================================
--- trunk/res/layout/main.xml (rev 0)
+++ trunk/res/layout/main.xml 2009-02-03 00:05:26 UTC (rev 2)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:id="@+id/MainMenu"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" android:id="@+id/TitleText" android:singleLine="true" android:layout_centerHorizontal="true" android:textSize="12pt" android:text="Scorched Android" android:padding="20px"></TextView>
+
+ <LinearLayout
+ android:id="@+id/Buttons" android:layout_width="fill_parent" android:layout_alignParentBottom="true" android:layout_height="200px" android:orientation="vertical">
+
+ <Button
+ android:layout_height="wrap_content"
+ android:text="New Game"
+ android:layout_width="fill_parent"
+ android:id="@+id/NewGame" android:layout_marginBottom="0px" android:layout_marginLeft="20px" android:layout_marginRight="20px" android:layout_marginTop="20px"></Button><Button
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:id="@+id/Quit" android:text="Quit" android:layout_marginBottom="0px" android:layout_marginLeft="20px" android:layout_marginRight="20px" android:layout_marginTop="20px"></Button>
+
+ </LinearLayout>
+
+</RelativeLayout>
Property changes on: trunk/res/layout/main.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/res/layout/other.xml
===================================================================
--- trunk/res/layout/other.xml (rev 0)
+++ trunk/res/layout/other.xml 2009-02-03 00:05:26 UTC (rev 2)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:id="@+id/MainMenu"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" android:id="@+id/TitleText" android:singleLine="true" android:textSize="12pt" android:padding="20px" android:text="OtherActivity" android:layout_centerInParent="true"></TextView>
+
+
+
+</RelativeLayout>
Property changes on: trunk/res/layout/other.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/res/values/strings.xml
===================================================================
--- trunk/res/values/strings.xml (rev 0)
+++ trunk/res/values/strings.xml 2009-02-03 00:05:26 UTC (rev 2)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_name">Scorched Android</string>
+<string name="sub_app_name">OtherActivity</string>
+<string name="menu_options">Options</string>
+<string name="menu_quit">Quit</string>
+</resources>
Property changes on: trunk/res/values/strings.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/src/com/android/scorch/OtherActivity.java
===================================================================
--- trunk/src/com/android/scorch/OtherActivity.java (rev 0)
+++ trunk/src/com/android/scorch/OtherActivity.java 2009-02-03 00:05:26 UTC (rev 2)
@@ -0,0 +1,48 @@
+package com.android.scorch;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+
+public class OtherActivity extends Activity {
+ private static final int MENU_OPTIONS = Menu.FIRST;
+ private static final int MENU_QUIT = Menu.FIRST + 1;
+
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ // Load the compiled layout resource into the window's
+ // default ViewGroup.
+ // The source file is res/layout/other.xml
+ setContentView(R.layout.other);
+
+ // Retrieve any important stored values.
+ //restoreValues(savedInstanceState);
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ super.onCreateOptionsMenu(menu);
+
+ menu.add(0, MENU_OPTIONS, 0, R.string.menu_options);
+ menu.add(0, MENU_QUIT, 0, R.string.menu_quit);
+
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ switch(item.getItemId()) {
+ case MENU_OPTIONS:
+ break;
+ case MENU_QUIT:
+ this.finish();
+ break;
+ }
+
+ return true;
+ }
+}
\ No newline at end of file
Property changes on: trunk/src/com/android/scorch/OtherActivity.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/src/com/android/scorch/ScorchedAndroid.java
===================================================================
--- trunk/src/com/android/scorch/ScorchedAndroid.java (rev 0)
+++ trunk/src/com/android/scorch/ScorchedAndroid.java 2009-02-03 00:05:26 UTC (rev 2)
@@ -0,0 +1,39 @@
+package com.android.scorch;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.View;
+import android.view.Window;
+import android.view.View.OnClickListener;
+import android.widget.Button;
+
+public class ScorchedAndroid extends Activity {
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ // turn off the window's title bar
+ requestWindowFeature(Window.FEATURE_NO_TITLE);
+
+ // tell system to use the layout defined in our XML file
+ setContentView(R.layout.main);
+
+ // set up button event handlers
+ Button newGameButton = (Button)findViewById(R.id.NewGame);
+ newGameButton.setOnClickListener(new OnClickListener() {
+ public void onClick(View viewParam) {
+ Intent i = new Intent(ScorchedAndroid.this, OtherActivity.class);
+ startActivity(i);
+ }
+ });
+
+ Button quitButton = (Button)findViewById(R.id.Quit);
+ quitButton.setOnClickListener(new OnClickListener() {
+ public void onClick(View viewParam) {
+ ScorchedAndroid.this.finish();
+ }
+ });
+ }
+}
\ No newline at end of file
Property changes on: trunk/src/com/android/scorch/ScorchedAndroid.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|