+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/week-1/CheesyHoroscope2/app/build.gradle b/homework/week-1/CheesyHoroscope2/app/build.gradle
new file mode 100644
index 00000000..60b33d67
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/build.gradle
@@ -0,0 +1,25 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 22
+ buildToolsVersion "22.0.1"
+
+ defaultConfig {
+ applicationId "abassawo.c4q.nyc.cheesyhoroscope2"
+ 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/week-1/CheesyHoroscope2/app/proguard-rules.pro b/homework/week-1/CheesyHoroscope2/app/proguard-rules.pro
new file mode 100644
index 00000000..dcb04d2d
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/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-Abass/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/week-1/CheesyHoroscope2/app/src/androidTest/java/abassawo/c4q/nyc/cheesyhoroscope2/ApplicationTest.java b/homework/week-1/CheesyHoroscope2/app/src/androidTest/java/abassawo/c4q/nyc/cheesyhoroscope2/ApplicationTest.java
new file mode 100644
index 00000000..9e2918f7
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/androidTest/java/abassawo/c4q/nyc/cheesyhoroscope2/ApplicationTest.java
@@ -0,0 +1,13 @@
+package abassawo.c4q.nyc.cheesyhoroscope2;
+
+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/week-1/CheesyHoroscope2/app/src/main/AndroidManifest.xml b/homework/week-1/CheesyHoroscope2/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..e36eb7e8
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/AndroidManifest.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/AstroDetail.java b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/AstroDetail.java
new file mode 100644
index 00000000..3b9fdf63
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/AstroDetail.java
@@ -0,0 +1,93 @@
+package abassawo.c4q.nyc.cheesyhoroscope2;
+
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import java.util.HashMap;
+
+
+public class AstroDetail extends ActionBarActivity {
+ TextView title;
+ String zodiacSign;
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_horoscope_detail);
+
+ zodiacSign = getIntent().getStringExtra("zodiac_sign");
+
+ title = (TextView) findViewById(R.id.signTitle);
+ title.setText(zodiacSign);
+
+ TextView tvDetail = (TextView) findViewById(R.id.zodiac_Detail);
+ ImageView zodiacImage =(ImageView) findViewById(R.id.zodiacImage);
+
+ //Log.d("test log", "sign = " + zodiacSign);
+
+
+ String[] zodiacs = {"Aries", "Taurus", "Gemini",
+ "Cancer", "Leo", "Virgo", "Libra", "Scorpio",
+ "Sagittarius", "Capricorn", "Aquarius", "Pisces"};
+
+
+ int[] zodiacDetails = {R.string.ariesDetail,
+ R.string.taurusDetail,
+ R.string.geminiDetail,
+ R.string.cancerDetail,
+ R.string.leoDetail,
+ R.string.virgoDetail,
+ R.string.libraDetail,
+ R.string.scorpioDetail,
+ R.string.sagittariusDetail,
+ R.string.capricornDetail,
+ R.string.aquariusDetail,
+ R.string.piscesDetail};
+
+
+ HashMap signMap = new HashMap<>();
+
+ for (int i = 0; i < 12; i++) {
+ signMap.put(zodiacs[i],zodiacDetails[i]);
+ }
+ tvDetail.setText(signMap.get(zodiacSign)); //FIXME
+
+ HashMap imageMap = new HashMap<>();
+ Integer[] imagePaths = {R.drawable.ariestat, R.drawable.taurustat, R.drawable.geminitat,
+ R.drawable.cancertat, R.drawable.leotat, R.drawable.virgotat, R.drawable.libratat,
+ R.drawable.scorpiotat, R.drawable.sagittariustat, R.drawable.capricorntat, R.drawable.aquariustat, R.drawable.piscestat};
+
+ for (int i = 0; i < 12; i++) {
+ imageMap.put(zodiacs[i], imagePaths[i]);
+ }
+
+ zodiacImage.setImageResource(imageMap.get(zodiacSign));
+
+ }
+
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.menu_horoscope_detail, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+
+ //noinspection SimplifiableIfStatement
+ if (id == R.id.action_settings) {
+ return true;
+ }
+
+ return super.onOptionsItemSelected(item);
+ }
+}
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/AstroReading.java b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/AstroReading.java
new file mode 100644
index 00000000..0b67c77a
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/AstroReading.java
@@ -0,0 +1,88 @@
+package abassawo.c4q.nyc.cheesyhoroscope2;
+
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import java.util.HashMap;
+
+
+public class AstroReading extends ActionBarActivity {
+ //private String astroSign;
+ TextView title;
+ TextView tvDetail;
+ ImageView zodiacImage;
+ String astroSign;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_astro_reading);
+
+ astroSign = getIntent().getStringExtra("zodiac_obj");
+ title = (TextView) findViewById(R.id.signTitle);
+ title.setText(astroSign);
+
+ tvDetail = (TextView) findViewById(R.id.zodiac_Detail);
+ zodiacImage = (ImageView) findViewById(R.id.zodiacImage);
+
+
+ String[] zodiacs = {"Aries", "Taurus", "Gemini",
+ "Cancer", "Leo", "Virgo", "Libra", "Scorpio",
+ "Sagittarius", "Capricorn", "Aquarius", "Pisces"};
+
+ int[] zodiacDetails =
+ {R.string.ariesDetail, R.string.taurusDetail, R.string.geminiDetail, R.string.cancerDetail,
+ R.string.leoDetail, R.string.virgoDetail, R.string.libraDetail, R.string.scorpioDetail,
+ R.string.sagittariusDetail, R.string.capricornDetail, R.string.aquariusDetail, R.string.piscesDetail};
+
+ HashMap signMap = new HashMap<>();
+
+ for (int i = 0; i < 12; i++) {
+ signMap.put(zodiacs[i], zodiacDetails[i]);
+ }
+ tvDetail.setText(signMap.get(astroSign)); //FIXME
+
+ HashMap imageMap = new HashMap<>();
+ Integer[] imagePaths = {R.drawable.ariestat, R.drawable.taurustat, R.drawable.geminitat,
+ R.drawable.cancertat, R.drawable.leotat, R.drawable.virgotat, R.drawable.libratat,
+ R.drawable.scorpiotat, R.drawable.sagittariustat, R.drawable.capricorntat, R.drawable.aquariustat, R.drawable.piscestat};
+
+ for (int i = 0; i < 12; i++) {
+ imageMap.put(zodiacs[i], imagePaths[i]);
+ }
+
+ zodiacImage.setImageResource(imageMap.get(astroSign));
+
+
+ }
+
+
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.menu_astro_reading, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+
+ //noinspection SimplifiableIfStatement
+ if (id == R.id.action_settings) {
+ return true;
+ }
+
+ return super.onOptionsItemSelected(item);
+ }
+}
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/HoroscopeGame.java b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/HoroscopeGame.java
new file mode 100644
index 00000000..3ad697e0
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/HoroscopeGame.java
@@ -0,0 +1,59 @@
+package abassawo.c4q.nyc.cheesyhoroscope2;
+
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.widget.Toast;
+
+import java.util.Timer;
+import java.util.TimerTask;
+import java.util.Random;
+//todo: create date randomizer, method that stores date and evaluates the sign that corresponds with it,
+//todo: use timer to add constraint to how long user has to guess the sign
+
+public class HoroscopeGame extends ActionBarActivity {
+ private Timer gameTimer;
+ private TimerTask guessTimerTask;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_horoscope_game);
+// Random random = new Random();
+
+// guessTimerTask = new TimerTask() {
+// @Override
+// public void run() {
+// Toast wait = Toast.makeText(getApplicationContext(), "Guess a sign", Toast.LENGTH_LONG);
+//
+// }
+// };
+//// gameTimer.scheduleAtFixedRate();
+// gameTimer.scheduleAtFixedRate(guessTimerTask , 15, 11);
+// gameTimer = new Timer();
+
+ }
+
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.menu_horoscope_game, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+
+ //noinspection SimplifiableIfStatement
+ if (id == R.id.action_settings) {
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/MainActivity.java b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/MainActivity.java
new file mode 100644
index 00000000..3ccd233e
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/MainActivity.java
@@ -0,0 +1,234 @@
+package abassawo.c4q.nyc.cheesyhoroscope2;
+
+
+import android.content.Intent;
+import android.content.res.Configuration;
+import android.support.v4.widget.DrawerLayout;
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.support.v7.app.ActionBarDrawerToggle;
+import android.util.Log;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.ArrayAdapter;
+import android.widget.Button;
+import android.widget.DatePicker;
+import android.widget.FrameLayout;
+import android.widget.ListView;
+import android.widget.Spinner;
+import android.widget.Toast;
+
+import java.util.Calendar;
+
+
+public class MainActivity extends ActionBarActivity
+ implements AdapterView.OnItemSelectedListener{
+
+ private ListView mDrawerList;
+ private ArrayAdapter mAdapter;
+ ActionBarDrawerToggle mDrawerToggle;
+ private DatePicker.OnDateChangedListener l;
+ private DrawerLayout mDrawerLayout;
+ private String mActivityTitle;
+ private Intent detailIntent = null;
+ private Intent astroIntent = null;
+ private Intent intent = null;
+ private String astroSign;
+ private Button astroButton;
+ //private Intent romance;
+ DatePicker picker;
+ private int month, day, year;
+ int zMonth, zDay, zYear;
+ private String[] mDrawerListItems;
+ private FrameLayout frameLayout;
+
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ setCurrentDateOnView();
+ mActivityTitle = getTitle().toString();
+ frameLayout = (FrameLayout)findViewById(R.id.content_frame);
+ mDrawerLayout = (DrawerLayout)findViewById(R.id.drawer_layout);
+ mDrawerList = (ListView) findViewById(R.id.navList);
+ mDrawerListItems = getResources().getStringArray(R.array.navItems);
+
+ mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,
+ R.string.drawer_open, R.string.drawer_close){
+ /** Called when a drawer has settled in a completely open state. */
+
+ public void onDrawerOpened(View drawerView) {
+ super.onDrawerOpened(drawerView);
+ getSupportActionBar().setTitle("Return!");
+ invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
+ }
+
+ /** Called when a drawer has settled in a completely closed state. */
+ public void onDrawerClosed(View view) {
+ super.onDrawerClosed(view);
+ getSupportActionBar().setTitle(mActivityTitle);
+ invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
+ }
+
+ };
+ mDrawerToggle.setDrawerIndicatorEnabled(true);
+ mDrawerLayout.setDrawerListener(mDrawerToggle);
+
+// addNavBar();
+// setupDrawer();
+ Spinner spinner = (Spinner) findViewById(R.id.signs_spinner);
+
+
+ DatePicker picker = (DatePicker) findViewById(R.id.datePicker);
+
+ astroIntent = new Intent(MainActivity.this, AstroReading.class);
+ Button button = (Button) findViewById(R.id.openButton);
+ button.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+
+ startActivity(detailIntent);
+ }
+ });
+ addButtonListener();
+
+
+ mAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, mDrawerListItems);
+ mDrawerList.setAdapter(mAdapter);
+ mDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener(){
+ @Override
+ public void onItemClick(AdapterView> parent, View view, int position, long id) {
+ switch(position){
+ case 0:
+ mDrawerLayout.closeDrawer(mDrawerList);
+ break;
+ case 1:
+ intent = new Intent(MainActivity.this, ZodiacRomance.class);
+ Log.d("case 0", " " + getIntent());
+ startActivity(intent);
+ //startActivity(intent);
+ mDrawerLayout.closeDrawer(mDrawerList);
+ break;
+ case 2:
+ intent = new Intent(MainActivity.this, HoroscopeGame.class);
+ Log.d("case 0", " " + getIntent());
+ startActivity(intent);
+ // startActivity(intent);
+ mDrawerLayout.closeDrawer(mDrawerList);
+
+ break;
+ }
+ //startActivity(intent);
+
+
+ }
+ });
+
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+ getSupportActionBar().setHomeButtonEnabled(true);
+
+
+ }
+ public void setCurrentDateOnView(){
+ picker = (DatePicker) findViewById(R.id.datePicker);
+ final Calendar c = Calendar.getInstance();
+ year = c.get(Calendar.YEAR);
+ month = c.get(Calendar.MONTH);
+ day = c.get(Calendar.DAY_OF_MONTH);
+ picker.init(year, month, day, l);
+ }
+
+
+
+
+
+ @Override
+ protected void onPostCreate(Bundle savedInstanceState) {
+ super.onPostCreate(savedInstanceState);
+ // Sync the toggle state after onRestoreInstanceState has occurred.
+ mDrawerToggle.syncState();
+ }
+
+ @Override
+ public void onConfigurationChanged(Configuration newConfig) {
+ super.onConfigurationChanged(newConfig);
+ mDrawerToggle.onConfigurationChanged(newConfig);
+ }
+
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.menu_main, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+
+ //noinspection SimplifiableIfStatement
+ if (id == R.id.action_settings) {
+ return true;
+ }
+
+ // Activate the navigation drawer toggle
+ if (mDrawerToggle.onOptionsItemSelected(item)) {
+ return true;
+ }
+
+
+
+ return super.onOptionsItemSelected(item);
+ }
+
+ @Override
+ public void onItemSelected(AdapterView> parent, View view, int position, long id) { //for searching by sign
+ String zodiacSign;
+ zodiacSign = parent.getItemAtPosition(position).toString(); //Get sign
+ Log.d("getItem", zodiacSign);
+ detailIntent = new Intent(MainActivity.this, AstroDetail.class);
+ detailIntent.putExtra("zodiac_sign", zodiacSign);
+ }
+
+ @Override
+ public void onNothingSelected(AdapterView> parent) {
+
+ }
+
+ public void addButtonListener(){ //Button listener for Astrobutton (searching sign by bday)
+ astroButton = (Button) findViewById(R.id.astroButton);
+ astroButton.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ astroSign = Zodiac.getZodiacSign(month, day);
+ Log.d("month " , " " + zMonth);
+ Log.d("day ", " " + zDay);
+ astroIntent.putExtra("zodiac_obj", astroSign);
+ Log.d("astro sign", astroSign);
+ startActivity(astroIntent);
+
+ }
+ });
+//For selecting zodiac sign by birthday
+ l = new DatePicker.OnDateChangedListener(){
+ @Override
+ public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
+ zYear = year;
+ month = monthOfYear;
+ day= dayOfMonth;
+ Log.d("day " , "day " + zDay);
+ picker.init(zYear, month, day, l);
+ }
+ };
+
+ }
+}
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/Zodiac.java b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/Zodiac.java
new file mode 100644
index 00000000..6fb9a657
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/Zodiac.java
@@ -0,0 +1,104 @@
+package abassawo.c4q.nyc.cheesyhoroscope2;
+
+
+import java.util.ArrayList;
+
+
+
+/**
+ * Created by c4q-Abass on 5/14/15.
+ */
+public class Zodiac {
+ public String getName() {
+ return name;
+ }
+
+ private String name, horoscopeDetail;
+
+ private ArrayListcompatibles;
+
+
+ public Zodiac(String name){
+ this.name = name;
+ }
+
+ public ArrayList getCompatibles() {
+ return this.compatibles;
+ }
+
+ public void addRomanceMatch(Zodiac x) {
+ this.compatibles.add(x);
+ }
+
+ public void unMatchSign(Zodiac x){
+ this.compatibles.remove(x);
+ }
+
+
+ //private static String[] zodiacSigns = {"Capricorn", "Aquarius", "Pisces", "Aries", "Taurus", "Gemini", "Cancer", "Leo", "Virgo", "Libra", "Scorpio", "Sagittarius"};
+// gemini.getName(), cancer.getName(), leo.getName(), virgo.getName(), libra.getName(), scorpio.getName(), sagittarius.getName()};
+
+
+ public Zodiac(String name, String horoscopeDetail){
+ this.name = name;
+ this.horoscopeDetail = horoscopeDetail;
+ }
+ public String getHoroscopeDetail() {
+ return horoscopeDetail;
+ }
+
+ public static Zodiac aries = new Zodiac("Aries", " " + " ");
+ public static Zodiac taurus = new Zodiac("Taurus", "" + " ");
+ public static Zodiac gemini = new Zodiac("Gemini", "" + " ");
+ public static Zodiac cancer = new Zodiac("Cancer", "" + " ");
+ public static Zodiac leo = new Zodiac("Leo", " ");
+ public static Zodiac virgo = new Zodiac("Virgo", "" + " ");
+ public static Zodiac libra = new Zodiac("Libra", "" + R.string.libraDetail);
+ public static Zodiac scorpio = new Zodiac("Scorpio", "" + R.string.scorpioDetail );
+ public static Zodiac sagittarius = new Zodiac("Sagittarius", "" + R.string.sagittariusDetail);
+ public static Zodiac capricorn = new Zodiac("Capricorn", "" + "");
+ public static Zodiac aquarius = new Zodiac("Aquarius", "" + " " );
+ public static Zodiac pisces = new Zodiac("Pisces", "" + " ");
+ private static String[] zodiacSigns = {capricorn.getName(), aquarius.getName(), pisces.getName(), aries.getName(), taurus.getName(),
+ gemini.getName(), cancer.getName(), leo.getName(), virgo.getName(), libra.getName(), scorpio.getName(), sagittarius.getName()}; //in Chronological Order.
+
+
+ int month, day;
+
+ public static boolean isCompatible(String zodiacsign1, String zodiacSign2){
+ boolean isCompat = false; //fixme
+ return isCompat;
+ }
+ public static String getZodiacSign(int month, int day){
+ if((month == 11 && day>= 22) || (month == 0 && day <= 19)) {
+ return zodiacSigns[0]; //Capricorn
+ }else if((month == 0 && day >= 20) || (month == 1 && day <= 18)) {
+ return zodiacSigns[1]; //Aquarius
+ } else if((month == 1 && day >= 19) || (month == 2 && day <= 20)) {
+ return zodiacSigns[2]; //Pisces
+ } else if((month == 2 && day >= 21) || (month == 3 && day <= 19)) {
+ return zodiacSigns[3]; //Aries
+ } else if((month == 3 && day >= 20) || (month == 4 && day <= 20)) {
+ return zodiacSigns[4]; //Taurus
+ } else if((month == 4 && day >= 21) || (month == 5 && day <= 20)) {
+ return zodiacSigns[5]; //Gemini
+ } else if((month == 5 && day >= 21) || (month == 6 && day <= 22)) {
+ return zodiacSigns[6]; //Cancer
+ } else if((month == 6 && day >= 23) || (month == 7 && day <= 22)) {
+ return zodiacSigns[7]; //Leo`
+ } else if((month == 7 && day >= 23) || (month == 8 && day <= 21)) {
+ return zodiacSigns[8]; //Virgo
+ } else if((month == 8 && day >= 22) || (month == 9 && day <= 21)) {
+ return zodiacSigns[9]; //Libra
+ } else if((month == 9 && day >= 24) || (month == 10 && day <= 22)) {
+ return zodiacSigns[10]; //Scorpio
+ } else if((month == 10 && day >= 23) || (month == 11 && day <= 21)) {
+ return zodiacSigns[11]; //Sagittarius
+ }
+ else {
+ return null;
+ }
+ }
+
+
+}
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/ZodiacRomance.java b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/ZodiacRomance.java
new file mode 100644
index 00000000..0084e76f
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/java/abassawo/c4q/nyc/cheesyhoroscope2/ZodiacRomance.java
@@ -0,0 +1,123 @@
+package abassawo.c4q.nyc.cheesyhoroscope2;
+
+import android.content.Intent;
+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.Spinner;
+
+import java.util.ArrayList;
+
+
+public class ZodiacRomance extends ActionBarActivity {
+
+ private ArrayList compatibles;
+ private Spinner.OnClickListener l;
+ private Intent compatIntent;
+ private String zodiacSign1;
+ private String zodiacSign2;
+
+ //hashmap w. key - zodiac sign, and v - array of other zodiac signs
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_zodiac_romance);
+
+ Spinner spinner1 = (Spinner) findViewById(R.id.signs_spinner);
+ Spinner spinner2 = (Spinner) findViewById(R.id.signs_spinner2);
+
+ spinner1.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+ @Override
+ public void onItemSelected(AdapterView> parent, View view, int position, long id) {
+ zodiacSign1 = parent.getItemAtPosition(position).toString();
+ //compatIntent.
+ //STORE STRING CHOSEN AND MAKE NEW ZODIAC OBJECT
+ }
+
+ @Override
+ public void onNothingSelected(AdapterView> parent) {
+
+ }
+ });
+
+ spinner2.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+ @Override
+ public void onItemSelected(AdapterView> parent, View view, int position, long id) {
+ zodiacSign2 = parent.getItemAtPosition(position).toString();
+ //STORE STRING CHOSEN AND MAKE NEW ZODIAC OBJECT
+ }
+
+ @Override
+ public void onNothingSelected(AdapterView> parent) {
+
+ }
+ });
+
+
+
+
+ l = new View.OnClickListener(){ //main search button
+ @Override
+ public void onClick(View v) {
+ //todo Check if both objects are compatible
+ }
+ };
+ //aries.addRomanceMatch(cancer);
+ // parse sign from both dropdowns.
+// if (compatible){
+//
+// }
+ }
+
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.menu_zodiac_romance, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+
+ //noinspection SimplifiableIfStatement
+ if (id == R.id.action_settings) {
+ return true;
+ }
+
+ return super.onOptionsItemSelected(item);
+ }
+
+ public boolean isCompatibile(Zodiac x, Zodiac y){
+ boolean compatible = false;
+ return compatible;
+ }
+
+
+
+ Zodiac aries = new Zodiac("Aries");
+ Zodiac taurus = new Zodiac("Taurus");
+ Zodiac gemini = new Zodiac("Gemini");
+ Zodiac cancer = new Zodiac("Cancer");
+ Zodiac leo = new Zodiac("Leo");
+ Zodiac virgo = new Zodiac("Virgo");
+ Zodiac libra = new Zodiac("Libra");
+ Zodiac scorpio = new Zodiac("Scorpio");
+ Zodiac sagittarius = new Zodiac("Sagittarius");
+ Zodiac capricorn = new Zodiac("Capricorn");
+ Zodiac aquarius = new Zodiac("Aquarius");
+ Zodiac pisces = new Zodiac("Pisces");
+
+
+
+}
+
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/aquariustat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/aquariustat.jpg
new file mode 100755
index 00000000..20d9f231
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/aquariustat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/ariestat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/ariestat.jpg
new file mode 100755
index 00000000..9e1e615e
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/ariestat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/cancertat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/cancertat.jpg
new file mode 100755
index 00000000..7a56fa09
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/cancertat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/capricorntat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/capricorntat.jpg
new file mode 100755
index 00000000..ef346bfa
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/capricorntat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/geminitat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/geminitat.jpg
new file mode 100755
index 00000000..f8495880
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/geminitat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/leotat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/leotat.jpg
new file mode 100755
index 00000000..e7245622
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/leotat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/libratat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/libratat.jpg
new file mode 100755
index 00000000..1a93dfca
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/libratat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/piscestat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/piscestat.jpg
new file mode 100755
index 00000000..3b312ef7
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/piscestat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/sagittariustat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/sagittariustat.jpg
new file mode 100755
index 00000000..85b32882
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/sagittariustat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/scorpiotat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/scorpiotat.jpg
new file mode 100755
index 00000000..b85d48b4
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/scorpiotat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/taurustat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/taurustat.jpg
new file mode 100755
index 00000000..a8de543a
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/taurustat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/virgotat.jpg b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/virgotat.jpg
new file mode 100755
index 00000000..88e8417e
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/virgotat.jpg differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/zodiacsignstocrop.gif b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/zodiacsignstocrop.gif
new file mode 100644
index 00000000..872a5045
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/drawable/zodiacsignstocrop.gif differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_astro_detail.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_astro_detail.xml
new file mode 100644
index 00000000..a4db0815
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_astro_detail.xml
@@ -0,0 +1,59 @@
+
+
+
+ // Resources res = getResources();
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_astro_reading.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_astro_reading.xml
new file mode 100644
index 00000000..0fb601d8
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_astro_reading.xml
@@ -0,0 +1,67 @@
+
+
+
+
+ tools:context="abassawo.c4q.nyc.cheesyhoroscope.AstroReading">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_horoscope_detail.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_horoscope_detail.xml
new file mode 100644
index 00000000..aa892a29
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_horoscope_detail.xml
@@ -0,0 +1,64 @@
+
+
+ tools:context="abassawo.c4q.nyc.cheesyhoroscope.HoroscopeDetail">
+
+
+
+ // Resources res = getResources();
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_horoscope_game.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_horoscope_game.xml
new file mode 100644
index 00000000..76196b59
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_horoscope_game.xml
@@ -0,0 +1,219 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_main.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 00000000..af142f59
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,143 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_zodiac_romance.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_zodiac_romance.xml
new file mode 100644
index 00000000..6aacb80d
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/layout/activity_zodiac_romance.xml
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_astro_detail.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_astro_detail.xml
new file mode 100644
index 00000000..532d5f2e
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_astro_detail.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_astro_reading.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_astro_reading.xml
new file mode 100644
index 00000000..4cae595e
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_astro_reading.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_horoscope_detail.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_horoscope_detail.xml
new file mode 100644
index 00000000..d0c6535b
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_horoscope_detail.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_horoscope_game.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_horoscope_game.xml
new file mode 100644
index 00000000..8037519e
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_horoscope_game.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_main.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_main.xml
new file mode 100644
index 00000000..e54a5a7e
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_main.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_zodiac_romance.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_zodiac_romance.xml
new file mode 100644
index 00000000..4eeb8bcf
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/menu/menu_zodiac_romance.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-hdpi/ic_launcher.png b/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..cde69bcc
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-mdpi/ic_launcher.png b/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..c133a0cb
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..bfa42f0e
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..324e72cd
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/values-w820dp/dimens.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 00000000..63fc8164
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/values/dimens.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/values/dimens.xml
new file mode 100644
index 00000000..47c82246
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/values/strings.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/values/strings.xml
new file mode 100644
index 00000000..0b4e3430
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/values/strings.xml
@@ -0,0 +1,93 @@
+
+ CheesyHoroscope
+ Daily Horoscope
+ Horoscope
+ Romantic Match
+ Horoscope ID Game
+
+ Open navigation drawer
+ Close navigation drawer
+
+ Example action
+
+ Settings
+ HoroscopeDetail
+
+
+ Guess A Sign!
+
+
+ Hello world!
+
+
+ Extremely sensitive and emotional, you absorb the emotions of others (whether positive or negative) like a sponge. Emotionally vulnerable, you are easily upset and tend to cry readily. You are at your best when you can structure your environment in such a way that you are surrounded by positive, upbeat people. You are very helpful and understanding of the needs of others. Indeed, at times this can be a disadvantage, because you can be a sucker for anyone who needs help. Shy, dreamy, romantic in nature, you delight in retreating into your private fantasy world. Just be careful that you do not get lost in it! Trust your intuitions -- you may be quite psychic.
+ An idealist, you prefer the grand, the beautiful, the good and the noble. You get very disappointed when your high expectations in life are not met. Very curious by nature, you enjoy traveling and learning about other peoples and cultures. Try to avoid your tendency to ignore the small but important details of living. You are independent and free, and you want others to be that way, too. Optimistic, buoyant and cheerful, others like to have you around. You have an incessant desire to learn as much as possible about metaphysics, religion, philosophy and any other broad, deep subject. Your life tends to be punctuated by bursts of energy and frenetic activity.
+ You rarely get involved closely with anyone unless he or she has something specific and practical to offer you. You tend to be "all business" when it comes to dealing with others. You\'re usually so intently focused on a particular goal that you rarely have time for social niceties or casual fellowship. But you can definitely be counted on by others to get things done. When you say that you\'ll do something, you do it. As such, you\'re a valuable member of any team situation and will probably rise to a position of leadership within the group. Your trustworthiness and sense of responsibility are unquestioned. But do try to avoid the temptation to "use" others to reach your goals -- they might come to resent you.
+ You are a very affectionate person but you hate to be tied down. You are more than willing to be the aggressor in initiating new relationships. Indeed, once you have set your sights on someone, you tend to pursue him or her ardently and passionately. But you do demand your own way in a relationship. Try to give in to your partner\'s needs and desires once in a while.
+ Your energies get turned on quickly whenever anything interests you. But you have a very short attention span and it is difficult for you to complete tasks because something else more interesting always seems to be beckoning. You love to debate and argue, usually in a spirit of friendly disagreement. But watch out that you do not get too overly aggressive or antagonistic or others will be quick to take offense where none may have really been intended. You need to be in constant physical motion -- sports or daily exercise is a must for you if you are to feel fit and healthy.
+You must be proud of all that you do in order to grow and develop. You enjoy being totally honest and aboveboard and you revel in the admiration and respect you receive from others due to your high- minded, upright way of life. Make sure, though, that your natural tendency to boast and show off is based on your actual accomplishments. Don\'t fall prey to self-exaggeration or arrogance. You truly do like outrageous spectacles and grand jolly times and will go out of your way to make them a reality.
+
+
+
+
+ You, and your entire generation, will idealize work, practicality and the ability to attain reasonable goals. But, because you will also stress the need to be selfless and giving, you may find it difficult to attain your goals unless you have lowered your expectations on all fronts.
+Your personal sense of values is a reflection of the value structures of your peer group and of those you respect and admire. Try to be more critical in your acceptance of these values -- you tend to prejudge the abilities of those you trust and then follow what they say blindly. Basically very conservative, you prefer orderly, systematic changes and fear doing things rashly or impulsively. Ideas and philosophies must have some sort of immediately realizable, utilitarian function in order for you to pay any attention to them.
+
+Your ideas and thought processes do not come to you in an orderly, logical fashion. Instead, you think with your feelings or with images produced by your rich and fertile imagination. A very subjective person, your dreams and fantasies are very important to you. You trust your intuitions and tend to reject ideas that are based solely on logic. Very impressionable, you are sensitive to the moods and emotional states of those with whom you come into contact.
+
+
+ Horoscope
+
+
+
+ Aries
+ Taurus
+ Gemini
+ Cancer
+ Leo
+ Virgo
+ Libra
+ Scorpio
+ Sagittarius
+ Capricorn
+ Aquarius
+ Pisces
+
+
+
+ @string/ariesDetail
+ @string/taurusDetail
+ @string/geminiDetail
+ @string/cancerDetail
+ @string/leoDetail
+ @string/virgoDetail
+ @string/libraDetail
+ @string/scorpioDetail
+ @string/sagittariusDetail
+ @string/capricornDetail
+ @string/aquariusDetail
+ @string/piscesDetail
+
+
+
+
+ Learn about Horoscopes
+ Romantic Compatibility
+ Horoscope Game
+
+
+ HoroscopeGame
+ Cheesy Horoscope
+ Horoscope Compatibility
+
+
+ Open navigation drawer
+ Close navigation drawer
+ AstroReading
+ AstroDetail
+
+ ZodiacRomance
+
+
+
+
diff --git a/homework/week-1/CheesyHoroscope2/app/src/main/res/values/styles.xml b/homework/week-1/CheesyHoroscope2/app/src/main/res/values/styles.xml
new file mode 100644
index 00000000..766ab993
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/homework/week-1/CheesyHoroscope2/build.gradle b/homework/week-1/CheesyHoroscope2/build.gradle
new file mode 100644
index 00000000..d3ff69d6
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/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/week-1/CheesyHoroscope2/gradle.properties b/homework/week-1/CheesyHoroscope2/gradle.properties
new file mode 100644
index 00000000..1d3591c8
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/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/week-1/CheesyHoroscope2/gradle/wrapper/gradle-wrapper.jar b/homework/week-1/CheesyHoroscope2/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..8c0fb64a
Binary files /dev/null and b/homework/week-1/CheesyHoroscope2/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/homework/week-1/CheesyHoroscope2/gradle/wrapper/gradle-wrapper.properties b/homework/week-1/CheesyHoroscope2/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..0c71e760
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/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/week-1/CheesyHoroscope2/gradlew b/homework/week-1/CheesyHoroscope2/gradlew
new file mode 100755
index 00000000..91a7e269
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/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/week-1/CheesyHoroscope2/gradlew.bat b/homework/week-1/CheesyHoroscope2/gradlew.bat
new file mode 100644
index 00000000..aec99730
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/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/week-1/CheesyHoroscope2/settings.gradle b/homework/week-1/CheesyHoroscope2/settings.gradle
new file mode 100644
index 00000000..e7b4def4
--- /dev/null
+++ b/homework/week-1/CheesyHoroscope2/settings.gradle
@@ -0,0 +1 @@
+include ':app'