diff --git a/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java b/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java
index 134cd18..546d78d 100644
--- a/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java
+++ b/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java
@@ -67,6 +67,17 @@ public class ProfileFragment extends Fragment {
Log.i("Authentication", e.toString());
}
}
+ else {
+ View errorView = getLayoutInflater().inflate(R.layout.activity_erroralert, null);
+ AlertDialog.Builder builder2 = new AlertDialog.Builder(getActivity());
+ builder2.setView(errorView);
+ builder2.setPositiveButton("OK", new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {}
+ });
+ AlertDialog dialog2 = builder2.create();
+ dialog2.show();
+ }
}
});
builder.setNegativeButton("No", new DialogInterface.OnClickListener() {
diff --git a/Listify/app/src/main/java/com/example/listify/ui/store/StoreFragment.java b/Listify/app/src/main/java/com/example/listify/ui/store/StoreFragment.java
new file mode 100644
index 0000000..5a98800
--- /dev/null
+++ b/Listify/app/src/main/java/com/example/listify/ui/store/StoreFragment.java
@@ -0,0 +1,51 @@
+package com.example.listify.ui.store;
+
+import android.content.Intent;
+import android.net.Uri;
+import android.widget.TextView;
+import android.os.Bundle;
+import android.view.View;
+import android.view.ViewGroup;
+import android.view.LayoutInflater;
+
+import androidx.annotation.NonNull;
+import androidx.fragment.app.Fragment;
+
+import com.example.listify.R;
+
+public class StoreFragment extends Fragment {
+ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
+ View root = inflater.inflate(R.layout.fragment_stores, container, false);
+
+ TextView krogerText = (TextView) root.findViewById(R.id.textView11);
+ krogerText.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ gotoUrl("https://www.kroger.com/");
+ }
+ });
+
+ TextView kohlsText = (TextView) root.findViewById(R.id.textView12);
+ krogerText.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ gotoUrl("https://www.kohls.com/");
+ }
+ });
+
+ TextView ebayText = (TextView) root.findViewById(R.id.textView13);
+ krogerText.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ gotoUrl("https://www.ebay.com/");
+ }
+ });
+
+ return root;
+ }
+
+ private void gotoUrl(String url) {
+ Uri u = Uri.parse(url);
+ startActivity(new Intent(Intent.ACTION_VIEW, u));
+ }
+}
diff --git a/Listify/app/src/main/res/drawable/ic_baseline_store_24.xml b/Listify/app/src/main/res/drawable/ic_baseline_store_24.xml
new file mode 100644
index 0000000..76ec4df
--- /dev/null
+++ b/Listify/app/src/main/res/drawable/ic_baseline_store_24.xml
@@ -0,0 +1,10 @@
+
+
+
diff --git a/Listify/app/src/main/res/layout/activity_erroralert.xml b/Listify/app/src/main/res/layout/activity_erroralert.xml
new file mode 100644
index 0000000..aaa6225
--- /dev/null
+++ b/Listify/app/src/main/res/layout/activity_erroralert.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
\ 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 7080bbd..8002666 100644
--- a/Listify/app/src/main/res/layout/activity_forgotpswd.xml
+++ b/Listify/app/src/main/res/layout/activity_forgotpswd.xml
@@ -11,8 +11,8 @@
android:layout_height="wrap_content"
android:layout_marginTop="51dp"
android:text="Submit"
- app:layout_constraintEnd_toStartOf="@+id/textView6"
- app:layout_constraintStart_toStartOf="@+id/textView6"
+ app:layout_constraintEnd_toStartOf="@+id/textView7"
+ app:layout_constraintStart_toStartOf="@+id/textView7"
app:layout_constraintTop_toBottomOf="@+id/editTextTextPassword2" />
@@ -69,4 +69,13 @@
android:text="Please enter your email address."
app:layout_constraintBottom_toTopOf="@+id/editTextTextEmailAddress"
app:layout_constraintEnd_toEndOf="@+id/editTextTextEmailAddress" />
+
+
\ No newline at end of file
diff --git a/Listify/app/src/main/res/layout/activity_list.xml b/Listify/app/src/main/res/layout/activity_list.xml
index 7ecaabf..d286d14 100644
--- a/Listify/app/src/main/res/layout/activity_list.xml
+++ b/Listify/app/src/main/res/layout/activity_list.xml
@@ -48,6 +48,7 @@
android:layout_height="600dp"
android:layout_marginTop="50dp"
android:paddingBottom="20dp"/>
+
diff --git a/Listify/app/src/main/res/layout/activity_login.xml b/Listify/app/src/main/res/layout/activity_login.xml
index a81dbf6..3f5022c 100644
--- a/Listify/app/src/main/res/layout/activity_login.xml
+++ b/Listify/app/src/main/res/layout/activity_login.xml
@@ -12,8 +12,8 @@
android:layout_height="wrap_content"
android:layout_marginTop="53dp"
android:text="Log in"
- app:layout_constraintEnd_toStartOf="@+id/textView5"
- app:layout_constraintStart_toStartOf="@+id/textView5"
+ app:layout_constraintEnd_toStartOf="@+id/textView8"
+ app:layout_constraintStart_toStartOf="@+id/textView8"
app:layout_constraintTop_toBottomOf="@+id/button2" />
+
+
diff --git a/Listify/app/src/main/res/layout/activity_signup.xml b/Listify/app/src/main/res/layout/activity_signup.xml
index 1671732..f0d40cc 100644
--- a/Listify/app/src/main/res/layout/activity_signup.xml
+++ b/Listify/app/src/main/res/layout/activity_signup.xml
@@ -12,8 +12,8 @@
android:layout_height="wrap_content"
android:layout_marginTop="65dp"
android:text="Sign up"
- app:layout_constraintEnd_toStartOf="@+id/textView3"
- app:layout_constraintStart_toStartOf="@+id/textView3"
+ app:layout_constraintEnd_toStartOf="@+id/textView4"
+ app:layout_constraintStart_toStartOf="@+id/textView4"
app:layout_constraintTop_toBottomOf="@+id/editTextTextPassword2" />
+
+
diff --git a/Listify/app/src/main/res/layout/fragment_stores.xml b/Listify/app/src/main/res/layout/fragment_stores.xml
new file mode 100644
index 0000000..500b979
--- /dev/null
+++ b/Listify/app/src/main/res/layout/fragment_stores.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Listify/app/src/main/res/menu/activity_main_drawer.xml b/Listify/app/src/main/res/menu/activity_main_drawer.xml
index 044cb9d..8e55845 100644
--- a/Listify/app/src/main/res/menu/activity_main_drawer.xml
+++ b/Listify/app/src/main/res/menu/activity_main_drawer.xml
@@ -14,6 +14,11 @@
android:icon="@drawable/ic_baseline_person_24"
android:title="@string/menu_profile" />
+
+
+
+
My Lists
Profile
+ Stores
Gallery
Slideshow