diff --git a/Listify/app/src/main/AndroidManifest.xml b/Listify/app/src/main/AndroidManifest.xml
index 68fe6d7..d6e08aa 100644
--- a/Listify/app/src/main/AndroidManifest.xml
+++ b/Listify/app/src/main/AndroidManifest.xml
@@ -34,6 +34,7 @@
+
\ No newline at end of file
diff --git a/Listify/app/src/main/java/com/example/listify/ui/CodePage.java b/Listify/app/src/main/java/com/example/listify/ui/CodePage.java
new file mode 100644
index 0000000..121c992
--- /dev/null
+++ b/Listify/app/src/main/java/com/example/listify/ui/CodePage.java
@@ -0,0 +1,39 @@
+package com.example.listify.ui;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+
+import com.example.listify.R;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+public class CodePage extends AppCompatActivity {
+ private Button button1; //Reset password page button
+ private Button button2; //Cancel button
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_code);
+
+ button1 = (Button) findViewById(R.id.button1);
+ button1.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(CodePage.this, ResetPasswordPage.class);
+ startActivity(intent);
+ }
+ });
+
+ button2 = (Button) findViewById(R.id.button2);
+ button2.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(CodePage.this, LoginPage.class);
+ startActivity(intent);
+ }
+ });
+ }
+}
\ No newline at end of file
diff --git a/Listify/app/src/main/java/com/example/listify/ui/ForgotPasswordPage.java b/Listify/app/src/main/java/com/example/listify/ui/ForgotPasswordPage.java
index b7111d0..bd2194a 100644
--- a/Listify/app/src/main/java/com/example/listify/ui/ForgotPasswordPage.java
+++ b/Listify/app/src/main/java/com/example/listify/ui/ForgotPasswordPage.java
@@ -10,18 +10,18 @@ import com.example.listify.R;
import androidx.appcompat.app.AppCompatActivity;
public class ForgotPasswordPage extends AppCompatActivity {
- private Button button;
+ private Button button1; //Code page button
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_forgotpswd);
- button = (Button) findViewById(R.id.button4);
- button.setOnClickListener(new View.OnClickListener() {
+ button1 = (Button) findViewById(R.id.button1);
+ button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- Intent intent = new Intent(ForgotPasswordPage.this, ResetPasswordPage.class);
+ Intent intent = new Intent(ForgotPasswordPage.this, CodePage.class);
startActivity(intent);
}
});
diff --git a/Listify/app/src/main/java/com/example/listify/ui/LoginPage.java b/Listify/app/src/main/java/com/example/listify/ui/LoginPage.java
index 11ef48e..ed1e006 100644
--- a/Listify/app/src/main/java/com/example/listify/ui/LoginPage.java
+++ b/Listify/app/src/main/java/com/example/listify/ui/LoginPage.java
@@ -6,24 +6,45 @@ import android.view.View;
import android.widget.Button;
import com.example.listify.R;
+import com.example.listify.MainActivity;
import androidx.appcompat.app.AppCompatActivity;
public class LoginPage extends AppCompatActivity {
- private Button button;
+ private Button button1; //Sign up page button
+ private Button button2; //Forgot password button
+ private Button button3; //Log in button
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
- button = (Button) findViewById(R.id.button3);
- button.setOnClickListener(new View.OnClickListener() {
+ button1 = (Button) findViewById(R.id.button1);
+ button1.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(LoginPage.this, SignupPage.class);
+ startActivity(intent);
+ }
+ });
+
+ button2 = (Button) findViewById(R.id.button2);
+ button2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(LoginPage.this, ForgotPasswordPage.class);
startActivity(intent);
}
});
+
+ button3 = (Button) findViewById(R.id.button3);
+ button3.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(LoginPage.this, MainActivity.class);
+ startActivity(intent);
+ }
+ });
}
}
\ No newline at end of file
diff --git a/Listify/app/src/main/java/com/example/listify/ui/ResetPasswordPage.java b/Listify/app/src/main/java/com/example/listify/ui/ResetPasswordPage.java
index e613225..ab7338a 100644
--- a/Listify/app/src/main/java/com/example/listify/ui/ResetPasswordPage.java
+++ b/Listify/app/src/main/java/com/example/listify/ui/ResetPasswordPage.java
@@ -6,23 +6,22 @@ import android.view.View;
import android.widget.Button;
import com.example.listify.R;
-import com.example.listify.MainActivity;
import androidx.appcompat.app.AppCompatActivity;
public class ResetPasswordPage extends AppCompatActivity {
- private Button button;
+ private Button button1; //Log in page button
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_resetpswd);
- button = (Button) findViewById(R.id.button5);
- button.setOnClickListener(new View.OnClickListener() {
+ button1 = (Button) findViewById(R.id.button1);
+ button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- Intent intent = new Intent(ResetPasswordPage.this, MainActivity.class);
+ Intent intent = new Intent(ResetPasswordPage.this, LoginPage.class);
startActivity(intent);
}
});
diff --git a/Listify/app/src/main/java/com/example/listify/ui/SignupPage.java b/Listify/app/src/main/java/com/example/listify/ui/SignupPage.java
index a2ff5de..d211d8f 100644
--- a/Listify/app/src/main/java/com/example/listify/ui/SignupPage.java
+++ b/Listify/app/src/main/java/com/example/listify/ui/SignupPage.java
@@ -6,22 +6,33 @@ import android.view.View;
import android.widget.Button;
import com.example.listify.R;
+import com.example.listify.MainActivity;
import androidx.appcompat.app.AppCompatActivity;
public class SignupPage extends AppCompatActivity {
- private Button button;
+ private Button button1; //Log in page button
+ private Button button2; //Sign up button
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_signup);
- button = (Button) findViewById(R.id.button2);
- button.setOnClickListener(new View.OnClickListener() {
+ button1 = (Button) findViewById(R.id.button1);
+ button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- Intent intent = new Intent(SignupPage.this, com.example.listify.ui.LoginPage.class);
+ Intent intent = new Intent(SignupPage.this, LoginPage.class);
+ startActivity(intent);
+ }
+ });
+
+ button2 = (Button) findViewById(R.id.button2);
+ button2.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(SignupPage.this, MainActivity.class);
startActivity(intent);
}
});
diff --git a/Listify/app/src/main/java/com/example/listify/ui/home/HomeFragment.java b/Listify/app/src/main/java/com/example/listify/ui/home/HomeFragment.java
index c530fb9..46dcb73 100644
--- a/Listify/app/src/main/java/com/example/listify/ui/home/HomeFragment.java
+++ b/Listify/app/src/main/java/com/example/listify/ui/home/HomeFragment.java
@@ -2,16 +2,13 @@ package com.example.listify.ui.home;
import android.content.Intent;
import android.os.Bundle;
-import android.view.LayoutInflater;
import android.view.View;
-import android.view.ViewGroup;
import android.widget.Button;
-import android.widget.TextView;
+
+import android.view.ViewGroup;
+import android.view.LayoutInflater;
import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
-import androidx.lifecycle.Observer;
-import androidx.lifecycle.ViewModelProviders;
import com.example.listify.R;
diff --git a/Listify/app/src/main/res/layout/activity_code.xml b/Listify/app/src/main/res/layout/activity_code.xml
new file mode 100644
index 0000000..dc50709
--- /dev/null
+++ b/Listify/app/src/main/res/layout/activity_code.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Listify/app/src/main/res/layout/activity_forgotpswd.xml b/Listify/app/src/main/res/layout/activity_forgotpswd.xml
index fe7b986..b65d92e 100644
--- a/Listify/app/src/main/res/layout/activity_forgotpswd.xml
+++ b/Listify/app/src/main/res/layout/activity_forgotpswd.xml
@@ -6,7 +6,7 @@
android:layout_height="match_parent">
+ app:layout_constraintTop_toBottomOf="@+id/button2" />
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Listify/app/src/main/res/layout/activity_resetpswd.xml b/Listify/app/src/main/res/layout/activity_resetpswd.xml
index 24137d3..eee8def 100644
--- a/Listify/app/src/main/res/layout/activity_resetpswd.xml
+++ b/Listify/app/src/main/res/layout/activity_resetpswd.xml
@@ -6,7 +6,7 @@
android:layout_height="match_parent">
-
+ android:layout_marginStart="18dp"
+ android:layout_marginTop="288dp"
+ android:text="Already have an account? Click here to log in."
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+
-
-
+ app:layout_constraintBottom_toTopOf="@+id/button1"
+ app:layout_constraintEnd_toEndOf="@+id/button1"
+ app:layout_constraintStart_toStartOf="@+id/button1" />
\ No newline at end of file