diff --git a/Foodify/.gitignore b/Foodify/.gitignore
new file mode 100644
index 0000000..aa724b7
--- /dev/null
+++ b/Foodify/.gitignore
@@ -0,0 +1,15 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
+local.properties
diff --git a/Foodify/app/.gitignore b/Foodify/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/Foodify/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/Foodify/app/build.gradle b/Foodify/app/build.gradle
new file mode 100644
index 0000000..38f8b5b
--- /dev/null
+++ b/Foodify/app/build.gradle
@@ -0,0 +1,60 @@
+plugins {
+ id 'com.android.application'
+}
+
+android {
+ compileSdk 32
+
+ defaultConfig {
+ applicationId "com.waterbase.foodify"
+ minSdk 23
+ targetSdk 30
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+ buildFeatures {
+ viewBinding true
+ }
+}
+
+dependencies {
+
+ implementation 'com.github.mancj:MaterialSearchBar:0.8.5'
+ implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
+ implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'
+ implementation 'com.cepheuen.elegant-number-button:lib:1.0.2'
+ implementation 'androidx.appcompat:appcompat:1.4.1'
+ implementation 'com.google.android.material:material:1.6.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
+ implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
+ implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
+ implementation 'androidx.navigation:navigation-fragment:2.3.5'
+ implementation 'androidx.navigation:navigation-ui:2.3.5'
+ testImplementation 'junit:junit:4.13.2'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.3'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
+
+ //Add library
+ implementation 'com.google.firebase:firebase-core:10.2.0'
+ implementation 'com.google.firebase:firebase-database:10.2.0'
+ implementation 'com.github.jd-alexander:android-flat-button:v1.1'
+ implementation 'com.rengwuxian.materialedittext:library:2.1.4'
+
+ implementation 'com.squareup.picasso:picasso:2.5.2'
+ implementation 'com.firebaseui:firebase-ui-database:1.2.0'
+}
+
+apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
diff --git a/Foodify/app/proguard-rules.pro b/Foodify/app/proguard-rules.pro
new file mode 100644
index 0000000..481bb43
--- /dev/null
+++ b/Foodify/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# 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 *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/Foodify/app/src/androidTest/java/com/waterbase/foodify/ExampleInstrumentedTest.java b/Foodify/app/src/androidTest/java/com/waterbase/foodify/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..b1b0cf9
--- /dev/null
+++ b/Foodify/app/src/androidTest/java/com/waterbase/foodify/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.waterbase.foodify;
+
+import android.content.Context;
+
+import androidx.test.platform.app.InstrumentationRegistry;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+ assertEquals("com.waterbase.foodify", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/Foodify/app/src/main/AndroidManifest.xml b/Foodify/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..f09237c
--- /dev/null
+++ b/Foodify/app/src/main/AndroidManifest.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/assets/databases/EatItDB.db b/Foodify/app/src/main/assets/databases/EatItDB.db
new file mode 100644
index 0000000..d211e2c
Binary files /dev/null and b/Foodify/app/src/main/assets/databases/EatItDB.db differ
diff --git a/Foodify/app/src/main/assets/fonts/NABILA.TTF b/Foodify/app/src/main/assets/fonts/NABILA.TTF
new file mode 100644
index 0000000..4f74aff
Binary files /dev/null and b/Foodify/app/src/main/assets/fonts/NABILA.TTF differ
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/Cart.java b/Foodify/app/src/main/java/com/waterbase/foodify/Cart.java
new file mode 100644
index 0000000..c962bde
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/Cart.java
@@ -0,0 +1,154 @@
+package com.waterbase.foodify;
+
+import androidx.annotation.NonNull;
+import androidx.appcompat.app.ActionBar;
+import androidx.appcompat.app.AlertDialog;
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import android.content.DialogInterface;
+import android.os.Bundle;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.EditText;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import com.google.firebase.database.DatabaseReference;
+import com.google.firebase.database.FirebaseDatabase;
+import com.waterbase.foodify.Common.Common;
+import com.waterbase.foodify.Database.Database;
+import com.waterbase.foodify.Model.Order;
+import com.waterbase.foodify.Model.Request;
+import com.waterbase.foodify.ViewHolder.CartAdapter;
+
+import java.text.NumberFormat;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Locale;
+
+import info.hoang8f.widget.FButton;
+
+public class Cart extends AppCompatActivity {
+
+ RecyclerView recyclerView;
+ RecyclerView.LayoutManager layoutManager;
+
+ FirebaseDatabase database;
+ DatabaseReference requests;
+
+ TextView txtTotalPrice;
+ FButton btnPlace;
+
+ List cart = new ArrayList<>();
+ CartAdapter adapter;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_cart);
+
+ //Firebase
+ database = FirebaseDatabase.getInstance();
+ requests = database.getReference("Requests");
+
+ //Init
+ recyclerView = (RecyclerView) findViewById(R.id.listCart);
+ recyclerView.setHasFixedSize(true);
+ layoutManager = new LinearLayoutManager(this);
+ recyclerView.setLayoutManager(layoutManager);
+
+ txtTotalPrice = (TextView) findViewById(R.id.total);
+ btnPlace = (FButton) findViewById(R.id.btnPlaceOrder);
+
+ btnPlace.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ showAlertDialog();
+ }
+ });
+
+ loadListFood();
+
+ setTitle("Giỏ hàng");
+ // calling the action bar
+ ActionBar actionBar = getSupportActionBar();
+
+ // showing the back button in action bar
+ actionBar.setDisplayHomeAsUpEnabled(true);
+ }
+
+ private void showAlertDialog() {
+ AlertDialog.Builder alertDialog = new AlertDialog.Builder(Cart.this);
+ alertDialog.setTitle("One more step!");
+ alertDialog.setMessage("Enter your address: ");
+
+ final EditText edtAddress = new EditText(Cart.this);
+ LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
+ LinearLayout.LayoutParams.MATCH_PARENT,
+ LinearLayout.LayoutParams.MATCH_PARENT
+ );
+ edtAddress.setLayoutParams(lp);
+ alertDialog.setView(edtAddress); //Add edit text to Dialog
+ alertDialog.setIcon(R.drawable.ic_baseline_shopping_cart_24);
+
+ alertDialog.setPositiveButton("YES", new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ //Create new Request
+ Request request = new Request(
+ Common.currentUser.getPhone(),
+ Common.currentUser.getName(),
+ edtAddress.getText().toString(),
+ txtTotalPrice.getText().toString(),
+ cart
+ );
+
+ //Summit to Firebase
+ //We will using System.CurrentMilli to key
+ requests.child(String.valueOf(System.currentTimeMillis())).setValue(request);
+
+ //Delete Cart
+ new Database(getBaseContext()).cleanCart();
+ Toast.makeText(Cart.this, "Đặt hàng thành công!", Toast.LENGTH_SHORT).show();
+ finish();
+ }
+ });
+
+ alertDialog.setNegativeButton("NO", new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ dialog.dismiss();
+ }
+ });
+
+ alertDialog.show();
+ }
+
+ private void loadListFood() {
+ cart = new Database(this).getCarts();
+ adapter = new CartAdapter(cart, this);
+ recyclerView.setAdapter(adapter);
+
+ //Calculate total price
+ float total = 0;
+ for(Order order:cart)
+ total += (Float.parseFloat(order.getPrice()))*(Float.parseFloat(order.getQuantity()));
+ Locale locale = new Locale("vi", "VN");
+ NumberFormat fmt = NumberFormat.getCurrencyInstance(locale);
+
+ txtTotalPrice.setText(fmt.format(total));
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
+ switch (item.getItemId()) {
+ case android.R.id.home:
+ this.finish();
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
\ No newline at end of file
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/Common/Common.java b/Foodify/app/src/main/java/com/waterbase/foodify/Common/Common.java
new file mode 100644
index 0000000..6f59ab3
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/Common/Common.java
@@ -0,0 +1,7 @@
+package com.waterbase.foodify.Common;
+
+import com.waterbase.foodify.Model.User;
+
+public class Common {
+ public static User currentUser;
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/Database/Database.java b/Foodify/app/src/main/java/com/waterbase/foodify/Database/Database.java
new file mode 100644
index 0000000..577f3f1
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/Database/Database.java
@@ -0,0 +1,62 @@
+package com.waterbase.foodify.Database;
+
+import android.content.Context;
+import android.database.Cursor;
+import android.database.sqlite.SQLiteDatabase;
+import android.database.sqlite.SQLiteQueryBuilder;
+
+import com.readystatesoftware.sqliteasset.SQLiteAssetHelper;
+import com.waterbase.foodify.Model.Order;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Database extends SQLiteAssetHelper {
+
+ private static final String DB_NAME="EatItDB.db";
+ private static final int DB_VER=1;
+ public Database(Context context) {
+ super(context, DB_NAME, null, DB_VER);
+ }
+
+ public List getCarts() {
+ SQLiteDatabase db = getReadableDatabase();
+ SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
+
+ String[] sqlSelect = {"ProductName", "ProductId", "Quantity", "Price", "Discount"};
+ String sqlTable="OrderDetail";
+
+ qb.setTables(sqlTable);
+ Cursor c = qb.query(db, sqlSelect, null, null, null, null, null);
+
+ final List result = new ArrayList<>();
+ if(c.moveToFirst()) {
+ do {
+ result.add(new Order(c.getString(c.getColumnIndexOrThrow("ProductId")),
+ c.getString(c.getColumnIndexOrThrow("ProductName")),
+ c.getString(c.getColumnIndexOrThrow("Quantity")),
+ c.getString(c.getColumnIndexOrThrow("Price")),
+ c.getString(c.getColumnIndexOrThrow("Discount"))
+ ));
+ } while(c.moveToNext());
+ }
+ return result;
+ }
+
+ public void addToCart(Order order) {
+ SQLiteDatabase db = getReadableDatabase();
+ String query = String.format("INSERT INTO OrderDetail(ProductId, ProductName, Quantity, Price,Discount) VALUES ('%s', '%s','%s','%s','%s');",
+ order.getProductId(),
+ order.getProductName(),
+ order.getQuantity(),
+ order.getPrice(),
+ order.getDiscount());
+ db.execSQL(query);
+ }
+
+ public void cleanCart() {
+ SQLiteDatabase db = getReadableDatabase();
+ String query = String.format("DELETE FROM OrderDetail");
+ db.execSQL(query);
+ }
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/FoodDetail.java b/Foodify/app/src/main/java/com/waterbase/foodify/FoodDetail.java
new file mode 100644
index 0000000..16db8bc
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/FoodDetail.java
@@ -0,0 +1,131 @@
+package com.waterbase.foodify;
+
+import androidx.annotation.NonNull;
+import androidx.appcompat.app.ActionBar;
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.os.Bundle;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.ImageView;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import com.cepheuen.elegantnumberbutton.view.ElegantNumberButton;
+import com.google.android.material.appbar.CollapsingToolbarLayout;
+import com.google.android.material.floatingactionbutton.FloatingActionButton;
+import com.google.firebase.database.DataSnapshot;
+import com.google.firebase.database.DatabaseError;
+import com.google.firebase.database.DatabaseReference;
+import com.google.firebase.database.FirebaseDatabase;
+import com.google.firebase.database.ValueEventListener;
+import com.squareup.picasso.Picasso;
+import com.waterbase.foodify.Database.Database;
+import com.waterbase.foodify.Model.Food;
+import com.waterbase.foodify.Model.Order;
+
+public class FoodDetail extends AppCompatActivity {
+
+
+ TextView food_name, food_price, food_description;
+ ImageView food_image;
+ CollapsingToolbarLayout collapsingToolbarLayout;
+ FloatingActionButton btnCart;
+ ElegantNumberButton numberButton;
+
+ String foodId = "";
+
+ FirebaseDatabase database;
+ DatabaseReference foods;
+
+ Food currentFood;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_food_detail);
+
+ //Firebase
+ database = FirebaseDatabase.getInstance();
+ foods = database.getReference("Foods");
+
+ //Init view
+ numberButton = (ElegantNumberButton) findViewById(R.id.number_button);
+ btnCart = (FloatingActionButton) findViewById(R.id.btnCart);
+
+ btnCart.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ new Database(getBaseContext()).addToCart(new Order(
+ foodId,
+ currentFood.getName(),
+ numberButton.getNumber(),
+ currentFood.getPrice(),
+ currentFood.getDiscount()
+ ));
+
+ Toast.makeText(FoodDetail.this, "Added to Cart", Toast.LENGTH_SHORT).show();
+ }
+ });
+
+ food_description = (TextView) findViewById(R.id.food_description);
+ food_name = (TextView) findViewById(R.id.food_name);
+ food_price = (TextView) findViewById(R.id.food_price);
+ food_image = (ImageView) findViewById(R.id.img_food);
+
+ collapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.collapsing);
+ collapsingToolbarLayout.setExpandedTitleTextAppearance(R.style.ExpandedAppbar);
+ collapsingToolbarLayout.setCollapsedTitleTextAppearance(R.style.CollapsedAppbar);
+
+ //Get Food Id from Intent
+ if(getIntent() != null)
+ foodId = getIntent().getStringExtra("FoodId");
+ if(!foodId.isEmpty()) {
+ getDetailFood(foodId);
+ }
+
+ setTitle("Chi tiết");
+
+ // calling the action bar
+ ActionBar actionBar = getSupportActionBar();
+
+ // showing the back button in action bar
+ actionBar.setDisplayHomeAsUpEnabled(true);
+
+ }
+
+ private void getDetailFood(String foodId) {
+ foods.child(foodId).addValueEventListener(new ValueEventListener() {
+ @Override
+ public void onDataChange(DataSnapshot dataSnapshot) {
+ currentFood = dataSnapshot.getValue(Food.class);
+
+ //Set Image
+ Picasso.with(getBaseContext()).load(currentFood.getImage()).into(food_image);
+
+ collapsingToolbarLayout.setTitle(currentFood.getName());
+
+ food_price.setText(currentFood.getPrice());
+
+ food_name.setText(currentFood.getName());
+
+ food_description.setText(currentFood.getDescription());
+ }
+
+ @Override
+ public void onCancelled(DatabaseError databaseError) {
+
+ }
+ });
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
+ switch (item.getItemId()) {
+ case android.R.id.home:
+ this.finish();
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
\ No newline at end of file
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/FoodList.java b/Foodify/app/src/main/java/com/waterbase/foodify/FoodList.java
new file mode 100644
index 0000000..21caf8a
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/FoodList.java
@@ -0,0 +1,210 @@
+package com.waterbase.foodify;
+
+import androidx.annotation.NonNull;
+import androidx.appcompat.app.ActionBar;
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.text.Editable;
+import android.text.TextWatcher;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.Toast;
+
+import com.firebase.ui.database.FirebaseRecyclerAdapter;
+import com.google.firebase.database.DataSnapshot;
+import com.google.firebase.database.DatabaseError;
+import com.google.firebase.database.DatabaseReference;
+import com.google.firebase.database.FirebaseDatabase;
+import com.google.firebase.database.ValueEventListener;
+import com.mancj.materialsearchbar.MaterialSearchBar;
+import com.squareup.picasso.Picasso;
+import com.waterbase.foodify.Interface.ItemClickListener;
+import com.waterbase.foodify.Model.Food;
+import com.waterbase.foodify.ViewHolder.FoodViewHolder;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class FoodList extends AppCompatActivity {
+
+ RecyclerView recyclerView;
+ RecyclerView.LayoutManager layoutManager;
+
+ FirebaseDatabase database;
+ DatabaseReference foodList;
+
+ String categoryId = "", categoryName = "";
+
+ FirebaseRecyclerAdapter adapter;
+
+ //Search functionality
+ FirebaseRecyclerAdapter searchAdapter;
+ List suggestList = new ArrayList<>();
+ MaterialSearchBar materialSearchBar;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_food_list);
+
+ //Firebase
+ database = FirebaseDatabase.getInstance();
+ foodList = database.getReference("Foods");
+
+ recyclerView = (RecyclerView) findViewById(R.id.recyler_food);
+ recyclerView.setHasFixedSize(true);
+ layoutManager = new LinearLayoutManager(this);
+ recyclerView.setLayoutManager(layoutManager);
+
+ //Get Intent here
+ if(getIntent() != null)
+ categoryId = getIntent().getStringExtra("CategoryId");
+ categoryName = getIntent().getStringExtra("CategoryName");
+ if(!categoryId.isEmpty() && categoryId != null) {
+ loadListFood(categoryId);
+ }
+
+ //Search
+ materialSearchBar = (MaterialSearchBar) findViewById(R.id.searchBar);
+ materialSearchBar.setHint("Enter your food");
+ loadSuggest();
+ materialSearchBar.setLastSuggestions(suggestList);
+ materialSearchBar.setCardViewElevation(10);
+ materialSearchBar.addTextChangeListener(new TextWatcher() {
+ @Override
+ public void beforeTextChanged(CharSequence s, int start, int count, int after) {
+
+ }
+
+ @Override
+ public void onTextChanged(CharSequence s, int start, int before, int count) {
+ //When user type their text, we will change suggest list
+
+ List suggest = new ArrayList();
+ for(String search:suggestList) {
+ if(search.toLowerCase().contains(materialSearchBar.getText().toLowerCase()))
+ suggest.add(search);
+ }
+ materialSearchBar.setLastSuggestions(suggest);
+ }
+
+ @Override
+ public void afterTextChanged(Editable s) {
+
+ }
+ });
+ materialSearchBar.setOnSearchActionListener(new MaterialSearchBar.OnSearchActionListener() {
+ @Override
+ public void onSearchStateChanged(boolean enabled) {
+ //When search bar is close
+ //Restore original adapter
+ if(!enabled)
+ recyclerView.setAdapter(adapter);
+ }
+
+ @Override
+ public void onSearchConfirmed(CharSequence text) {
+ //When search finish
+ //Show result of search adapter
+ startSearch(text);
+ }
+
+ @Override
+ public void onButtonClicked(int buttonCode) {
+
+ }
+ });
+
+ setTitle(categoryName);
+
+ // calling the action bar
+ ActionBar actionBar = getSupportActionBar();
+
+ // showing the back button in action bar
+ actionBar.setDisplayHomeAsUpEnabled(true);
+ }
+
+ private void startSearch(CharSequence text) {
+ searchAdapter = new FirebaseRecyclerAdapter(
+ Food.class,
+ R.layout.food_item,
+ FoodViewHolder.class,
+ foodList.orderByChild("Name").equalTo(text.toString())
+ ) {
+ @Override
+ protected void populateViewHolder(FoodViewHolder viewHolder, Food model, int i) {
+ viewHolder.food_name.setText(model.getName());
+ Picasso.with(getBaseContext()).load(model.getImage()).into(viewHolder.food_image);
+
+ viewHolder.setItemClickListener(new ItemClickListener() {
+ @Override
+ public void onClick(View view, int position, boolean isLongClick) {
+ //Start Activity
+ Intent foodDetail = new Intent(FoodList.this, FoodDetail.class);
+ foodDetail.putExtra("FoodId", searchAdapter.getRef(position).getKey()); // Send Food Id to new activity
+ startActivity(foodDetail);
+ }
+ });
+ }
+ };
+ recyclerView.setAdapter(searchAdapter); //Set adapter for Recycler View is Search result
+ }
+
+ private void loadSuggest() {
+ foodList.orderByChild("MenuId").equalTo(categoryId)
+ .addValueEventListener(new ValueEventListener() {
+ @Override
+ public void onDataChange(DataSnapshot dataSnapshot) {
+ for(DataSnapshot postSnapshot: dataSnapshot.getChildren()){
+ Food item = postSnapshot.getValue(Food.class);
+ suggestList.add(item.getName());
+ }
+ }
+
+ @Override
+ public void onCancelled(DatabaseError databaseError) {
+
+ }
+ });
+ }
+
+ private void loadListFood(String categoryId){
+ adapter = new FirebaseRecyclerAdapter(Food.class, R.layout.food_item,
+ FoodViewHolder.class, foodList.orderByChild("MenuId").equalTo(categoryId) // like: Select * from Foods where MenuId = 'categoryId'
+ ) {
+ @Override
+ protected void populateViewHolder(FoodViewHolder viewHolder, Food model, int position) {
+ viewHolder.food_name.setText(model.getName());
+ Picasso.with(getBaseContext()).load(model.getImage()).into(viewHolder.food_image);
+
+ final Food local = model;
+ viewHolder.setItemClickListener(new ItemClickListener() {
+ @Override
+ public void onClick(View view, int position, boolean isLongClick) {
+ //Start Activity
+ Intent foodDetail = new Intent(FoodList.this, FoodDetail.class);
+ foodDetail.putExtra("FoodId", adapter.getRef(position).getKey()); // Send Food Id to new activity
+ startActivity(foodDetail);
+ }
+ });
+ }
+ };
+
+ //Set Adapter
+ recyclerView.setAdapter(adapter);
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
+ switch (item.getItemId()) {
+ case android.R.id.home:
+ this.finish();
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
\ No newline at end of file
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/Home.java b/Foodify/app/src/main/java/com/waterbase/foodify/Home.java
new file mode 100644
index 0000000..d7c0a39
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/Home.java
@@ -0,0 +1,129 @@
+package com.waterbase.foodify;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.appcompat.app.ActionBarDrawerToggle;
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.appcompat.widget.Toolbar;
+import androidx.core.view.GravityCompat;
+import androidx.drawerlayout.widget.DrawerLayout;
+import androidx.navigation.ui.AppBarConfiguration;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.firebase.ui.database.FirebaseRecyclerAdapter;
+import com.google.android.material.navigation.NavigationView;
+import com.google.firebase.database.DatabaseReference;
+import com.google.firebase.database.FirebaseDatabase;
+import com.squareup.picasso.Picasso;
+import com.waterbase.foodify.Common.Common;
+import com.waterbase.foodify.Interface.ItemClickListener;
+import com.waterbase.foodify.Model.Category;
+import com.waterbase.foodify.ViewHolder.MenuViewHolder;
+
+
+public class Home extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener{
+
+ FirebaseDatabase database;
+ DatabaseReference category;
+
+ RecyclerView recyler_menu;
+ RecyclerView.LayoutManager layoutManager;
+ FirebaseRecyclerAdapter adapter;
+
+ private AppBarConfiguration mAppBarConfiguration;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ setContentView(R.layout.activity_home);
+
+ Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
+ toolbar.setTitle("Menu");
+ setSupportActionBar(toolbar);
+
+ DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
+ ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.app_name, R.string.app_name);
+ drawer.setDrawerListener(toggle);
+ toggle.syncState();
+ NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
+ navigationView.setNavigationItemSelectedListener(this);
+
+
+ //Init database
+ database = FirebaseDatabase.getInstance();
+ category = database.getReference("Category");
+
+ //Load menu
+ recyler_menu = (RecyclerView) findViewById(R.id.recyler_menu);
+ recyler_menu.setHasFixedSize(true);
+ layoutManager = new LinearLayoutManager(this);
+ recyler_menu.setLayoutManager(layoutManager);
+
+ loadMenu();
+
+ //Set name for user
+ View headerView = navigationView.getHeaderView(0);
+ TextView navUserName = (TextView) headerView.findViewById(R.id.txtFullName);
+ navUserName.setText(Common.currentUser.getName());
+ }
+
+ private void loadMenu() {
+ adapter = new FirebaseRecyclerAdapter(Category.class, R.layout.menu_item, MenuViewHolder.class, category) {
+ @Override
+ protected void populateViewHolder(MenuViewHolder viewHolder, Category model, int position) {
+ viewHolder.txtMenuName.setText(model.getName());
+ Picasso.with(getBaseContext()).load(model.getImage())
+ .into(viewHolder.imageView);
+ viewHolder.setItemClickListener(new ItemClickListener() {
+ @Override
+ public void onClick(View view, int position, boolean isLongClick) {
+ //Get Category Id and send to new Activity
+ Intent foodList = new Intent(getBaseContext(), FoodList.class);
+ foodList.putExtra("CategoryId", adapter.getRef(position).getKey());
+ foodList.putExtra("CategoryName", model.getName());
+ startActivity(foodList);
+ }
+ });
+ }
+ };
+ recyler_menu.setAdapter(adapter);
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.home, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onNavigationItemSelected(@NonNull MenuItem item) {
+ int id = item.getItemId();
+
+ if(id == R.id.nav_cart) {
+ Intent cartIntent = new Intent(Home.this, Cart.class);
+ startActivity(cartIntent);
+ } else if (id == R.id.nav_order) {
+ Intent orderIntent = new Intent(Home.this, OrderStatus.class);
+ startActivity(orderIntent);
+ } else if (id == R.id.nav_log_out) {
+ Intent signIn = new Intent(Home.this, SignIn.class);
+ signIn.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
+ startActivity(signIn);
+ finish();
+ }
+
+ DrawerLayout drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
+ drawerLayout.closeDrawer(GravityCompat.START);
+
+ return true;
+ }
+}
\ No newline at end of file
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/Interface/ItemClickListener.java b/Foodify/app/src/main/java/com/waterbase/foodify/Interface/ItemClickListener.java
new file mode 100644
index 0000000..242aac9
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/Interface/ItemClickListener.java
@@ -0,0 +1,7 @@
+package com.waterbase.foodify.Interface;
+
+import android.view.View;
+
+public interface ItemClickListener {
+ void onClick(View view, int position, boolean isLongClick);
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/Model/Category.java b/Foodify/app/src/main/java/com/waterbase/foodify/Model/Category.java
new file mode 100644
index 0000000..faa6100
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/Model/Category.java
@@ -0,0 +1,30 @@
+package com.waterbase.foodify.Model;
+
+public class Category {
+ private String Name;
+ private String Image;
+
+ public Category() {
+ }
+
+ public Category(String name, String image) {
+ Name = name;
+ Image = image;
+ }
+
+ public String getName() {
+ return Name;
+ }
+
+ public void setName(String name) {
+ Name = name;
+ }
+
+ public String getImage() {
+ return Image;
+ }
+
+ public void setImage(String image) {
+ Image = image;
+ }
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/Model/Food.java b/Foodify/app/src/main/java/com/waterbase/foodify/Model/Food.java
new file mode 100644
index 0000000..b72728a
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/Model/Food.java
@@ -0,0 +1,64 @@
+package com.waterbase.foodify.Model;
+
+public class Food {
+ private String Name, Image, Description, Price, Discount, MenuId;
+
+ public Food() {}
+
+ public Food(String name, String image, String description, String price, String discount, String menuId) {
+ Name = name;
+ Image = image;
+ Description = description;
+ Price = price;
+ Discount = discount;
+ MenuId = menuId;
+ }
+
+ public String getName() {
+ return Name;
+ }
+
+ public void setName(String name) {
+ Name = name;
+ }
+
+ public String getImage() {
+ return Image;
+ }
+
+ public void setImage(String image) {
+ Image = image;
+ }
+
+ public String getDescription() {
+ return Description;
+ }
+
+ public void setDescription(String description) {
+ Description = description;
+ }
+
+ public String getPrice() {
+ return Price;
+ }
+
+ public void setPrice(String price) {
+ Price = price;
+ }
+
+ public String getDiscount() {
+ return Discount;
+ }
+
+ public void setDiscount(String discount) {
+ Discount = discount;
+ }
+
+ public String getMenuId() {
+ return MenuId;
+ }
+
+ public void setMenuId(String menuId) {
+ MenuId = menuId;
+ }
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/Model/Order.java b/Foodify/app/src/main/java/com/waterbase/foodify/Model/Order.java
new file mode 100644
index 0000000..265f502
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/Model/Order.java
@@ -0,0 +1,61 @@
+package com.waterbase.foodify.Model;
+
+public class Order {
+
+ private String ProductId;
+ private String ProductName;
+ private String Quantity;
+ private String Price;
+ private String Discount;
+
+ public Order() {
+ }
+
+ public Order(String productId, String productName, String quantity, String price, String discount) {
+ ProductId = productId;
+ ProductName = productName;
+ Quantity = quantity;
+ Price = price;
+ Discount = discount;
+ }
+
+ public String getProductId() {
+ return ProductId;
+ }
+
+ public void setProductId(String productId) {
+ ProductId = productId;
+ }
+
+ public String getProductName() {
+ return ProductName;
+ }
+
+ public void setProductName(String productName) {
+ ProductName = productName;
+ }
+
+ public String getQuantity() {
+ return Quantity;
+ }
+
+ public void setQuantity(String quantity) {
+ Quantity = quantity;
+ }
+
+ public String getPrice() {
+ return Price;
+ }
+
+ public void setPrice(String price) {
+ Price = price;
+ }
+
+ public String getDiscount() {
+ return Discount;
+ }
+
+ public void setDiscount(String discount) {
+ Discount = discount;
+ }
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/Model/Request.java b/Foodify/app/src/main/java/com/waterbase/foodify/Model/Request.java
new file mode 100644
index 0000000..08e3114
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/Model/Request.java
@@ -0,0 +1,72 @@
+package com.waterbase.foodify.Model;
+
+import java.util.List;
+
+public class Request {
+ private String phone;
+ private String name;
+ private String address;
+ private String total;
+ private String status;
+ private List foods; // list of food order
+
+ public Request() {
+ }
+
+ public Request(String phone, String name, String address, String total, List foods) {
+ this.phone = phone;
+ this.name = name;
+ this.address = address;
+ this.total = total;
+ this.foods = foods;
+ this.status = "0"; // Default is 0, 0: Placed, 1: Shipping, 2: Shipped
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getPhone() {
+ return phone;
+ }
+
+ public void setPhone(String phone) {
+ this.phone = phone;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getAddress() {
+ return address;
+ }
+
+ public void setAddress(String address) {
+ this.address = address;
+ }
+
+ public String getTotal() {
+ return total;
+ }
+
+ public void setTotal(String total) {
+ this.total = total;
+ }
+
+ public List getFoods() {
+ return foods;
+ }
+
+ public void setFoods(List foods) {
+ this.foods = foods;
+ }
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/Model/User.java b/Foodify/app/src/main/java/com/waterbase/foodify/Model/User.java
new file mode 100644
index 0000000..2980f4c
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/Model/User.java
@@ -0,0 +1,49 @@
+package com.waterbase.foodify.Model;
+
+public class User {
+
+ private String Name;
+ private String Password;
+ private String Phone;
+ private String IsStaff;
+
+ public User(){}
+
+ public User(String name, String password){
+ Name = name;
+ Password = password;
+ IsStaff = "false";
+ }
+
+ public String getName() {
+ return Name;
+ }
+
+ public String getIsStaff() {
+ return IsStaff;
+ }
+
+ public void setIsStaff(String isStaff) {
+ IsStaff = isStaff;
+ }
+
+ public void setName(String name) {
+ Name = name;
+ }
+
+ public String getPassword() {
+ return Password;
+ }
+
+ public void setPassword(String password) {
+ Password = password;
+ }
+
+ public String getPhone() {
+ return Phone;
+ }
+
+ public void setPhone(String phone) {
+ Phone = phone;
+ }
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/OrderStatus.java b/Foodify/app/src/main/java/com/waterbase/foodify/OrderStatus.java
new file mode 100644
index 0000000..c6661ee
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/OrderStatus.java
@@ -0,0 +1,90 @@
+package com.waterbase.foodify;
+
+import androidx.annotation.NonNull;
+import androidx.appcompat.app.ActionBar;
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import android.os.Bundle;
+import android.view.MenuItem;
+
+import com.firebase.ui.database.FirebaseRecyclerAdapter;
+import com.google.firebase.database.DatabaseReference;
+import com.google.firebase.database.FirebaseDatabase;
+import com.waterbase.foodify.Common.Common;
+import com.waterbase.foodify.Model.Request;
+import com.waterbase.foodify.ViewHolder.OrderViewHolder;
+
+public class OrderStatus extends AppCompatActivity {
+
+ public RecyclerView recyclerView;
+ public RecyclerView.LayoutManager layoutManager;
+
+ FirebaseRecyclerAdapter adapter;
+
+ FirebaseDatabase database;
+ DatabaseReference requests;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_order_status);
+
+ //Firebase
+ database = FirebaseDatabase.getInstance();
+ requests = database.getReference("Requests");
+
+ recyclerView = (RecyclerView) findViewById(R.id.listOrders);
+ recyclerView.setHasFixedSize(true);
+ layoutManager = new LinearLayoutManager(this);
+ recyclerView.setLayoutManager(layoutManager);
+
+ loadOrders(Common.currentUser.getPhone());
+
+ setTitle("Tình trạng đơn hàng");
+ // calling the action bar
+ ActionBar actionBar = getSupportActionBar();
+
+ // showing the back button in action bar
+ actionBar.setDisplayHomeAsUpEnabled(true);
+ }
+
+ private void loadOrders(String phone) {
+ adapter = new FirebaseRecyclerAdapter(
+ Request.class,
+ R.layout.order_layout,
+ OrderViewHolder.class,
+ requests.orderByChild("phone")
+ .equalTo(phone)
+ ) {
+ @Override
+ protected void populateViewHolder(OrderViewHolder orderViewHolder, Request model, int i) {
+ orderViewHolder.txtOrderId.setText(adapter.getRef(i).getKey());
+ orderViewHolder.txtOrderStatus.setText(converCodeToStatus(model.getStatus()));
+ orderViewHolder.txtOrderAddress.setText(model.getAddress());
+ orderViewHolder.txtOrderPhone.setText(model.getPhone());
+ }
+ };
+ recyclerView.setAdapter(adapter);
+ }
+
+ private String converCodeToStatus(String status) {
+ if(status.equals("0"))
+ return "Placed";
+ else if(status.equals("1"))
+ return "On my way";
+ else
+ return "Shipped";
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
+ switch (item.getItemId()) {
+ case android.R.id.home:
+ this.finish();
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
\ No newline at end of file
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/SignIn.java b/Foodify/app/src/main/java/com/waterbase/foodify/SignIn.java
new file mode 100644
index 0000000..5dac34a
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/SignIn.java
@@ -0,0 +1,98 @@
+package com.waterbase.foodify;
+
+import android.app.ProgressDialog;
+import android.content.Intent;
+import android.graphics.Typeface;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import com.google.firebase.database.DataSnapshot;
+import com.google.firebase.database.DatabaseError;
+import com.google.firebase.database.DatabaseReference;
+import com.google.firebase.database.FirebaseDatabase;
+import com.google.firebase.database.ValueEventListener;
+import com.waterbase.foodify.Common.Common;
+import com.waterbase.foodify.Model.User;
+
+public class SignIn extends AppCompatActivity {
+
+ EditText edtPhone, edtPassword;
+ Button btnSignIn;
+ TextView txtAppName;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_sign_in);
+
+ edtPassword = (EditText) findViewById(R.id.edtPassword);
+ edtPhone = (EditText) findViewById(R.id.edtPhone);
+ btnSignIn = (Button) findViewById(R.id.btnSignIn);
+
+ txtAppName = (TextView) findViewById(R.id.txtAppName);
+
+ Typeface face = Typeface.createFromAsset(getAssets(), "fonts/NABILA.TTF");
+ txtAppName.setTypeface(face);
+
+ //Init Firebase
+ FirebaseDatabase database = FirebaseDatabase.getInstance();
+ final DatabaseReference table_user = database.getReference("User");
+
+ btnSignIn.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+
+ final ProgressDialog mDialog = new ProgressDialog(SignIn.this);
+ mDialog.setMessage("Please waiting...");
+ mDialog.show();
+
+ table_user.addListenerForSingleValueEvent(new ValueEventListener() {
+
+
+ @Override
+ public void onDataChange(DataSnapshot dataSnapshot) {
+ //Check phone and password is null or not
+ if(!edtPhone.getText().toString().isEmpty() && !edtPassword.getText().toString().isEmpty()){
+ //Check if user not in database
+ if(dataSnapshot.child(edtPhone.getText().toString()).exists()){
+ //Get User information
+ mDialog.dismiss();
+ User user = dataSnapshot.child(edtPhone.getText().toString()).getValue(User.class);
+ user.setPhone(edtPhone.getText().toString());
+ if(user.getPassword().equals(edtPassword.getText().toString())){
+ Intent homeIntent = new Intent(SignIn.this, Home.class);
+ Common.currentUser = user;
+ startActivity(homeIntent);
+ finish();
+ } else {
+ Toast.makeText(SignIn.this, "Số điện thoại hoặc mật khẩu không đúng. Xin vui lòng thử lại!", Toast.LENGTH_SHORT).show();
+ }
+ } else {
+ mDialog.dismiss();
+ Toast.makeText(SignIn.this, "Số điện thoại chưa được đăng ký. Vui lòng đăng ký để sử dụng!", Toast.LENGTH_SHORT).show();
+ }
+ } else{
+ mDialog.dismiss();
+ Toast.makeText(SignIn.this, "Số điện thoại và mật khẩu không được để trống. Vui lòng thử lại!", Toast.LENGTH_SHORT).show();
+ }
+ }
+
+ @Override
+ public void onCancelled(DatabaseError databaseError) {
+
+ }
+ });
+ }
+ });
+ }
+
+ public void register(View view) {
+ startActivity(new Intent(SignIn.this, com.waterbase.foodify.SignUp.class));
+ }
+}
\ No newline at end of file
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/SignUp.java b/Foodify/app/src/main/java/com/waterbase/foodify/SignUp.java
new file mode 100644
index 0000000..37eaad1
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/SignUp.java
@@ -0,0 +1,85 @@
+package com.waterbase.foodify;
+
+import android.app.ProgressDialog;
+import android.content.Intent;
+import android.graphics.Typeface;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import com.google.firebase.database.DataSnapshot;
+import com.google.firebase.database.DatabaseError;
+import com.google.firebase.database.DatabaseReference;
+import com.google.firebase.database.FirebaseDatabase;
+import com.google.firebase.database.ValueEventListener;
+import com.waterbase.foodify.Model.User;
+
+public class SignUp extends AppCompatActivity {
+
+ EditText edtPhone, edtName, edtPassword;
+ Button btnSignUp;
+ TextView txtAppName;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_sign_up);
+
+ edtName = (EditText) findViewById(R.id.txtFullName);
+ edtPassword = (EditText) findViewById(R.id.edtPassword);
+ edtPhone = (EditText) findViewById(R.id.edtPhone);
+
+ btnSignUp = (Button) findViewById(R.id.btnSignUp);
+
+ txtAppName = (TextView) findViewById(R.id.txtAppName);
+
+ Typeface face = Typeface.createFromAsset(getAssets(), "fonts/NABILA.TTF");
+ txtAppName.setTypeface(face);
+
+ //Init Firebase
+ FirebaseDatabase database = FirebaseDatabase.getInstance();
+ final DatabaseReference table_user = database.getReference("User");
+
+ btnSignUp.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ final ProgressDialog mDialog = new ProgressDialog(SignUp.this);
+ mDialog.setMessage("Please waiting...");
+ mDialog.show();
+
+ table_user.addListenerForSingleValueEvent(new ValueEventListener() {
+ @Override
+ public void onDataChange(DataSnapshot dataSnapshot) {
+ //Check if already user phone
+ if(dataSnapshot.child(edtPhone.getText().toString()).exists()) {
+ mDialog.dismiss();
+ Toast.makeText(SignUp.this, "Phone Number is already register!", Toast.LENGTH_SHORT).show();
+ finish();
+ }
+ else {
+ mDialog.dismiss();
+ User user = new User(edtName.getText().toString(), edtPassword.getText().toString());
+ table_user.child(edtPhone.getText().toString()).setValue(user);
+ Toast.makeText(SignUp.this, "Sign up successfully!", Toast.LENGTH_SHORT).show();
+ finish();
+ }
+ }
+
+ @Override
+ public void onCancelled(DatabaseError databaseError) {
+
+ }
+ });
+ }
+ });
+ }
+
+ public void login(View view) {
+ startActivity(new Intent(SignUp.this, SignIn.class));
+ }
+}
\ No newline at end of file
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/CartAdapter.java b/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/CartAdapter.java
new file mode 100644
index 0000000..3d175cd
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/CartAdapter.java
@@ -0,0 +1,85 @@
+package com.waterbase.foodify.ViewHolder;
+
+import android.content.Context;
+import android.graphics.Color;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.amulyakhare.textdrawable.TextDrawable;
+import com.waterbase.foodify.Interface.ItemClickListener;
+import com.waterbase.foodify.Model.Order;
+import com.waterbase.foodify.R;
+
+import org.w3c.dom.Text;
+
+import java.text.NumberFormat;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Locale;
+
+class CartViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
+
+ public TextView txt_card_item, txt_price;
+ public ImageView img_cart_count;
+
+ private ItemClickListener itemClickListener;
+
+ public void setTxt_card_item(TextView txt_card_item) {
+ this.txt_card_item = txt_card_item;
+ }
+
+ public CartViewHolder(View itemView) {
+ super(itemView);
+ txt_card_item = (TextView) itemView.findViewById(R.id.cart_item_name);
+ txt_price = (TextView) itemView.findViewById(R.id.cart_item_Price);
+ img_cart_count = (ImageView) itemView.findViewById(R.id.cart_item_count);
+ }
+
+ @Override
+ public void onClick(View v) {
+
+ }
+}
+
+public class CartAdapter extends RecyclerView.Adapter{
+
+ private List listData = new ArrayList<>();
+ private Context context;
+
+ public CartAdapter(List listData, Context context) {
+ this.listData = listData;
+ this.context = context;
+ }
+
+ @NonNull
+ @Override
+ public CartViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
+ LayoutInflater inflater = LayoutInflater.from(context);
+ View itemView = inflater.inflate(R.layout.cart_layout, parent, false);
+ return new CartViewHolder(itemView);
+ }
+
+ @Override
+ public void onBindViewHolder(@NonNull CartViewHolder holder, int position) {
+ TextDrawable drawable = TextDrawable.builder().buildRound("" + listData.get(position).getQuantity(), Color.RED);
+ holder.img_cart_count.setImageDrawable(drawable);
+
+ Locale locale = new Locale("vi", "VN");
+ NumberFormat fmt = NumberFormat.getCurrencyInstance(locale);
+ float price = (Float.parseFloat(listData.get(position).getPrice()))*(Float.parseFloat(listData.get(position).getQuantity()));
+ holder.txt_price.setText(fmt.format(price));
+
+ holder.txt_card_item.setText(listData.get(position).getProductName());
+ }
+
+ @Override
+ public int getItemCount() {
+ return listData.size();
+ }
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/FoodViewHolder.java b/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/FoodViewHolder.java
new file mode 100644
index 0000000..48f040d
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/FoodViewHolder.java
@@ -0,0 +1,37 @@
+package com.waterbase.foodify.ViewHolder;
+
+import android.view.View;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.waterbase.foodify.Interface.ItemClickListener;
+import com.waterbase.foodify.R;
+
+public class FoodViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
+
+ public TextView food_name;
+ public ImageView food_image;
+
+ private ItemClickListener itemClickListener;
+
+ public void setItemClickListener(ItemClickListener itemClickListener) {
+ this.itemClickListener = itemClickListener;
+ }
+
+ public FoodViewHolder(@NonNull View itemView) {
+ super(itemView);
+
+ food_name = (TextView) itemView.findViewById(R.id.food_name);
+ food_image = (ImageView) itemView.findViewById(R.id.food_image);
+
+ itemView.setOnClickListener(this);
+ }
+
+ @Override
+ public void onClick(View v) {
+ itemClickListener.onClick(v, getAdapterPosition(), false);
+ }
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/MenuViewHolder.java b/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/MenuViewHolder.java
new file mode 100644
index 0000000..4136886
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/MenuViewHolder.java
@@ -0,0 +1,36 @@
+package com.waterbase.foodify.ViewHolder;
+
+import android.view.View;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.waterbase.foodify.Interface.ItemClickListener;
+import com.waterbase.foodify.R;
+
+public class MenuViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
+
+ public TextView txtMenuName;
+ public ImageView imageView;
+
+ private ItemClickListener itemClickListener;
+
+ public MenuViewHolder(View itemView) {
+ super(itemView);
+
+ txtMenuName = (TextView) itemView.findViewById(R.id.menu_name);
+ imageView = (ImageView) itemView.findViewById(R.id.menu_image);
+
+ itemView.setOnClickListener(this);
+ }
+
+ public void setItemClickListener(ItemClickListener itemClickListener) {
+ this.itemClickListener = itemClickListener;
+ }
+
+ @Override
+ public void onClick(View v) {
+ itemClickListener.onClick(v, getAdapterPosition(), false);
+ }
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/OrderViewHolder.java b/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/OrderViewHolder.java
new file mode 100644
index 0000000..a0c6957
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/ViewHolder/OrderViewHolder.java
@@ -0,0 +1,37 @@
+package com.waterbase.foodify.ViewHolder;
+
+import android.view.View;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.waterbase.foodify.Interface.ItemClickListener;
+import com.waterbase.foodify.R;
+
+public class OrderViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
+
+ public TextView txtOrderId, txtOrderStatus, txtOrderPhone, txtOrderAddress;
+
+ private ItemClickListener itemClickListener;
+
+ public OrderViewHolder(@NonNull View itemView) {
+ super(itemView);
+
+ txtOrderAddress = (TextView) itemView.findViewById(R.id.order_address);
+ txtOrderId = (TextView) itemView.findViewById(R.id.order_id);
+ txtOrderStatus = (TextView) itemView.findViewById(R.id.order_status);
+ txtOrderPhone = (TextView) itemView.findViewById(R.id.order_phone);
+
+ itemView.setOnClickListener(this);
+ }
+
+ public void setItemClickListener(ItemClickListener itemClickListener) {
+ this.itemClickListener = itemClickListener;
+ }
+
+ @Override
+ public void onClick(View v) {
+ itemClickListener.onClick(v, getAdapterPosition(), false);
+ }
+}
diff --git a/Foodify/app/src/main/java/com/waterbase/foodify/Welcome.java b/Foodify/app/src/main/java/com/waterbase/foodify/Welcome.java
new file mode 100644
index 0000000..dd325d5
--- /dev/null
+++ b/Foodify/app/src/main/java/com/waterbase/foodify/Welcome.java
@@ -0,0 +1,48 @@
+package com.waterbase.foodify;
+
+import android.content.Intent;
+import android.graphics.Typeface;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.TextView;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+public class Welcome extends AppCompatActivity {
+
+ Button btnSignIn, btnSignUp;
+ TextView txtSlogan, txtAppName;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_welcome);
+
+ btnSignIn = (Button) findViewById(R.id.btnSignIn);
+ btnSignUp = (Button) findViewById(R.id.btnSignUp);
+
+ txtSlogan = (TextView) findViewById(R.id.txtSlogan);
+ txtAppName = (TextView)findViewById(R.id.txtAppName);
+ Typeface face = Typeface.createFromAsset(getAssets(), "fonts/NABILA.TTF");
+ txtSlogan.setTypeface(face);
+ txtAppName.setTypeface(face);
+
+
+ btnSignIn.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent signIn = new Intent(Welcome.this, SignIn.class);
+ startActivity(signIn);
+ }
+ });
+
+ btnSignUp.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent signUp = new Intent(Welcome.this, SignUp.class);
+ startActivity(signUp);
+ }
+ });
+ }
+}
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/drawable-v24/bg2.jpg b/Foodify/app/src/main/res/drawable-v24/bg2.jpg
new file mode 100644
index 0000000..6d26a1b
Binary files /dev/null and b/Foodify/app/src/main/res/drawable-v24/bg2.jpg differ
diff --git a/Foodify/app/src/main/res/drawable-v24/btn_bg_design.xml b/Foodify/app/src/main/res/drawable-v24/btn_bg_design.xml
new file mode 100644
index 0000000..82b141c
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable-v24/btn_bg_design.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/drawable-v24/foreground_design.xml b/Foodify/app/src/main/res/drawable-v24/foreground_design.xml
new file mode 100644
index 0000000..bc60c66
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable-v24/foreground_design.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/drawable-v24/ic_baseline_account_circle_24.xml b/Foodify/app/src/main/res/drawable-v24/ic_baseline_account_circle_24.xml
new file mode 100644
index 0000000..839101b
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable-v24/ic_baseline_account_circle_24.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/Foodify/app/src/main/res/drawable-v24/ic_baseline_local_phone_24.xml b/Foodify/app/src/main/res/drawable-v24/ic_baseline_local_phone_24.xml
new file mode 100644
index 0000000..67d862a
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable-v24/ic_baseline_local_phone_24.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/Foodify/app/src/main/res/drawable-v24/ic_baseline_vpn_key_24.xml b/Foodify/app/src/main/res/drawable-v24/ic_baseline_vpn_key_24.xml
new file mode 100644
index 0000000..1bdb032
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable-v24/ic_baseline_vpn_key_24.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/Foodify/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/Foodify/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/drawable-v24/sign_in_button.xml b/Foodify/app/src/main/res/drawable-v24/sign_in_button.xml
new file mode 100644
index 0000000..b55f82f
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable-v24/sign_in_button.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/drawable/bg4.jpg b/Foodify/app/src/main/res/drawable/bg4.jpg
new file mode 100644
index 0000000..0e4cdcb
Binary files /dev/null and b/Foodify/app/src/main/res/drawable/bg4.jpg differ
diff --git a/Foodify/app/src/main/res/drawable/ic_baseline_access_time_24.xml b/Foodify/app/src/main/res/drawable/ic_baseline_access_time_24.xml
new file mode 100644
index 0000000..bdf91f9
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable/ic_baseline_access_time_24.xml
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/Foodify/app/src/main/res/drawable/ic_baseline_attach_money_24.xml b/Foodify/app/src/main/res/drawable/ic_baseline_attach_money_24.xml
new file mode 100644
index 0000000..fd8f98f
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable/ic_baseline_attach_money_24.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/Foodify/app/src/main/res/drawable/ic_baseline_exit_to_app_24.xml b/Foodify/app/src/main/res/drawable/ic_baseline_exit_to_app_24.xml
new file mode 100644
index 0000000..0d905fd
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable/ic_baseline_exit_to_app_24.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/Foodify/app/src/main/res/drawable/ic_baseline_menu_24.xml b/Foodify/app/src/main/res/drawable/ic_baseline_menu_24.xml
new file mode 100644
index 0000000..543cee9
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable/ic_baseline_menu_24.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/Foodify/app/src/main/res/drawable/ic_baseline_shopping_cart_24.xml b/Foodify/app/src/main/res/drawable/ic_baseline_shopping_cart_24.xml
new file mode 100644
index 0000000..ba0b471
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable/ic_baseline_shopping_cart_24.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/Foodify/app/src/main/res/drawable/ic_launcher_background.xml b/Foodify/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..07d5da9
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Foodify/app/src/main/res/drawable/ic_menu_camera.xml b/Foodify/app/src/main/res/drawable/ic_menu_camera.xml
new file mode 100644
index 0000000..634fe92
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable/ic_menu_camera.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/Foodify/app/src/main/res/drawable/ic_menu_gallery.xml b/Foodify/app/src/main/res/drawable/ic_menu_gallery.xml
new file mode 100644
index 0000000..03c7709
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable/ic_menu_gallery.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/Foodify/app/src/main/res/drawable/ic_menu_slideshow.xml b/Foodify/app/src/main/res/drawable/ic_menu_slideshow.xml
new file mode 100644
index 0000000..5e9e163
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable/ic_menu_slideshow.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/Foodify/app/src/main/res/drawable/side_nav_bar.xml b/Foodify/app/src/main/res/drawable/side_nav_bar.xml
new file mode 100644
index 0000000..6d81870
--- /dev/null
+++ b/Foodify/app/src/main/res/drawable/side_nav_bar.xml
@@ -0,0 +1,9 @@
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/activity_cart.xml b/Foodify/app/src/main/res/layout/activity_cart.xml
new file mode 100644
index 0000000..1ba08de
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/activity_cart.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/activity_food_detail.xml b/Foodify/app/src/main/res/layout/activity_food_detail.xml
new file mode 100644
index 0000000..cad96d9
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/activity_food_detail.xml
@@ -0,0 +1,154 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/activity_food_list.xml b/Foodify/app/src/main/res/layout/activity_food_list.xml
new file mode 100644
index 0000000..91dd2a1
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/activity_food_list.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/activity_home.xml b/Foodify/app/src/main/res/layout/activity_home.xml
new file mode 100644
index 0000000..7ec6791
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/activity_home.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/activity_order_status.xml b/Foodify/app/src/main/res/layout/activity_order_status.xml
new file mode 100644
index 0000000..031d9fc
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/activity_order_status.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/activity_sign_in.xml b/Foodify/app/src/main/res/layout/activity_sign_in.xml
new file mode 100644
index 0000000..6404725
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/activity_sign_in.xml
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/activity_sign_up.xml b/Foodify/app/src/main/res/layout/activity_sign_up.xml
new file mode 100644
index 0000000..f7e7812
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/activity_sign_up.xml
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/activity_welcome.xml b/Foodify/app/src/main/res/layout/activity_welcome.xml
new file mode 100644
index 0000000..83caab2
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/activity_welcome.xml
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/app_bar_home.xml b/Foodify/app/src/main/res/layout/app_bar_home.xml
new file mode 100644
index 0000000..99ff8fc
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/app_bar_home.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/cart_layout.xml b/Foodify/app/src/main/res/layout/cart_layout.xml
new file mode 100644
index 0000000..4d538a4
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/cart_layout.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/content_home.xml b/Foodify/app/src/main/res/layout/content_home.xml
new file mode 100644
index 0000000..8efdd6c
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/content_home.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/food_item.xml b/Foodify/app/src/main/res/layout/food_item.xml
new file mode 100644
index 0000000..6f5eec8
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/food_item.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/menu_item.xml b/Foodify/app/src/main/res/layout/menu_item.xml
new file mode 100644
index 0000000..0210b8c
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/menu_item.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/nav_header_home.xml b/Foodify/app/src/main/res/layout/nav_header_home.xml
new file mode 100644
index 0000000..5f5c15f
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/nav_header_home.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/layout/order_layout.xml b/Foodify/app/src/main/res/layout/order_layout.xml
new file mode 100644
index 0000000..00eff2c
--- /dev/null
+++ b/Foodify/app/src/main/res/layout/order_layout.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/menu/activity_main_drawer.xml b/Foodify/app/src/main/res/menu/activity_main_drawer.xml
new file mode 100644
index 0000000..87d050e
--- /dev/null
+++ b/Foodify/app/src/main/res/menu/activity_main_drawer.xml
@@ -0,0 +1,22 @@
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/menu/home.xml b/Foodify/app/src/main/res/menu/home.xml
new file mode 100644
index 0000000..ac68310
--- /dev/null
+++ b/Foodify/app/src/main/res/menu/home.xml
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/Foodify/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/Foodify/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/Foodify/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/Foodify/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/Foodify/app/src/main/res/mipmap-hdpi/ic_launcher.webp
new file mode 100644
index 0000000..c209e78
Binary files /dev/null and b/Foodify/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ
diff --git a/Foodify/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/Foodify/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..b2dfe3d
Binary files /dev/null and b/Foodify/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ
diff --git a/Foodify/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/Foodify/app/src/main/res/mipmap-mdpi/ic_launcher.webp
new file mode 100644
index 0000000..4f0f1d6
Binary files /dev/null and b/Foodify/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ
diff --git a/Foodify/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/Foodify/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..62b611d
Binary files /dev/null and b/Foodify/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ
diff --git a/Foodify/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/Foodify/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
new file mode 100644
index 0000000..948a307
Binary files /dev/null and b/Foodify/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ
diff --git a/Foodify/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/Foodify/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..1b9a695
Binary files /dev/null and b/Foodify/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ
diff --git a/Foodify/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/Foodify/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..28d4b77
Binary files /dev/null and b/Foodify/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ
diff --git a/Foodify/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/Foodify/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9287f50
Binary files /dev/null and b/Foodify/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ
diff --git a/Foodify/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/Foodify/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..aa7d642
Binary files /dev/null and b/Foodify/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ
diff --git a/Foodify/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/Foodify/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9126ae3
Binary files /dev/null and b/Foodify/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ
diff --git a/Foodify/app/src/main/res/values-land/dimens.xml b/Foodify/app/src/main/res/values-land/dimens.xml
new file mode 100644
index 0000000..22d7f00
--- /dev/null
+++ b/Foodify/app/src/main/res/values-land/dimens.xml
@@ -0,0 +1,3 @@
+
+ 48dp
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/values-night/themes.xml b/Foodify/app/src/main/res/values-night/themes.xml
new file mode 100644
index 0000000..7e2caa2
--- /dev/null
+++ b/Foodify/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/values-w1240dp/dimens.xml b/Foodify/app/src/main/res/values-w1240dp/dimens.xml
new file mode 100644
index 0000000..d73f4a3
--- /dev/null
+++ b/Foodify/app/src/main/res/values-w1240dp/dimens.xml
@@ -0,0 +1,3 @@
+
+ 200dp
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/values-w600dp/dimens.xml b/Foodify/app/src/main/res/values-w600dp/dimens.xml
new file mode 100644
index 0000000..22d7f00
--- /dev/null
+++ b/Foodify/app/src/main/res/values-w600dp/dimens.xml
@@ -0,0 +1,3 @@
+
+ 48dp
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/values/colors.xml b/Foodify/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..62f454f
--- /dev/null
+++ b/Foodify/app/src/main/res/values/colors.xml
@@ -0,0 +1,20 @@
+
+
+ #FFBB86FC
+ #FF5353
+ #FF5353
+ #FF03DAC5
+ #FF018786
+ #FF000000
+ #FFFFFFFF
+
+ #004d40
+ #00251a
+ #39796b
+
+ #39796b
+ #A9d440
+
+ #7f333639
+ #0e0d0e
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/values/dimens.xml b/Foodify/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..4ab4520
--- /dev/null
+++ b/Foodify/app/src/main/res/values/dimens.xml
@@ -0,0 +1,8 @@
+
+
+ 16dp
+ 16dp
+ 8dp
+ 176dp
+ 16dp
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/values/strings.xml b/Foodify/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..a4e4f74
--- /dev/null
+++ b/Foodify/app/src/main/res/values/strings.xml
@@ -0,0 +1,11 @@
+
+ Foodify
+ No matter where you are whether you are at home, or in the office, or on the beach - we will find you and we will feed you.
+ Home
+ Open navigation drawer
+ Close navigation drawer
+ android.studio@android.com
+ Navigation header
+ Settings
+ Android Studio
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/values/themes.xml b/Foodify/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..4290fc5
--- /dev/null
+++ b/Foodify/app/src/main/res/values/themes.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/xml/backup_rules.xml b/Foodify/app/src/main/res/xml/backup_rules.xml
new file mode 100644
index 0000000..fa0f996
--- /dev/null
+++ b/Foodify/app/src/main/res/xml/backup_rules.xml
@@ -0,0 +1,13 @@
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/main/res/xml/data_extraction_rules.xml b/Foodify/app/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 0000000..9ee9997
--- /dev/null
+++ b/Foodify/app/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Foodify/app/src/test/java/com/waterbase/foodify/ExampleUnitTest.java b/Foodify/app/src/test/java/com/waterbase/foodify/ExampleUnitTest.java
new file mode 100644
index 0000000..603282a
--- /dev/null
+++ b/Foodify/app/src/test/java/com/waterbase/foodify/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.waterbase.foodify;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/Foodify/build.gradle b/Foodify/build.gradle
new file mode 100644
index 0000000..fc54f61
--- /dev/null
+++ b/Foodify/build.gradle
@@ -0,0 +1,27 @@
+// 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:7.2.0'
+ classpath 'com.google.gms:google-services:4.3.10'
+ }
+}
+
+plugins {
+ id 'com.android.application' version '7.2.0' apply false
+ id 'com.android.library' version '7.2.0' apply false
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ google()
+ maven { url "https://jitpack.io" }
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
\ No newline at end of file
diff --git a/Foodify/gradle.properties b/Foodify/gradle.properties
new file mode 100644
index 0000000..f9e65bb
--- /dev/null
+++ b/Foodify/gradle.properties
@@ -0,0 +1,22 @@
+# 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.
+org.gradle.jvmargs=-Xmx2048m -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
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app"s APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Enables namespacing of each library's R class so that its R class includes only the
+# resources declared in the library itself and none from the library's dependencies,
+# thereby reducing the size of the R class for that library
+android.nonTransitiveRClass=true
+android.enableJetifier=true
\ No newline at end of file
diff --git a/Foodify/gradle/wrapper/gradle-wrapper.jar b/Foodify/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..e708b1c
Binary files /dev/null and b/Foodify/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/Foodify/gradle/wrapper/gradle-wrapper.properties b/Foodify/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..9f449e7
--- /dev/null
+++ b/Foodify/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed May 25 07:51:51 ICT 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/Foodify/gradlew b/Foodify/gradlew
new file mode 100644
index 0000000..4f906e0
--- /dev/null
+++ b/Foodify/gradlew
@@ -0,0 +1,185 @@
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# 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\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# 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
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+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" -a "$nonstop" = "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 or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # 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=`expr $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
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=`save "$@"`
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+exec "$JAVACMD" "$@"
diff --git a/Foodify/gradlew.bat b/Foodify/gradlew.bat
new file mode 100644
index 0000000..107acd3
--- /dev/null
+++ b/Foodify/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@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
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@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="-Xmx64m" "-Xms64m"
+
+@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 execute
+
+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 execute
+
+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
+
+: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 %*
+
+: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/Foodify/settings.gradle b/Foodify/settings.gradle
new file mode 100644
index 0000000..9bace0a
--- /dev/null
+++ b/Foodify/settings.gradle
@@ -0,0 +1,10 @@
+pluginManagement {
+ repositories {
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.name = "Foodify"
+include ':app'