Commits

littledot5566  committed 0f83f8a

*Added CreditsActivity.

  • Participants
  • Parent commits ca0e295

Comments (0)

Files changed (4)

File AndroidManifest.xml

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

File 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>

File 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);
+
+	}
+}

File 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);
+
 		}
 	}