├── app ├── .gitignore ├── src │ ├── main │ │ ├── assets │ │ │ └── fonts │ │ │ │ └── Questv1-Bold.otf │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ ├── splash.9.png │ │ │ │ └── ic_stat_s_controller.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── splash.9.png │ │ │ │ └── ic_stat_s_controller.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── splash.9.png │ │ │ │ └── ic_stat_s_controller.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── splash.9.png │ │ │ │ └── ic_stat_s_controller.png │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values-ar │ │ │ │ ├── dimens.xml │ │ │ │ └── strings.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── drawable │ │ │ │ ├── green_gradient.xml │ │ │ │ ├── amber_gradient.xml │ │ │ │ ├── ic_menu_home.xml │ │ │ │ ├── custom_thumb.xml │ │ │ │ ├── custom_progressbar.xml │ │ │ │ ├── ic_menu_calculate.xml │ │ │ │ ├── ic_menu_facebook.xml │ │ │ │ ├── ic_menu_reminders.xml │ │ │ │ ├── ic_help_outline_black_24dp.xml │ │ │ │ ├── ic_menu_recipes.xml │ │ │ │ ├── ic_share.xml │ │ │ │ ├── custom_button.xml │ │ │ │ ├── animation_button.xml │ │ │ │ ├── ic_menu_twitter.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── drawables.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── colors.xml │ │ │ │ └── strings.xml │ │ │ ├── menu │ │ │ │ ├── main.xml │ │ │ │ └── activity_main_drawer.xml │ │ │ ├── layout │ │ │ │ ├── activity_splash.xml │ │ │ │ ├── app_bar_main.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── nav_header_main.xml │ │ │ │ ├── f5_layout.xml │ │ │ │ ├── f1_layout.xml │ │ │ │ ├── f2_layout.xml │ │ │ │ ├── content_main.xml │ │ │ │ ├── f3_layout.xml │ │ │ │ ├── activity_api.xml │ │ │ │ ├── fragment_about.xml │ │ │ │ ├── activity_reminders.xml │ │ │ │ └── f4_layout.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ └── ahmux │ │ │ │ └── nutritionpoint │ │ │ │ ├── FragmentsCommunicator.java │ │ │ │ ├── AlarmReceiver.java │ │ │ │ ├── SplashActivity.java │ │ │ │ ├── Fragment5.java │ │ │ │ ├── AboutFragment.java │ │ │ │ ├── Fragment1.java │ │ │ │ ├── Fragment2.java │ │ │ │ ├── NotificationsController.java │ │ │ │ ├── Fragment3.java │ │ │ │ ├── ApiActivity.java │ │ │ │ ├── Fragment4.java │ │ │ │ ├── RemindersActivity.java │ │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── ahmux │ │ │ └── nutritionpoint │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── ahmux │ │ └── nutritionpoint │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .idea ├── caches │ └── build_file_checksums.ser ├── vcs.xml ├── runConfigurations.xml ├── gradle.xml ├── misc.xml ├── codeStyles │ └── Project.xml └── assetWizardSettings.xml ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── README.md └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.idea/caches/build_file_checksums.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/.idea/caches/build_file_checksums.ser -------------------------------------------------------------------------------- /app/src/main/assets/fonts/Questv1-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/assets/fonts/Questv1-Bold.otf -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/splash.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/drawable-hdpi/splash.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/splash.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/drawable-mdpi/splash.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/splash.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/drawable-xhdpi/splash.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/splash.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/drawable-xxhdpi/splash.9.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/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/Ahmux/Nutrition_Point/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/Ahmux/Nutrition_Point/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/Ahmux/Nutrition_Point/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/Ahmux/Nutrition_Point/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_stat_s_controller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/drawable-hdpi/ic_stat_s_controller.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_stat_s_controller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/drawable-mdpi/ic_stat_s_controller.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_stat_s_controller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/drawable-xhdpi/ic_stat_s_controller.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_stat_s_controller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ahmux/Nutrition_Point/HEAD/app/src/main/res/drawable-xxhdpi/ic_stat_s_controller.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/libraries 5 | /.idea/modules.xml 6 | /.idea/workspace.xml 7 | .DS_Store 8 | /build 9 | /captures 10 | .externalNativeBuild 11 | -------------------------------------------------------------------------------- /app/src/main/res/values-ar/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 30sp 5 | 30sp 6 | 7 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/java/ahmux/nutritionpoint/FragmentsCommunicator.java: -------------------------------------------------------------------------------- 1 | package ahmux.nutritionpoint; 2 | 3 | public interface FragmentsCommunicator { 4 | 5 | void respond(String data1, int data2); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Sep 08 22:24:56 EET 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/green_gradient.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/amber_gradient.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_home.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/custom_thumb.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/custom_progressbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/test/java/ahmux/nutritionpoint/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package ahmux.nutritionpoint; 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/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 8dp 6 | 176dp 7 | 16dp 8 | 18sp 9 | 18sp 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_calculate.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/java/ahmux/nutritionpoint/AlarmReceiver.java: -------------------------------------------------------------------------------- 1 | package ahmux.nutritionpoint; 2 | 3 | import android.content.BroadcastReceiver; 4 | import android.content.Context; 5 | import android.content.Intent; 6 | import android.widget.Toast; 7 | 8 | public class AlarmReceiver extends BroadcastReceiver { 9 | 10 | NotificationsController nc = new NotificationsController(); 11 | int id=0; 12 | 13 | @Override 14 | public void onReceive(Context context, Intent intent) { 15 | nc.notify(context, context.getString(R.string.notification_string), id); 16 | id++; } 17 | } 18 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_facebook.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_reminders.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_help_outline_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_recipes.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/drawables.xml: -------------------------------------------------------------------------------- 1 | 2 | @android:drawable/ic_menu_camera 3 | @android:drawable/ic_menu_gallery 4 | @android:drawable/ic_menu_slideshow 5 | @android:drawable/ic_menu_manage 6 | @android:drawable/ic_menu_share 7 | @android:drawable/ic_menu_send 8 | 9 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_share.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /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=-Xmx1536m 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 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |