├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values-land │ │ │ │ └── dimens.xml │ │ │ ├── values-w1240dp │ │ │ │ └── dimens.xml │ │ │ ├── values-w600dp │ │ │ │ └── dimens.xml │ │ │ ├── drawable │ │ │ │ ├── bowl.jpg │ │ │ │ ├── cake.jpg │ │ │ │ ├── fav1.jpg │ │ │ │ ├── fav3.jpg │ │ │ │ ├── pie.jpg │ │ │ │ ├── s1.jpg │ │ │ │ ├── ver1.jpg │ │ │ │ ├── coffe.jpg │ │ │ │ ├── crepe.jpg │ │ │ │ ├── curry.jpg │ │ │ │ ├── dinner.jpg │ │ │ │ ├── fries1.jpg │ │ │ │ ├── hummus.jpg │ │ │ │ ├── kebab.jpg │ │ │ │ ├── lunch.jpg │ │ │ │ ├── muffin.jpg │ │ │ │ ├── open1.jpg │ │ │ │ ├── quinoa.jpg │ │ │ │ ├── salad.jpg │ │ │ │ ├── salmon.jpg │ │ │ │ ├── shake.jpg │ │ │ │ ├── snacks.jpg │ │ │ │ ├── steak.jpg │ │ │ │ ├── sweets.jpg │ │ │ │ ├── toast.jpg │ │ │ │ ├── bolognese.jpg │ │ │ │ ├── breakfast.jpg │ │ │ │ ├── chicken.jpg │ │ │ │ ├── dessert.jpg │ │ │ │ ├── granola.jpg │ │ │ │ ├── hamburger.jpg │ │ │ │ ├── icecream.jpg │ │ │ │ ├── oatmeal.jpg │ │ │ │ ├── omelette.jpg │ │ │ │ ├── pancakes.jpg │ │ │ │ ├── sandwich2.jpg │ │ │ │ ├── waffles.jpg │ │ │ │ ├── welcome.jpg │ │ │ │ ├── background.jpg │ │ │ │ ├── festivoats.jpg │ │ │ │ ├── oatpancake.jpg │ │ │ │ ├── upload_image.png │ │ │ │ ├── upload_image1.png │ │ │ │ ├── btn_bg_design.xml │ │ │ │ ├── category_img_design.xml │ │ │ │ ├── btn_food_prefrences.xml │ │ │ │ ├── search_bg.xml │ │ │ │ ├── custom_edittext.xml │ │ │ │ ├── side_nav_bar.xml │ │ │ │ ├── foreground_design.xml │ │ │ │ ├── ic_baseline_home_24.xml │ │ │ │ ├── ic_upload.xml │ │ │ │ ├── ic_baseline_upload.xml │ │ │ │ ├── ic_home_black_24dp.xml │ │ │ │ ├── ic_baseline_clear_24.xml │ │ │ │ ├── ic_dashboard_black_24dp.xml │ │ │ │ ├── background_white.xml │ │ │ │ ├── background_peach.xml │ │ │ │ ├── ic_baseline_email_24.xml │ │ │ │ ├── ic_baseline_image_24.xml │ │ │ │ ├── ic_menu_slideshow.xml │ │ │ │ ├── ic_menu_gallery.xml │ │ │ │ ├── ic_baseline_favorite_24.xml │ │ │ │ ├── ic_notifications_black_24dp.xml │ │ │ │ ├── ic_baseline_map_24.xml │ │ │ │ ├── ic_baseline_search_24.xml │ │ │ │ ├── ic_time.xml │ │ │ │ ├── ic_baseline_account_circle_24.xml │ │ │ │ ├── ic_baseline_list_alt_24.xml │ │ │ │ ├── ic_menu_camera.xml │ │ │ │ ├── ic_baseline_password_24.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── drawable-v24 │ │ │ │ ├── user.png │ │ │ │ ├── user1.png │ │ │ │ ├── search.png │ │ │ │ ├── add_photo.png │ │ │ │ ├── cookbooklogo.png │ │ │ │ ├── ic_baseline_delete.xml │ │ │ │ ├── ic_baseline_edit.xml │ │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── values │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── themes.xml │ │ │ │ └── strings.xml │ │ │ ├── menu │ │ │ │ ├── main.xml │ │ │ │ ├── bottom_nav_menu.xml │ │ │ │ └── activity_main_drawer.xml │ │ │ ├── xml │ │ │ │ ├── backup_rules.xml │ │ │ │ └── data_extraction_rules.xml │ │ │ ├── layout │ │ │ │ ├── activity_map.xml │ │ │ │ ├── progress_layout.xml │ │ │ │ ├── content_main.xml │ │ │ │ ├── fragment_notifications.xml │ │ │ │ ├── app_bar_main.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── fragment_detailrecipe.xml │ │ │ │ ├── nav_header_main.xml │ │ │ │ ├── home_item.xml │ │ │ │ ├── activity_my_recipes.xml │ │ │ │ ├── fragment_my_category.xml │ │ │ │ ├── fragment_category.xml │ │ │ │ ├── fragment_home.xml │ │ │ │ ├── my_recipes_item.xml │ │ │ │ ├── activity_edit_profile.xml │ │ │ │ ├── activity_my_detaile_recipe.xml │ │ │ │ ├── activity_my_recipe_update.xml │ │ │ │ ├── activity_welcome.xml │ │ │ │ ├── activity_login.xml │ │ │ │ ├── activity_map_detail.xml │ │ │ │ └── category_item.xml │ │ │ ├── values-night │ │ │ │ └── themes.xml │ │ │ └── navigation │ │ │ │ └── mobile_navigation.xml │ │ ├── ic_launcher-playstore.png │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── myrecipebook │ │ │ │ ├── ui │ │ │ │ ├── notifications │ │ │ │ │ ├── NotificationsViewModel.java │ │ │ │ │ └── NotificationsFragment.java │ │ │ │ ├── home │ │ │ │ │ └── HomeFragment.java │ │ │ │ ├── slideshow │ │ │ │ │ ├── ProfileFragment.java │ │ │ │ │ └── MyRecipeFragment.java │ │ │ │ ├── categories │ │ │ │ │ └── CategoryFragment.java │ │ │ │ └── map │ │ │ │ │ └── MapFragment.java │ │ │ │ ├── models │ │ │ │ ├── HomeItemModel.java │ │ │ │ ├── CategoryModel.java │ │ │ │ ├── UserData.java │ │ │ │ ├── LocationMarker.java │ │ │ │ └── DetailRecipeModel.java │ │ │ │ ├── DataClass.java │ │ │ │ ├── activities │ │ │ │ ├── WelcomeActivity.java │ │ │ │ ├── DetailRecipeActivity.java │ │ │ │ ├── MyDetailRecipe.java │ │ │ │ ├── MapDetailActivity.java │ │ │ │ ├── LoginActivity.java │ │ │ │ ├── EditProfileActivity.java │ │ │ │ └── MyRecipeUpdateActivity.java │ │ │ │ └── adapters │ │ │ │ ├── HomeItemAdapter.java │ │ │ │ ├── MyRecipesAdapter.java │ │ │ │ └── CategoryAdapter.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── myrecipebook │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── example │ │ └── myrecipebook │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── google-services.json └── build.gradle ├── .idea ├── .name ├── .gitignore ├── compiler.xml ├── vcs.xml ├── misc.xml └── gradle.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle ├── gradle.properties ├── gradlew.bat ├── README.md └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | My Recipe Book -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /app/src/main/res/values-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 48dp 3 | -------------------------------------------------------------------------------- /app/src/main/res/values-w1240dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 200dp 3 | -------------------------------------------------------------------------------- /app/src/main/res/values-w600dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 48dp 3 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bowl.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/bowl.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/cake.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/cake.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/fav1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/fav1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/fav3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/fav3.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pie.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/pie.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/s1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/s1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/ver1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/ver1.jpg -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/coffe.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/coffe.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/crepe.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/crepe.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/curry.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/curry.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/dinner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/dinner.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/fries1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/fries1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/hummus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/hummus.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/kebab.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/kebab.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/lunch.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/lunch.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/muffin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/muffin.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/open1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/open1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/quinoa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/quinoa.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/salad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/salad.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/salmon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/salmon.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/shake.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/shake.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/snacks.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/snacks.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/steak.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/steak.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/sweets.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/sweets.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/toast.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/toast.jpg -------------------------------------------------------------------------------- /app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable-v24/user.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/user1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable-v24/user1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/bolognese.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/bolognese.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/breakfast.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/breakfast.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/chicken.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/chicken.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/dessert.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/dessert.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/granola.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/granola.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/hamburger.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/hamburger.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/icecream.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/icecream.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/oatmeal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/oatmeal.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/omelette.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/omelette.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pancakes.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/pancakes.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/sandwich2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/sandwich2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/waffles.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/waffles.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/welcome.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/welcome.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable-v24/search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/background.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/festivoats.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/festivoats.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/oatpancake.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/oatpancake.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/add_photo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable-v24/add_photo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/upload_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/upload_image.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/upload_image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable/upload_image1.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/cookbooklogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/drawable-v24/cookbooklogo.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #E84A11 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanibider/Recipe-Book-Android-App/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/btn_bg_design.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/category_img_design.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/btn_food_prefrences.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/search_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Mar 01 10:32:01 IST 2023 2 | distributionBase=GRADLE_USER_HOME 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip 4 | distributionPath=wrapper/dists 5 | zipStorePath=wrapper/dists 6 | zipStoreBase=GRADLE_USER_HOME 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | local.properties 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/custom_edittext.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/side_nav_bar.xml: -------------------------------------------------------------------------------- 1 | 3 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/foreground_design.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_home_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_upload.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_upload.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_home_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 8dp 6 | 176dp 7 | 16dp 8 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | repositories { 3 | gradlePluginPortal() 4 | google() 5 | mavenCentral() 6 | } 7 | } 8 | dependencyResolutionManagement { 9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 10 | repositories { 11 | google() 12 | mavenCentral() 13 | } 14 | } 15 | rootProject.name = "My Recipe Book" 16 | include ':app' 17 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_baseline_delete.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_clear_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_dashboard_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/background_white.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/background_peach.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_email_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_image_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_baseline_edit.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_slideshow.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_gallery.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_favorite_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/test/java/com/example/myrecipebook/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.myrecipebook; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_notifications_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_map_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/xml/backup_rules.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_search_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_map.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_time.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_account_circle_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_list_alt_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/myrecipebook/ui/notifications/NotificationsViewModel.java: -------------------------------------------------------------------------------- 1 | package com.example.myrecipebook.ui.notifications; 2 | 3 | import androidx.lifecycle.LiveData; 4 | import androidx.lifecycle.MutableLiveData; 5 | import androidx.lifecycle.ViewModel; 6 | 7 | public class NotificationsViewModel extends ViewModel { 8 | 9 | private final MutableLiveData mText; 10 | 11 | public NotificationsViewModel() { 12 | mText = new MutableLiveData<>(); 13 | mText.setValue("This is notifications fragment"); 14 | } 15 | 16 | public LiveData getText() { 17 | return mText; 18 | } 19 | } -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #FDF3F2 5 | #F8DCD8 6 | #F5CAC3 7 | #F0B1A7 8 | #F28482 9 | #EC998C 10 | #FF000000 11 | #FFFFFFFF 12 | #dee2e6 13 | #212529 14 | #00000000 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_camera.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/xml/data_extraction_rules.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 12 | 13 | 19 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/myrecipebook/models/HomeItemModel.java: -------------------------------------------------------------------------------- 1 | package com.example.myrecipebook.models; 2 | 3 | //Data (in Home Screen) 4 | public class HomeItemModel { 5 | int image; 6 | String name; 7 | 8 | public HomeItemModel(int image, String name) { 9 | this.image = image; 10 | this.name = name; 11 | } 12 | 13 | public int getImage() { 14 | return image; 15 | } 16 | 17 | public void setImage(int image) { 18 | this.image = image; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/src/main/res/menu/bottom_nav_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 13 | 14 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 16 | 17 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/progress_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 12 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_password_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/myrecipebook/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.myrecipebook; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | assertEquals("com.example.myrecipebook", appContext.getPackageName()); 25 | } 26 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/myrecipebook/models/CategoryModel.java: -------------------------------------------------------------------------------- 1 | package com.example.myrecipebook.models; 2 | 3 | //Data (in Category Screen) 4 | public class CategoryModel { 5 | int image; 6 | String name; 7 | String detail; 8 | 9 | public CategoryModel(int image, String name, String detail) { 10 | this.image = image; 11 | this.name = name; 12 | this.detail= detail; 13 | 14 | } 15 | 16 | 17 | public int getImage() { 18 | return image; 19 | } 20 | 21 | public void setImage(int image) { 22 | this.image = image; 23 | } 24 | 25 | public String getName() { 26 | return name; 27 | } 28 | 29 | public void setName(String name) { 30 | this.name = name; 31 | } 32 | 33 | 34 | public String getDetail() { 35 | return detail; 36 | } 37 | 38 | public void setDetail(String detail) { 39 | this.detail = detail; 40 | } 41 | 42 | 43 | 44 | 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_notifications.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/myrecipebook/DataClass.java: -------------------------------------------------------------------------------- 1 | package com.example.myrecipebook; 2 | 3 | public class DataClass { 4 | 5 | 6 | 7 | //for upload data 8 | private String dataTitle; 9 | private String dataDesc; 10 | private String dataLang; 11 | private String dataImage; 12 | private String key; 13 | 14 | public String getKey() { 15 | return key; 16 | } 17 | 18 | public void setKey(String key) { 19 | this.key = key; 20 | } 21 | 22 | public String getDataTitle() { 23 | return dataTitle; 24 | } 25 | 26 | public String getDataDesc() { 27 | return dataDesc; 28 | } 29 | 30 | public String getDataLang() { 31 | return dataLang; 32 | } 33 | 34 | public String getDataImage() { 35 | return dataImage; 36 | } 37 | 38 | public DataClass(String dataTitle, String dataDesc, String dataLang, String dataImage) { 39 | this.dataTitle = dataTitle; 40 | this.dataDesc = dataDesc; 41 | this.dataLang = dataLang; 42 | this.dataImage = dataImage; 43 | } 44 | 45 | public DataClass() { 46 | } 47 | 48 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/app_bar_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "186137096272", 4 | "project_id": "my-recipe-book-c4d0d", 5 | "storage_bucket": "my-recipe-book-c4d0d.appspot.com" 6 | }, 7 | "client": [ 8 | { 9 | "client_info": { 10 | "mobilesdk_app_id": "1:186137096272:android:f89eff4bb33bf1c1102155", 11 | "android_client_info": { 12 | "package_name": "com.example.myrecipebook" 13 | } 14 | }, 15 | "oauth_client": [ 16 | { 17 | "client_id": "186137096272-kfnkkh865g32vi12l4rj8j0kvp81j4ro.apps.googleusercontent.com", 18 | "client_type": 3 19 | } 20 | ], 21 | "api_key": [ 22 | { 23 | "current_key": "AIzaSyAOMl5RMctFyB8u_XbcMlNLyhvKiLRaEmo" 24 | } 25 | ], 26 | "services": { 27 | "appinvite_service": { 28 | "other_platform_oauth_client": [ 29 | { 30 | "client_id": "186137096272-kfnkkh865g32vi12l4rj8j0kvp81j4ro.apps.googleusercontent.com", 31 | "client_type": 3 32 | } 33 | ] 34 | } 35 | } 36 | } 37 | ], 38 | "configuration_version": "1" 39 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/myrecipebook/models/UserData.java: -------------------------------------------------------------------------------- 1 | package com.example.myrecipebook.models; 2 | 3 | 4 | public class UserData { 5 | 6 | String name, email, username, profileImage; 7 | 8 | public String getName() { 9 | return name; 10 | } 11 | 12 | public void setName(String name) { 13 | this.name = name; 14 | } 15 | 16 | public String getEmail() { 17 | return email; 18 | } 19 | 20 | public void setEmail(String email) { 21 | this.email = email; 22 | } 23 | 24 | public String getUsername() { 25 | return username; 26 | } 27 | 28 | public void setUsername(String username) { 29 | this.username = username; 30 | } 31 | 32 | public String getProfileImage() { 33 | return profileImage; 34 | } 35 | 36 | public void setProfileImage(String profileImage) { 37 | this.profileImage = profileImage; 38 | } 39 | 40 | public UserData(String name, String email, String username, String profileImage) { 41 | this.name = name; 42 | this.email = email; 43 | this.username = username; 44 | this.profileImage = profileImage; 45 | } 46 | 47 | public UserData() { 48 | } 49 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/myrecipebook/models/LocationMarker.java: -------------------------------------------------------------------------------- 1 | package com.example.myrecipebook.models; 2 | 3 | 4 | import com.google.android.gms.maps.model.LatLng; 5 | 6 | public class LocationMarker { 7 | 8 | String title, address, hours; 9 | double lat, lng; 10 | 11 | public String getTitle() { 12 | return title; 13 | } 14 | public String getHours() { 15 | return hours; 16 | } 17 | public String getAddress() { 18 | return address; 19 | } 20 | 21 | public void setTitle(String title) { 22 | this.title = title; 23 | } 24 | public void setHours(String hours) { 25 | this.hours = hours; 26 | } 27 | public void setAddress(String address) { 28 | this.address = address; 29 | } 30 | 31 | public double getLat() { return lat;} 32 | public double getLng() { return lng;} 33 | 34 | public void setLat(double lat) {this.lat = lat;} 35 | public void setLng(double lng) {this.lng = lng;} 36 | 37 | public LocationMarker(String title, double lat, double lng, String address, String hours) { 38 | this.title = title; 39 | this.lat = lat; 40 | this.lng = lng; 41 | this.address = address; 42 | this.hours = hours; 43 | } 44 | 45 | public LocationMarker() { 46 | } 47 | } -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app's APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=true 18 | # Enables namespacing of each library's R class so that its R class includes only the 19 | # resources declared in the library itself and none from the library's dependencies, 20 | # thereby reducing the size of the R class for that library 21 | android.nonTransitiveRClass=true -------------------------------------------------------------------------------- /app/src/main/res/menu/activity_main_drawer.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 11 | 15 | 16 | 20 | 24 | 25 | 29 | 30 | 31 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/myrecipebook/ui/notifications/NotificationsFragment.java: -------------------------------------------------------------------------------- 1 | package com.example.myrecipebook.ui.notifications; 2 | 3 | import android.os.Bundle; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.TextView; 8 | 9 | import androidx.annotation.NonNull; 10 | import androidx.fragment.app.Fragment; 11 | import androidx.lifecycle.ViewModelProvider; 12 | 13 | import com.example.myrecipebook.databinding.FragmentNotificationsBinding; 14 | 15 | public class NotificationsFragment extends Fragment { 16 | 17 | private FragmentNotificationsBinding binding; 18 | 19 | public View onCreateView(@NonNull LayoutInflater inflater, 20 | ViewGroup container, Bundle savedInstanceState) { 21 | NotificationsViewModel notificationsViewModel = 22 | new ViewModelProvider(this).get(NotificationsViewModel.class); 23 | 24 | binding = FragmentNotificationsBinding.inflate(inflater, container, false); 25 | View root = binding.getRoot(); 26 | 27 | final TextView textView = binding.textNotifications; 28 | notificationsViewModel.getText().observe(getViewLifecycleOwner(), textView::setText); 29 | return root; 30 | } 31 | 32 | @Override 33 | public void onDestroyView() { 34 | super.onDestroyView(); 35 | binding = null; 36 | } 37 | } -------------------------------------------------------------------------------- /app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 21 | 22 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/myrecipebook/models/DetailRecipeModel.java: -------------------------------------------------------------------------------- 1 | package com.example.myrecipebook.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | public class DetailRecipeModel implements Serializable { 7 | String user; 8 | public String name; 9 | public List category; 10 | public List healthLabels; 11 | public String ingredients; 12 | public String instruction; 13 | public String totalTime; 14 | public String imageUrl; 15 | 16 | 17 | public DetailRecipeModel(String user, String name, List category, List healthLabels, String ingredients, String instruction, String totalTime, String imageUrl) { 18 | this.user = user; 19 | this.name = name; 20 | this.category = category; 21 | this.healthLabels = healthLabels; 22 | this.ingredients = ingredients; 23 | this.instruction = instruction; 24 | this.totalTime = totalTime; 25 | this.imageUrl = imageUrl; 26 | } 27 | 28 | public String getName() { 29 | return name; 30 | } 31 | 32 | public String getUser() { 33 | return user; 34 | } 35 | 36 | public List getCategory() { 37 | return category; 38 | } 39 | 40 | public List getHealthLabels() { 41 | return healthLabels; 42 | } 43 | 44 | public String getIngredients() { 45 | return ingredients; 46 | } 47 | 48 | public String getInstruction() { 49 | return instruction; 50 | } 51 | 52 | public String getTotalTime() { 53 | return totalTime; 54 | } 55 | 56 | public String getImageUrl() { 57 | return imageUrl; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/myrecipebook/activities/WelcomeActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.myrecipebook.activities; 2 | 3 | import androidx.appcompat.app.AppCompatActivity; 4 | 5 | import android.content.Intent; 6 | import android.os.Bundle; 7 | import android.view.View; 8 | import android.view.Window; 9 | import android.view.WindowManager; 10 | 11 | import com.example.myrecipebook.MainActivity; 12 | import com.example.myrecipebook.R; 13 | import com.example.myrecipebook.models.RestApiThread; 14 | import com.google.firebase.auth.FirebaseAuth; 15 | import com.google.firebase.auth.FirebaseUser; 16 | 17 | public class WelcomeActivity extends AppCompatActivity { 18 | 19 | private FirebaseAuth auth; 20 | FirebaseUser user; 21 | 22 | @Override 23 | protected void onCreate(Bundle savedInstanceState) { 24 | super.onCreate(savedInstanceState); 25 | 26 | auth = FirebaseAuth.getInstance(); 27 | user = auth.getCurrentUser(); 28 | 29 | 30 | if(user != null){ 31 | startActivity(new Intent(WelcomeActivity.this, MainActivity.class)); 32 | finish(); 33 | } 34 | 35 | requestWindowFeature(Window.FEATURE_NO_TITLE); 36 | this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 37 | 38 | setContentView(R.layout.activity_welcome); 39 | RestApiThread restApiThread = new RestApiThread(); 40 | restApiThread.start(); 41 | } 42 | 43 | public void register(View view) { 44 | startActivity(new Intent(WelcomeActivity.this, RegisterActivity.class)); 45 | } 46 | 47 | public void login(View view) { 48 | startActivity(new Intent(WelcomeActivity.this, LoginActivity.class)); 49 | 50 | } 51 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 16 | 17 | 29 | 30 |