diff --git a/homework/.DS_Store b/homework/.DS_Store
new file mode 100644
index 00000000..7b0c9746
Binary files /dev/null and b/homework/.DS_Store differ
diff --git a/homework/Zodiac2/.gitignore b/homework/Zodiac2/.gitignore
new file mode 100644
index 00000000..afbdab33
--- /dev/null
+++ b/homework/Zodiac2/.gitignore
@@ -0,0 +1,6 @@
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
diff --git a/homework/Zodiac2/.idea/.name b/homework/Zodiac2/.idea/.name
new file mode 100644
index 00000000..d31e603e
--- /dev/null
+++ b/homework/Zodiac2/.idea/.name
@@ -0,0 +1 @@
+Zodiac
\ No newline at end of file
diff --git a/homework/Zodiac2/.idea/compiler.xml b/homework/Zodiac2/.idea/compiler.xml
new file mode 100644
index 00000000..217af471
--- /dev/null
+++ b/homework/Zodiac2/.idea/compiler.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/.idea/copyright/profiles_settings.xml b/homework/Zodiac2/.idea/copyright/profiles_settings.xml
new file mode 100644
index 00000000..e7bedf33
--- /dev/null
+++ b/homework/Zodiac2/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/homework/Zodiac2/.idea/encodings.xml b/homework/Zodiac2/.idea/encodings.xml
new file mode 100644
index 00000000..e206d70d
--- /dev/null
+++ b/homework/Zodiac2/.idea/encodings.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/homework/Zodiac2/.idea/gradle.xml b/homework/Zodiac2/.idea/gradle.xml
new file mode 100644
index 00000000..736c7b5c
--- /dev/null
+++ b/homework/Zodiac2/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/.idea/inspectionProfiles/Project_Default.xml b/homework/Zodiac2/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 00000000..af6c3bfb
--- /dev/null
+++ b/homework/Zodiac2/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/homework/Zodiac2/.idea/inspectionProfiles/profiles_settings.xml b/homework/Zodiac2/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 00000000..3b312839
--- /dev/null
+++ b/homework/Zodiac2/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/homework/Zodiac2/.idea/misc.xml b/homework/Zodiac2/.idea/misc.xml
new file mode 100644
index 00000000..58ff01f3
--- /dev/null
+++ b/homework/Zodiac2/.idea/misc.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.7
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/.idea/modules.xml b/homework/Zodiac2/.idea/modules.xml
new file mode 100644
index 00000000..c10a8444
--- /dev/null
+++ b/homework/Zodiac2/.idea/modules.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/.idea/scopes/scope_settings.xml b/homework/Zodiac2/.idea/scopes/scope_settings.xml
new file mode 100644
index 00000000..922003b8
--- /dev/null
+++ b/homework/Zodiac2/.idea/scopes/scope_settings.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/homework/Zodiac2/.idea/vcs.xml b/homework/Zodiac2/.idea/vcs.xml
new file mode 100644
index 00000000..def6a6a1
--- /dev/null
+++ b/homework/Zodiac2/.idea/vcs.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/Zodiac2.iml b/homework/Zodiac2/Zodiac2.iml
new file mode 100644
index 00000000..0bb6048a
--- /dev/null
+++ b/homework/Zodiac2/Zodiac2.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/app/.gitignore b/homework/Zodiac2/app/.gitignore
new file mode 100644
index 00000000..796b96d1
--- /dev/null
+++ b/homework/Zodiac2/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/homework/Zodiac2/app/app.iml b/homework/Zodiac2/app/app.iml
new file mode 100644
index 00000000..fb704a12
--- /dev/null
+++ b/homework/Zodiac2/app/app.iml
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/app/build.gradle b/homework/Zodiac2/app/build.gradle
new file mode 100644
index 00000000..e0c6b18c
--- /dev/null
+++ b/homework/Zodiac2/app/build.gradle
@@ -0,0 +1,26 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 22
+ buildToolsVersion "22.0.1"
+
+ defaultConfig {
+ applicationId "madelyntav.c4q.nyc.zodiac"
+ minSdkVersion 15
+ targetSdkVersion 22
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ compile 'com.android.support:appcompat-v7:22.1.1'
+
+}
diff --git a/homework/Zodiac2/app/proguard-rules.pro b/homework/Zodiac2/app/proguard-rules.pro
new file mode 100644
index 00000000..aba9fc60
--- /dev/null
+++ b/homework/Zodiac2/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/c4q-madelyntavarez/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/homework/Zodiac2/app/src/androidTest/java/madelyntav/c4q/nyc/zodiac/ApplicationTest.java b/homework/Zodiac2/app/src/androidTest/java/madelyntav/c4q/nyc/zodiac/ApplicationTest.java
new file mode 100644
index 00000000..7450055d
--- /dev/null
+++ b/homework/Zodiac2/app/src/androidTest/java/madelyntav/c4q/nyc/zodiac/ApplicationTest.java
@@ -0,0 +1,13 @@
+package madelyntav.c4q.nyc.zodiac;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/homework/Zodiac2/app/src/main/AndroidManifest.xml b/homework/Zodiac2/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..90f77aa2
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/AndroidManifest.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/ChooseASign.java b/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/ChooseASign.java
new file mode 100644
index 00000000..ccb6fd4a
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/ChooseASign.java
@@ -0,0 +1,94 @@
+package madelyntav.c4q.nyc.zodiac;
+
+import android.annotation.TargetApi;
+import android.content.res.Resources;
+import android.graphics.drawable.Drawable;
+import android.os.Build;
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.Button;
+import android.widget.ImageView;
+
+
+public class ChooseASign extends ActionBarActivity {
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_choose_asign);
+
+ }
+
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void setAriesImage(View v) {
+ //Resources res=getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.result);
+ imageView.setImageResource(R.drawable.ariesinfo);
+ }
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void setTaurusImage(View v) {
+ //Resources res=getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.result);
+ imageView.setImageResource(R.drawable.taurusinfo);
+ }
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void setGeminiImage(View v) {
+ //Resources res=getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.result);
+ imageView.setImageResource(R.drawable.geminiinfo);
+ }
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void setCancerImage(View v) {
+ //Resources res=getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.result);
+
+ imageView.setImageResource(R.drawable.cancerinfo);
+ }
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void setLeoImage(View v) {
+ //Resources res=getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.result);
+ imageView.setImageResource(R.drawable.leoinfo);
+ }
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void setVirgoImage(View v) {
+ //Resources res=getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.result);
+ imageView.setImageResource(R.drawable.virgoinfo);
+ }
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void setLibraSign(View v) {
+ //Resources res=getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.result);
+ imageView.setImageResource(R.drawable.librainfo);
+ }
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void setScorpioImage(View v) {
+ //Resources res=getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.result);
+ imageView.setImageResource(R.drawable.scorpioinfo);
+ }
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void setSagittariusImage(View v) {
+ //Resources res=getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.result);
+ imageView.setImageResource(R.drawable.sagittariusinfo);
+ }
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void setCapricornImage(View v) {
+ //Resources res=getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.result);
+ imageView.setImageResource(R.drawable.capricorninfo);
+ }
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void setPiscesImage(View v) {
+ //Resources res=getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.result);
+ imageView.setImageResource(R.drawable.piscesinfo);
+ }
+
+}
diff --git a/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/Compatibility.java b/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/Compatibility.java
new file mode 100644
index 00000000..012c2a82
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/Compatibility.java
@@ -0,0 +1,73 @@
+package madelyntav.c4q.nyc.zodiac;
+
+import android.annotation.TargetApi;
+import android.content.res.Resources;
+import android.graphics.drawable.Drawable;
+import android.os.Build;
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.EditText;
+import android.widget.ImageView;
+
+import java.lang.reflect.Array;
+import java.util.ArrayList;
+
+
+public class Compatibility extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_compatibility);
+ }
+
+
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ public void incompatibleSigns(View view) {
+
+ EditText yourSign=(EditText) findViewById(R.id.enterYourSign);
+ String sign1=yourSign.getText().toString();
+
+ EditText partnersSign=(EditText) findViewById(R.id.enterPartnersSign);
+ String sign2 = partnersSign.getText().toString();
+
+
+ Resources res = getResources();
+ ImageView imageView = (ImageView) findViewById(R.id.imageView2);
+
+ if ((sign1.equalsIgnoreCase("aries") || sign2.equalsIgnoreCase("aries")) && (sign1.equalsIgnoreCase("cancer") || sign2.equalsIgnoreCase("cancer") || sign1.equalsIgnoreCase("capricorn") || sign2.equalsIgnoreCase("capricorn"))) {
+ imageView.setImageResource(R.drawable.doomed);
+
+ } else if ((sign1.equalsIgnoreCase("taurus") || sign2.equalsIgnoreCase("taurus")) && (sign1.equalsIgnoreCase("leo") || sign2.equalsIgnoreCase("leo") || sign1.equalsIgnoreCase("aquarius") || sign2.equalsIgnoreCase("aquarius"))) {
+ imageView.setImageResource(R.drawable.doomed);
+
+ } else if ((sign1.equalsIgnoreCase("gemini") || sign2.equalsIgnoreCase("gemini")) && (sign1.equalsIgnoreCase("virgo") || sign2.equalsIgnoreCase("virgo") || sign1.equalsIgnoreCase("pisces") || sign2.equalsIgnoreCase("pisces"))) {
+ imageView.setImageResource(R.drawable.doomed);
+
+ } else if ((sign1.equalsIgnoreCase("cancer") || sign2.equalsIgnoreCase("cancer")) && (sign1.equalsIgnoreCase("aries") || sign2.equalsIgnoreCase("aries") || sign1.equalsIgnoreCase("libra") || sign2.equalsIgnoreCase("libra"))) {
+ imageView.setImageResource(R.drawable.doomed);
+
+ } else if ((sign1.equalsIgnoreCase("leo") || sign2.equalsIgnoreCase("leo")) && (sign1.equalsIgnoreCase("taurus") || sign2.equalsIgnoreCase("taurus") || sign1.equalsIgnoreCase("scorpio") || sign2.equalsIgnoreCase("scorpio"))) {
+ imageView.setImageResource(R.drawable.doomed);
+
+ } else if ((sign1.equalsIgnoreCase("virgo") || sign2.equalsIgnoreCase("virgo")) && (sign1.equalsIgnoreCase("sagittarius") || sign2.equalsIgnoreCase("sagittarius") || sign1.equalsIgnoreCase("gemini") || sign2.equalsIgnoreCase("gemini"))) {
+ imageView.setImageResource(R.drawable.doomed);
+
+ } else if ((sign1.equalsIgnoreCase("capricorn") || sign2.equalsIgnoreCase("capricorn")) && (sign1.equalsIgnoreCase("aries") || sign2.equalsIgnoreCase("aries") || sign1.equalsIgnoreCase("libra") || sign2.equalsIgnoreCase("libra"))) {
+ imageView.setImageResource(R.drawable.doomed);
+
+ } else if ((sign1.equalsIgnoreCase("aquarius") || sign2.equalsIgnoreCase("aquarius")) && (sign1.equalsIgnoreCase("scorpio") || sign2.equalsIgnoreCase("scorpio") || sign1.equalsIgnoreCase("taurus") || sign2.equalsIgnoreCase("taurus"))) {
+ imageView.setImageResource(R.drawable.doomed);
+
+ } else if ((sign1.equalsIgnoreCase("sagittarius") || sign2.equalsIgnoreCase("sagittarius")) && (sign1.equalsIgnoreCase("pisces") || sign2.equalsIgnoreCase("pisces") || sign1.equalsIgnoreCase("virgo") || sign2.equalsIgnoreCase("virgo"))) {
+ imageView.setImageResource(R.drawable.doomed);
+
+ } else {
+ imageView.setImageResource(R.drawable.doomed);
+ }
+ }
+}
+
diff --git a/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/EnterBirthday.java b/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/EnterBirthday.java
new file mode 100644
index 00000000..1a27b814
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/EnterBirthday.java
@@ -0,0 +1,77 @@
+package madelyntav.c4q.nyc.zodiac;
+
+import android.annotation.TargetApi;
+import android.content.res.Resources;
+import android.graphics.drawable.Drawable;
+import android.os.Build;
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.EditText;
+import android.widget.ImageView;
+import android.widget.Toast;
+import android.os.CountDownTimer;
+
+public class EnterBirthday extends ActionBarActivity {
+
+
+ String birthdayMonth;
+ int birthdayDay;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_enter_birthday);
+
+ }
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+
+ public void chooseSign(View v){
+
+ EditText nbirthdayMonth= (EditText) findViewById(R.id.editMonth);
+ birthdayMonth=nbirthdayMonth.getText().toString();
+
+ EditText nbirthdayDay=(EditText) findViewById(R.id.editDay);
+ birthdayDay = Integer.parseInt(nbirthdayDay.getText().toString());
+
+ Resources res = getResources();
+ ImageView imageView=(ImageView) findViewById(R.id.imageView);
+
+
+ if ((birthdayMonth.equalsIgnoreCase("january") && (birthdayDay >= 21 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("february") && (birthdayDay >= 1 && birthdayDay <= 21))))) {
+ imageView.setImageResource(R.drawable.aquarius);
+
+ } else if ((birthdayMonth.equalsIgnoreCase("february") && (birthdayDay >= 22 && birthdayDay <= 29) || ((birthdayMonth.equalsIgnoreCase("march") && (birthdayDay >= 1 && birthdayDay <= 20))))) {
+ imageView.setImageResource(R.drawable.pisces);
+ } else if ((birthdayMonth.equalsIgnoreCase("march") && (birthdayDay >= 21 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("april") && (birthdayDay >= 1 && birthdayDay <= 19))))) {
+ imageView.setImageResource(R.drawable.aries);
+ } else if ((birthdayMonth.equalsIgnoreCase("april") && (birthdayDay >= 20 && birthdayDay <= 30) || ((birthdayMonth.equalsIgnoreCase("may") && (birthdayDay >= 1 && birthdayDay <= 20))))) {
+ imageView.setImageResource(R.drawable.taurus);
+ }else if ((birthdayMonth.equalsIgnoreCase("may") && (birthdayDay >= 21 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("june") && (birthdayDay >= 1 && birthdayDay <= 21))))) {
+ imageView.setImageResource(R.drawable.gemini);
+ }else if ((birthdayMonth.equalsIgnoreCase("june") && (birthdayDay >= 22 && birthdayDay <= 30) || ((birthdayMonth.equalsIgnoreCase("july") && (birthdayDay >= 1 && birthdayDay <= 22))))) {
+ imageView.setImageResource(R.drawable.cancer);
+ }else if ((birthdayMonth.equalsIgnoreCase("july") && (birthdayDay >= 23 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("august") && (birthdayDay >= 1 && birthdayDay <= 22))))) {
+ imageView.setImageResource(R.drawable.leo);
+ }else if ((birthdayMonth.equalsIgnoreCase("august") && (birthdayDay >= 23 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("september") && (birthdayDay >= 1 && birthdayDay <= 22))))) {
+ imageView.setImageResource(R.drawable.virgo);
+ }else if ((birthdayMonth.equalsIgnoreCase("september") && (birthdayDay >= 23 && birthdayDay <= 30) || ((birthdayMonth.equalsIgnoreCase("october") && (birthdayDay >= 1 && birthdayDay <= 23))))) {
+ imageView.setImageResource(R.drawable.libra);
+ }else if ((birthdayMonth.equalsIgnoreCase("october") && (birthdayDay >= 24 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("november") && (birthdayDay >= 1 && birthdayDay <= 20))))) {
+ imageView.setImageResource(R.drawable.scorpio);
+ }else if ((birthdayMonth.equalsIgnoreCase("november") && (birthdayDay >= 21 && birthdayDay <= 30) || ((birthdayMonth.equalsIgnoreCase("december") && (birthdayDay >= 1 && birthdayDay <= 22))))) {
+ imageView.setImageResource(R.drawable.sagittarius);
+ }else if ((birthdayMonth.equalsIgnoreCase("december") && (birthdayDay >= 23 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("january") && (birthdayDay >= 1 && birthdayDay <= 20))))) {
+ imageView.setImageResource(R.drawable.capricorn);
+ } else {
+ imageView.setImageResource(R.drawable.alien);
+ }
+
+ }
+}
+
+
+
diff --git a/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/Game.java b/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/Game.java
new file mode 100644
index 00000000..13c1f546
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/Game.java
@@ -0,0 +1,190 @@
+package madelyntav.c4q.nyc.zodiac;
+
+import android.graphics.drawable.Drawable;
+import android.os.CountDownTimer;
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.Chronometer;
+import android.widget.EditText;
+import android.widget.TextClock;
+import android.widget.TextView;
+
+import org.w3c.dom.Text;
+
+import java.lang.reflect.Array;
+import java.text.BreakIterator;
+import java.util.Random;
+
+
+public class Game extends ActionBarActivity {
+
+
+ public TextView text;
+ public TextView nWrong;
+ public int numWrong = 0;
+
+ private final long startTime = 30000 * 1000;
+ private final long interval = 1 * 1000;
+ private CountDownTimer myTimer;
+
+ //TODO add number of correct answers, number of wrong answers, total number until game over
+ //TODO update timer if answer is right
+
+ private int numOfCorrect = 0;
+
+
+ String birthdayMonth;
+ int birthdayDay;
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_game);
+ }
+
+ public void starTimer() {
+
+ final TextView timer = (TextView) findViewById(R.id.timer);
+
+
+ myTimer = new CountDownTimer(10000, 1000) {
+
+
+ public void onTick(long millisUntilFinished) {
+
+
+ timer.setText("Seconds: " + millisUntilFinished / 1000);
+ }
+
+ public void onFinish() {
+
+ timer.setText("Time's Up!");
+ //revealRandomDate(findViewById(R.id.dayView));
+ }
+
+
+ }.start();
+
+ }
+
+
+ public void revealRandomDate(View v) {
+
+ starTimer();
+
+
+ String months = "January February March April May June July August September October November December";
+ String[] monthsArray = months.split(" ");
+ String[] days = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"};
+
+ int index = new Random().nextInt(monthsArray.length);
+ birthdayMonth = monthsArray[index];
+
+ int index2 = new Random().nextInt(days.length);
+ birthdayDay = Integer.parseInt(days[index2]);
+
+
+ String randomDate = birthdayMonth + " " + birthdayDay;
+ TextView dayView = (TextView) findViewById(R.id.dayView);
+ dayView.setText(randomDate);
+ }
+
+ public void randomBirthday(View v) {
+
+ EditText answer = (EditText) findViewById(R.id.answer);
+ String answered = answer.getText().toString();
+ TextView dayView = (TextView) findViewById(R.id.dayView);
+
+ if ((birthdayMonth.equalsIgnoreCase("january") && (birthdayDay >= 21 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("february") && (birthdayDay >= 1 && birthdayDay <= 21))))) {
+ if (answered.equalsIgnoreCase("aquarius")) {
+ dayView.setText("CORRECT!");
+
+ } else
+ dayView.setText("Wrong!");
+
+ } else if ((birthdayMonth.equalsIgnoreCase("february") && (birthdayDay >= 22 && birthdayDay <= 29) || ((birthdayMonth.equalsIgnoreCase("march") && (birthdayDay >= 1 && birthdayDay <= 20))))) {
+ if (answered.equalsIgnoreCase("pisces")) {
+ dayView.setText("CORRECT!");
+
+ } else
+ dayView.setText("Wrong!");
+
+ } else if ((birthdayMonth.equalsIgnoreCase("march") && (birthdayDay >= 21 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("april") && (birthdayDay >= 1 && birthdayDay <= 19))))) {
+ if (answered.equalsIgnoreCase("aries")) {
+ dayView.setText("CORRECT!");
+
+ } else
+ dayView.setText("Wrong!");
+
+ } else if ((birthdayMonth.equalsIgnoreCase("april") && (birthdayDay >= 20 && birthdayDay <= 30) || ((birthdayMonth.equalsIgnoreCase("may") && (birthdayDay >= 1 && birthdayDay <= 20))))) {
+ if (answered.equalsIgnoreCase("taurus")) {
+ dayView.setText("CORRECT!");
+
+ } else
+ dayView.setText("Wrong!");
+
+ } else if ((birthdayMonth.equalsIgnoreCase("may") && (birthdayDay >= 21 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("june") && (birthdayDay >= 1 && birthdayDay <= 21))))) {
+ if (answered.equalsIgnoreCase("gemini")) {
+ dayView.setText("CORRECT!");
+ } else
+ dayView.setText("Wrong!");
+ } else if ((birthdayMonth.equalsIgnoreCase("june") && (birthdayDay >= 22 && birthdayDay <= 30) || ((birthdayMonth.equalsIgnoreCase("july") && (birthdayDay >= 1 && birthdayDay <= 22))))) {
+ if (answered.equalsIgnoreCase("cancer")) {
+ dayView.setText("CORRECT!");
+
+ } else
+ dayView.setText("Wrong!");
+
+ } else if ((birthdayMonth.equalsIgnoreCase("july") && (birthdayDay >= 23 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("august") && (birthdayDay >= 1 && birthdayDay <= 22))))) {
+ if (answered.equalsIgnoreCase("leo")) {
+ dayView.setText("CORRECT!");
+
+ } else
+ dayView.setText("Wrong!");
+
+ } else if ((birthdayMonth.equalsIgnoreCase("august") && (birthdayDay >= 23 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("september") && (birthdayDay >= 1 && birthdayDay <= 22))))) {
+ if (answered.equalsIgnoreCase("virgo")) {
+ dayView.setText("CORRECT!");
+
+ } else
+ dayView.setText("Wrong!");
+
+ } else if ((birthdayMonth.equalsIgnoreCase("september") && (birthdayDay >= 23 && birthdayDay <= 30) || ((birthdayMonth.equalsIgnoreCase("october") && (birthdayDay >= 1 && birthdayDay <= 23))))) {
+ if (answered.equalsIgnoreCase("libra")) {
+ dayView.setText("CORRECT!");
+
+ } else
+ dayView.setText("Wrong!");
+
+
+ } else if ((birthdayMonth.equalsIgnoreCase("october") && (birthdayDay >= 24 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("november") && (birthdayDay >= 1 && birthdayDay <= 20))))) {
+ if (answered.equalsIgnoreCase("scorpio")) {
+ dayView.setText("CORRECT!");
+
+ } else
+ dayView.setText("Wrong!");
+
+ } else if ((birthdayMonth.equalsIgnoreCase("november") && (birthdayDay >= 21 && birthdayDay <= 30) || ((birthdayMonth.equalsIgnoreCase("december") && (birthdayDay >= 1 && birthdayDay <= 22))))) {
+ if (answered.equalsIgnoreCase("sagittarius")) {
+ dayView.setText("CORRECT!");
+
+ } else
+ dayView.setText("Wrong!");
+
+ } else if ((birthdayMonth.equalsIgnoreCase("december") && (birthdayDay >= 23 && birthdayDay <= 31) || ((birthdayMonth.equalsIgnoreCase("january") && (birthdayDay >= 1 && birthdayDay <= 20))))) {
+ if (answered.equalsIgnoreCase("capricorn")) {
+ dayView.setText("CORRECT!");
+
+ } else
+ dayView.setText("Wrong!");
+
+ } else
+ dayView.setText("Wrong!");
+ //revealRandomDate(findViewById(R.id.dayView));
+ starTimer();
+ }
+ }
\ No newline at end of file
diff --git a/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/MainActivity.java b/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/MainActivity.java
new file mode 100644
index 00000000..57047179
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/java/madelyntav/c4q/nyc/zodiac/MainActivity.java
@@ -0,0 +1,71 @@
+package madelyntav.c4q.nyc.zodiac;
+
+import android.content.Intent;
+import android.support.v4.app.ActionBarDrawerToggle;
+import android.support.v4.app.FragmentManager;
+import android.support.v4.widget.DrawerLayout;
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.ArrayAdapter;
+import android.widget.ListView;
+import android.widget.Toast;
+
+import java.util.List;
+
+
+public class MainActivity extends ActionBarActivity {
+ private ListView mDrawerList;
+ private ArrayAdapter mAdapter;
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ mDrawerList = (ListView) findViewById(R.id.navList);
+ addDrawerItems();
+ }
+
+ private void addDrawerItems() {
+ String[] osArray = {"Choose A Zodiac Sign", "Enter Your Birthday", "Are You And Your Partner Compatible?", "Guess The Sign Game"};
+ mAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, osArray);
+ mDrawerList.setAdapter(mAdapter);
+ mDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
+ @Override
+ public void onItemClick(AdapterView> parent, View view, int position, long id) {
+ switch (position) {
+ case 0: {
+ Intent chooseSign = new Intent(MainActivity.this, ChooseASign.class);
+ startActivity(chooseSign);
+ break;
+ }
+ case 1: {
+ Intent enterBirthday = new Intent(MainActivity.this, EnterBirthday.class);
+ startActivity(enterBirthday);
+ break;
+ }
+ case 2: {
+ Intent compatibility = new Intent(MainActivity.this, Compatibility.class);
+ startActivity(compatibility);
+ break;
+ }
+ case 3: {
+ Intent startGame = new Intent(MainActivity.this, Game.class);
+ startActivity(startGame);
+ break;
+ }
+ default:
+ break;
+ }
+ }
+ });
+ }
+}
+
+
+
+
diff --git a/homework/Zodiac2/app/src/main/res/drawable/alien.gif b/homework/Zodiac2/app/src/main/res/drawable/alien.gif
new file mode 100644
index 00000000..a0e52d23
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/alien.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/aquarius.jpg b/homework/Zodiac2/app/src/main/res/drawable/aquarius.jpg
new file mode 100644
index 00000000..781cab5e
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/aquarius.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/aquariusinfo.gif b/homework/Zodiac2/app/src/main/res/drawable/aquariusinfo.gif
new file mode 100644
index 00000000..e2ab5c60
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/aquariusinfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/aries.jpg b/homework/Zodiac2/app/src/main/res/drawable/aries.jpg
new file mode 100644
index 00000000..fd8c7fa3
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/aries.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/ariesinfo.gif b/homework/Zodiac2/app/src/main/res/drawable/ariesinfo.gif
new file mode 100644
index 00000000..0fe0a547
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/ariesinfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/cancer.jpg b/homework/Zodiac2/app/src/main/res/drawable/cancer.jpg
new file mode 100644
index 00000000..0317744c
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/cancer.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/cancerinfo.gif b/homework/Zodiac2/app/src/main/res/drawable/cancerinfo.gif
new file mode 100644
index 00000000..d9b196db
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/cancerinfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/capricorn.jpg b/homework/Zodiac2/app/src/main/res/drawable/capricorn.jpg
new file mode 100644
index 00000000..87f0b499
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/capricorn.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/capricorninfo.gif b/homework/Zodiac2/app/src/main/res/drawable/capricorninfo.gif
new file mode 100644
index 00000000..309bf21f
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/capricorninfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/compatibilitycheck.jpg b/homework/Zodiac2/app/src/main/res/drawable/compatibilitycheck.jpg
new file mode 100644
index 00000000..ef836ce8
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/compatibilitycheck.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/doomed.jpg b/homework/Zodiac2/app/src/main/res/drawable/doomed.jpg
new file mode 100644
index 00000000..cada8af8
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/doomed.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/gemini.jpg b/homework/Zodiac2/app/src/main/res/drawable/gemini.jpg
new file mode 100644
index 00000000..9d18c9ff
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/gemini.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/geminiinfo.gif b/homework/Zodiac2/app/src/main/res/drawable/geminiinfo.gif
new file mode 100644
index 00000000..190f9314
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/geminiinfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/leo.jpg b/homework/Zodiac2/app/src/main/res/drawable/leo.jpg
new file mode 100644
index 00000000..b3f0aca0
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/leo.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/leoinfo.gif b/homework/Zodiac2/app/src/main/res/drawable/leoinfo.gif
new file mode 100644
index 00000000..48d0a4ee
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/leoinfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/libra.jpg b/homework/Zodiac2/app/src/main/res/drawable/libra.jpg
new file mode 100644
index 00000000..788a3ba2
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/libra.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/librainfo.gif b/homework/Zodiac2/app/src/main/res/drawable/librainfo.gif
new file mode 100644
index 00000000..6ad11fe2
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/librainfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/lovematch.png b/homework/Zodiac2/app/src/main/res/drawable/lovematch.png
new file mode 100644
index 00000000..1cda5d0a
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/lovematch.png differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/makeachoice.png b/homework/Zodiac2/app/src/main/res/drawable/makeachoice.png
new file mode 100644
index 00000000..103fc07a
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/makeachoice.png differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/new_enter_birthday.jpeg b/homework/Zodiac2/app/src/main/res/drawable/new_enter_birthday.jpeg
new file mode 100644
index 00000000..9485a594
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/new_enter_birthday.jpeg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/pisces.jpg b/homework/Zodiac2/app/src/main/res/drawable/pisces.jpg
new file mode 100644
index 00000000..c8db9218
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/pisces.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/piscesinfo.gif b/homework/Zodiac2/app/src/main/res/drawable/piscesinfo.gif
new file mode 100644
index 00000000..9d026ba5
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/piscesinfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/sagittarius.jpg b/homework/Zodiac2/app/src/main/res/drawable/sagittarius.jpg
new file mode 100644
index 00000000..694b80ca
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/sagittarius.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/sagittariusinfo.gif b/homework/Zodiac2/app/src/main/res/drawable/sagittariusinfo.gif
new file mode 100644
index 00000000..84090c16
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/sagittariusinfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/scorpio.jpg b/homework/Zodiac2/app/src/main/res/drawable/scorpio.jpg
new file mode 100644
index 00000000..f2e2f39a
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/scorpio.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/scorpioinfo.gif b/homework/Zodiac2/app/src/main/res/drawable/scorpioinfo.gif
new file mode 100644
index 00000000..5ecf72d5
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/scorpioinfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/taurus.jpg b/homework/Zodiac2/app/src/main/res/drawable/taurus.jpg
new file mode 100644
index 00000000..5b855272
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/taurus.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/taurusinfo.gif b/homework/Zodiac2/app/src/main/res/drawable/taurusinfo.gif
new file mode 100644
index 00000000..a3da2fbe
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/taurusinfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/virgo.jpg b/homework/Zodiac2/app/src/main/res/drawable/virgo.jpg
new file mode 100644
index 00000000..aca214c5
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/virgo.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/virgoinfo.gif b/homework/Zodiac2/app/src/main/res/drawable/virgoinfo.gif
new file mode 100644
index 00000000..4981b57c
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/virgoinfo.gif differ
diff --git a/homework/Zodiac2/app/src/main/res/drawable/zodiac_main.jpg b/homework/Zodiac2/app/src/main/res/drawable/zodiac_main.jpg
new file mode 100644
index 00000000..d14b6afc
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/drawable/zodiac_main.jpg differ
diff --git a/homework/Zodiac2/app/src/main/res/layout-v17/activity_game.xml b/homework/Zodiac2/app/src/main/res/layout-v17/activity_game.xml
new file mode 100644
index 00000000..63e6856d
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/layout-v17/activity_game.xml
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/app/src/main/res/layout/activity_choose_asign.xml b/homework/Zodiac2/app/src/main/res/layout/activity_choose_asign.xml
new file mode 100644
index 00000000..b69f3798
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/layout/activity_choose_asign.xml
@@ -0,0 +1,168 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/app/src/main/res/layout/activity_compatibility.xml b/homework/Zodiac2/app/src/main/res/layout/activity_compatibility.xml
new file mode 100644
index 00000000..5bad0f2a
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/layout/activity_compatibility.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/app/src/main/res/layout/activity_enter_birthday.xml b/homework/Zodiac2/app/src/main/res/layout/activity_enter_birthday.xml
new file mode 100644
index 00000000..e1af8f55
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/layout/activity_enter_birthday.xml
@@ -0,0 +1,92 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/app/src/main/res/layout/activity_game.xml b/homework/Zodiac2/app/src/main/res/layout/activity_game.xml
new file mode 100644
index 00000000..b4a09baf
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/layout/activity_game.xml
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Zodiac2/app/src/main/res/layout/activity_main.xml b/homework/Zodiac2/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 00000000..31b07fed
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/homework/Zodiac2/app/src/main/res/menu/menu_choose_asign.xml b/homework/Zodiac2/app/src/main/res/menu/menu_choose_asign.xml
new file mode 100644
index 00000000..698cb9f8
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/menu/menu_choose_asign.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Zodiac2/app/src/main/res/menu/menu_compatibility.xml b/homework/Zodiac2/app/src/main/res/menu/menu_compatibility.xml
new file mode 100644
index 00000000..22046bf1
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/menu/menu_compatibility.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Zodiac2/app/src/main/res/menu/menu_enter_birthday.xml b/homework/Zodiac2/app/src/main/res/menu/menu_enter_birthday.xml
new file mode 100644
index 00000000..6e2df872
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/menu/menu_enter_birthday.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Zodiac2/app/src/main/res/menu/menu_game.xml b/homework/Zodiac2/app/src/main/res/menu/menu_game.xml
new file mode 100644
index 00000000..3658e4e2
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/menu/menu_game.xml
@@ -0,0 +1,6 @@
+
diff --git a/homework/Zodiac2/app/src/main/res/menu/menu_main.xml b/homework/Zodiac2/app/src/main/res/menu/menu_main.xml
new file mode 100644
index 00000000..b1cb9081
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/menu/menu_main.xml
@@ -0,0 +1,6 @@
+
diff --git a/homework/Zodiac2/app/src/main/res/mipmap-hdpi/ic_launcher.png b/homework/Zodiac2/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..cde69bcc
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/homework/Zodiac2/app/src/main/res/mipmap-mdpi/ic_launcher.png b/homework/Zodiac2/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..c133a0cb
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/homework/Zodiac2/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/homework/Zodiac2/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..bfa42f0e
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/homework/Zodiac2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/homework/Zodiac2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..324e72cd
Binary files /dev/null and b/homework/Zodiac2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/homework/Zodiac2/app/src/main/res/values-w820dp/dimens.xml b/homework/Zodiac2/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 00000000..63fc8164
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/homework/Zodiac2/app/src/main/res/values/color.xml b/homework/Zodiac2/app/src/main/res/values/color.xml
new file mode 100644
index 00000000..7b2945ac
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/values/color.xml
@@ -0,0 +1,8 @@
+
+
+ #000000
+ #01ffffff
+
+
+
\ No newline at end of file
diff --git a/homework/Zodiac2/app/src/main/res/values/dimens.xml b/homework/Zodiac2/app/src/main/res/values/dimens.xml
new file mode 100644
index 00000000..47c82246
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/homework/Zodiac2/app/src/main/res/values/strings.xml b/homework/Zodiac2/app/src/main/res/values/strings.xml
new file mode 100644
index 00000000..5f064d11
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/values/strings.xml
@@ -0,0 +1,15 @@
+
+ Zodiac
+
+ Hello world!
+ Settings
+ EnterBirthday
+ Compatibility
+ ChooseASign
+ Game
+ Enter Your Birthday Below To Discover Your Sign
+ MONTH:
+ DAY:
+ Open navigation drawer
+ Close navigation drawer
+
diff --git a/homework/Zodiac2/app/src/main/res/values/styles.xml b/homework/Zodiac2/app/src/main/res/values/styles.xml
new file mode 100644
index 00000000..766ab993
--- /dev/null
+++ b/homework/Zodiac2/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/homework/Zodiac2/build.gradle b/homework/Zodiac2/build.gradle
new file mode 100644
index 00000000..d3ff69d6
--- /dev/null
+++ b/homework/Zodiac2/build.gradle
@@ -0,0 +1,19 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:1.1.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/homework/Zodiac2/gradle.properties b/homework/Zodiac2/gradle.properties
new file mode 100644
index 00000000..1d3591c8
--- /dev/null
+++ b/homework/Zodiac2/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/homework/Zodiac2/gradle/wrapper/gradle-wrapper.jar b/homework/Zodiac2/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..8c0fb64a
Binary files /dev/null and b/homework/Zodiac2/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/homework/Zodiac2/gradle/wrapper/gradle-wrapper.properties b/homework/Zodiac2/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..0c71e760
--- /dev/null
+++ b/homework/Zodiac2/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
diff --git a/homework/Zodiac2/gradlew b/homework/Zodiac2/gradlew
new file mode 100755
index 00000000..91a7e269
--- /dev/null
+++ b/homework/Zodiac2/gradlew
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/homework/Zodiac2/gradlew.bat b/homework/Zodiac2/gradlew.bat
new file mode 100644
index 00000000..aec99730
--- /dev/null
+++ b/homework/Zodiac2/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/homework/Zodiac2/settings.gradle b/homework/Zodiac2/settings.gradle
new file mode 100644
index 00000000..e7b4def4
--- /dev/null
+++ b/homework/Zodiac2/settings.gradle
@@ -0,0 +1 @@
+include ':app'