diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
index 30aa626..4526f4d 100644
--- a/.idea/codeStyles/Project.xml
+++ b/.idea/codeStyles/Project.xml
@@ -1,29 +1,29 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 99202cc..1d01005 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -31,4 +31,20 @@
-
\ No newline at end of file
+
+
+
+
+ 1.8
+
+
+
+
+
+
+
+
diff --git a/app/google-services.json b/app/google-services.json
index b8d9db9..775a840 100644
--- a/app/google-services.json
+++ b/app/google-services.json
@@ -52,4 +52,4 @@
}
],
"configuration_version": "1"
-}
\ No newline at end of file
+}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index f5974a3..cc4abda 100755
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -29,6 +29,14 @@
+
+
+
+
+
+
+
+
diff --git a/app/src/main/java/com/example/dhananjay/dailygoals/Breakfast.java b/app/src/main/java/com/example/dhananjay/dailygoals/Breakfast.java
new file mode 100644
index 0000000..e6e585b
--- /dev/null
+++ b/app/src/main/java/com/example/dhananjay/dailygoals/Breakfast.java
@@ -0,0 +1,13 @@
+package com.example.android.dailygoals;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+public class Breakfast extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.breakfast);
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/dhananjay/dailygoals/Dinner.java b/app/src/main/java/com/example/dhananjay/dailygoals/Dinner.java
new file mode 100644
index 0000000..b216523
--- /dev/null
+++ b/app/src/main/java/com/example/dhananjay/dailygoals/Dinner.java
@@ -0,0 +1,13 @@
+package com.example.android.dailygoals;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+public class Dinner extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.dinner);
+ }
+}
diff --git a/app/src/main/java/com/example/dhananjay/dailygoals/Games.java b/app/src/main/java/com/example/dhananjay/dailygoals/Games.java
new file mode 100644
index 0000000..984f6ca
--- /dev/null
+++ b/app/src/main/java/com/example/dhananjay/dailygoals/Games.java
@@ -0,0 +1,13 @@
+package com.example.android.dailygoals;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+public class Games extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.games);
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/dhananjay/dailygoals/Lunch.java b/app/src/main/java/com/example/dhananjay/dailygoals/Lunch.java
new file mode 100644
index 0000000..42ad160
--- /dev/null
+++ b/app/src/main/java/com/example/dhananjay/dailygoals/Lunch.java
@@ -0,0 +1,13 @@
+package com.example.android.dailygoals;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+public class Lunch extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.lunch);
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/dhananjay/dailygoals/MainActivity.java b/app/src/main/java/com/example/dhananjay/dailygoals/MainActivity.java
index e1ee784..5aee403 100755
--- a/app/src/main/java/com/example/dhananjay/dailygoals/MainActivity.java
+++ b/app/src/main/java/com/example/dhananjay/dailygoals/MainActivity.java
@@ -153,6 +153,82 @@ public void onLongClick(View view, int position) {
}
+ recyclerView1.addOnItemTouchListener(new RecyclerTouchListener(this,
+ recyclerView1, new ClickListener() {
+ @Override
+ public void onClick(View view, final int position) {
+ //Values are passing to activity & to fragment as well
+
+
+ if(position == 0)
+ {
+ Intent intent = new Intent(getApplicationContext(), Breakfast.class);
+ startActivity(intent);
+ }
+
+ if(position == 1)
+ {
+ Intent intent = new Intent(getApplicationContext(), Study1.class);
+ startActivity(intent);
+ }
+ if(position == 2)
+ {
+ Intent intent = new Intent(getApplicationContext(), Lunch.class);
+ startActivity(intent);
+ }
+ if(position == 3)
+ {
+ Intent intent = new Intent(getApplicationContext(), Study2.class);
+ startActivity(intent);
+ }
+ if(position == 4)
+ {
+ Intent intent = new Intent(getApplicationContext(), Games.class);
+ startActivity(intent);
+ }
+ if(position == 5)
+ {
+ Intent intent = new Intent(getApplicationContext(), Dinner.class);
+ startActivity(intent);
+ }
+ }
+ @Override
+ public void onLongClick(View view, int position) {
+ if(position == 0)
+ {
+ Toast.makeText(getApplicationContext(), "Breakfast Completed",
+ Toast.LENGTH_SHORT).show();
+ }
+
+ if(position == 1)
+ {
+ Toast.makeText(getApplicationContext(), "Studies Completed",
+ Toast.LENGTH_SHORT).show();
+ }
+ if(position == 2)
+ {
+ Toast.makeText(getApplicationContext(), "Lunch Completed",
+ Toast.LENGTH_SHORT).show();
+ }
+ if(position == 3)
+ {
+ Toast.makeText(getApplicationContext(), "Studies Completed",
+ Toast.LENGTH_SHORT).show();
+ }
+ if(position == 4)
+ {
+ Toast.makeText(getApplicationContext(), "Games Completed",
+ Toast.LENGTH_SHORT).show();
+ }
+ if(position == 5)
+ {
+ Toast.makeText(getApplicationContext(), "Dinner Completed",
+ Toast.LENGTH_SHORT).show();
+ }
+ }
+ }}};
+
+
class RecyclerTouchListener implements RecyclerView.OnItemTouchListener{
private ClickListener clicklistener;
@@ -203,4 +279,5 @@ protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
welcomeScreen.onSaveInstanceState(outState);
}
+
}
diff --git a/app/src/main/java/com/example/dhananjay/dailygoals/Study1.java b/app/src/main/java/com/example/dhananjay/dailygoals/Study1.java
new file mode 100644
index 0000000..b77aec5
--- /dev/null
+++ b/app/src/main/java/com/example/dhananjay/dailygoals/Study1.java
@@ -0,0 +1,13 @@
+package com.example.android.dailygoals;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+public class Study1 extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.study1);
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/dhananjay/dailygoals/Study2.java b/app/src/main/java/com/example/dhananjay/dailygoals/Study2.java
new file mode 100644
index 0000000..c10870a
--- /dev/null
+++ b/app/src/main/java/com/example/dhananjay/dailygoals/Study2.java
@@ -0,0 +1,13 @@
+package com.example.android.dailygoals;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+public class Study2 extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.study2);
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/res/layout/breakfast.xml b/app/src/main/res/layout/breakfast.xml
new file mode 100644
index 0000000..766ff5f
--- /dev/null
+++ b/app/src/main/res/layout/breakfast.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/dinner.xml b/app/src/main/res/layout/dinner.xml
new file mode 100644
index 0000000..f90eedb
--- /dev/null
+++ b/app/src/main/res/layout/dinner.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/games.xml b/app/src/main/res/layout/games.xml
new file mode 100644
index 0000000..f8cefa5
--- /dev/null
+++ b/app/src/main/res/layout/games.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/lunch.xml b/app/src/main/res/layout/lunch.xml
new file mode 100644
index 0000000..9121be0
--- /dev/null
+++ b/app/src/main/res/layout/lunch.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/study1.xml b/app/src/main/res/layout/study1.xml
new file mode 100644
index 0000000..8b7cf10
--- /dev/null
+++ b/app/src/main/res/layout/study1.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/study2.xml b/app/src/main/res/layout/study2.xml
new file mode 100644
index 0000000..5be5f2f
--- /dev/null
+++ b/app/src/main/res/layout/study2.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/local.properties b/local.properties
index 1016178..76000fb 100644
--- a/local.properties
+++ b/local.properties
@@ -1,8 +1,10 @@
-## This file must *NOT* be checked into Version Control Systems,
-# as it contains information specific to your local configuration.
-#
-# Location of the SDK. This is only used by Gradle.
-# For customization when using a Version Control System, please read the
-# header note.
-#Mon May 14 23:42:41 IST 2018
-sdk.dir=C\:\\Users\\acer\\AppData\\Local\\Android\\Sdk
+
+## This file must *NOT* be checked into Version Control Systems,
+# as it contains information specific to your local configuration.
+#
+# Location of the SDK. This is only used by Gradle.
+# For customization when using a Version Control System, please read the
+# header note.
+#Mon May 14 23:42:41 IST 2018
+sdk.dir=C\:\\Users\\acer\\AppData\\Local\\Android\\Sdk
+