littledot5566 avatar littledot5566 committed 0f83f8a

*Added CreditsActivity.

Comments (0)

Files changed (4)

AndroidManifest.xml

         <!--  -->
         <activity android:name=".components.TreasureActivity" >
         </activity>
+        <!--  -->
+        <activity android:name=".components.CreditsActivity" >
+        </activity>
     </application>
 
 </manifest>

res/layout/credits_act.xml

+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:orientation="vertical" >
+
+</LinearLayout>

src/nctuw/littledot/localtreasure/components/CreditsActivity.java

+package nctuw.littledot.localtreasure.components;
+
+import nctuw.littledot.localtreasure.R;
+
+import org.holoeverywhere.app.Activity;
+
+import android.os.Bundle;
+
+public class CreditsActivity extends Activity {
+
+	@Override
+	protected void onCreate(Bundle savedInstanceState) {
+		super.onCreate(savedInstanceState);
+		
+		setContentView(R.layout.credits_act);
+
+	}
+}

src/nctuw/littledot/localtreasure/components/MainActivity.java

 			Intent intent = new Intent(this, TreasureActivity.class);
 			intent.putExtra(Const.BUNDLE_SOURCE, getClass().getName());
 			startActivity(intent);
+
+		} else if (id == R.id.main_but_credits) {
+			Intent intent = new Intent(this, CreditsActivity.class);
+			intent.putExtra(Const.BUNDLE_SOURCE, getClass().getName());
+			startActivity(intent);
+
 		}
 	}
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.