diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..dd84ea7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/Untitled design (3).png b/.github/Untitled design (3).png new file mode 100644 index 0000000..33bba00 Binary files /dev/null and b/.github/Untitled design (3).png differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c6a9fa --- /dev/null +++ b/.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 +/.idea/discord.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..9c98d6f --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +PocDoc \ No newline at end of file diff --git a/.idea/checkstyle-idea.xml b/.idea/checkstyle-idea.xml new file mode 100644 index 0000000..3f70bec --- /dev/null +++ b/.idea/checkstyle-idea.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..9ee7cf4 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + xmlns:android + + ^$ + + + +
+
+ + + + xmlns:.* + + ^$ + + + BY_NAME + +
+
+ + + + .*:id + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + .*:name + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + name + + ^$ + + + +
+
+ + + + style + + ^$ + + + +
+
+ + + + .* + + ^$ + + + BY_NAME + +
+
+ + + + .* + + http://schemas.android.com/apk/res/android + + + ANDROID_ATTRIBUTE_ORDER + +
+
+ + + + .* + + .* + + + BY_NAME + +
+
+
+
+
+
\ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..6e6eec1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/codestream.xml b/.idea/codestream.xml new file mode 100644 index 0000000..392a1ff --- /dev/null +++ b/.idea/codestream.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..61a9130 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/dbnavigator.xml b/.idea/dbnavigator.xml new file mode 100644 index 0000000..10452be --- /dev/null +++ b/.idea/dbnavigator.xml @@ -0,0 +1,459 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/dictionaries/a2s2s.xml b/.idea/dictionaries/a2s2s.xml new file mode 100644 index 0000000..85b6522 --- /dev/null +++ b/.idea/dictionaries/a2s2s.xml @@ -0,0 +1,7 @@ + + + + symptomsids + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..358634d --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..ac6b0ae --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,21 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..2370474 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..3378229 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..7f68460 --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/README.md b/README.md new file mode 100644 index 0000000..f2c74ab --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +[![Logo](/.github/Untitled%20design%20(3).png)](https://github.com/arnavs-0/PocDoc) + + +[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/arnavs-0/CongressionalAppChallengeV001/graphs/commit-activity) +[![Documentation Status](https://readthedocs.org/projects/ansicolortags/badge/?version=latest)](http://ansicolortags.readthedocs.io/?badge=latest) +[![GitHub issues](https://img.shields.io/github/issues/Naereen/StrapDown.js.svg)](https://GitHub.com/arnavs-0/CongressionalAppChallengeV001/issues/) +[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](http://perso.crans.org/besson/LICENSE.html) + + + +A One Stop Medical Assistant. Features include: Diary, Symptom Checker, Allergy Finder, Hospital/Pharmacy Finder, and Medication Tracker. Implemented with the use of Firebase and Google ML, and Clarifai + + + + +## Tools + +* [Gradle](https://gradle.org/) - Dependency Management +* [Android Studio](https://developer.android.com/studio) - IDE +* [Firebase](https://rometools.github.io/rome/) - Backend Structures +* [Google ML](https://developers.google.com/ml-kit) - AI and ML + +[![forthebadge](https://forthebadge.com/images/badges/built-for-android.svg)](https://forthebadge.com) +[![forthebadge](https://forthebadge.com/images/badges/made-with-java.svg)](https://forthebadge.com) +[![ForTheBadge built-by-developers](http://ForTheBadge.com/images/badges/built-by-developers.svg)](https://GitHub.com/arnavs-0/) + + + +## Authors + +* **Arnav Shah** - *Project Lead* - [Arnav S](https://github.com/arnavs-0) + +* **Vishal Dattathreya** - *Project Lead* - [Vishal D](https://github.com/cmdvmd) + diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..7fa2a84 --- /dev/null +++ b/app/.gitignore @@ -0,0 +1,2 @@ +/build +/.idea/encodings.xml \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..8edc63b --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,71 @@ +apply plugin: 'com.android.application' +apply plugin: 'com.google.gms.google-services' + +android { + compileSdkVersion 30 + buildToolsVersion "30.0.2" + + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + + defaultConfig { + applicationId "com.arnav.pocdoc" + minSdkVersion 23 + targetSdkVersion 30 + versionCode 2 + versionName "1.1" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + vectorDrawables.useSupportLibrary = true + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + implementation fileTree(dir: "libs", include: ["*.jar"]) + implementation 'androidx.appcompat:appcompat:1.2.0' + implementation 'androidx.constraintlayout:constraintlayout:2.0.4' + implementation 'androidx.legacy:legacy-support-v4:1.0.0' + implementation 'com.google.firebase:firebase-auth:20.0.1' + testImplementation 'junit:junit:4.13.1' + androidTestImplementation 'androidx.test.ext:junit:1.1.2' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' + implementation 'com.google.android.material:material:1.3.0-alpha04' + implementation 'com.google.android.gms:play-services-auth:19.0.0' + implementation 'com.google.android.gms:play-services-identity:17.0.0' + implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1' + implementation 'com.squareup.okhttp3:okhttp:4.9.0' + implementation 'com.github.pratikbutani:MultiSelectSpinner:-SNAPSHOT' + implementation 'com.google.firebase:firebase-database:19.5.1' + implementation 'com.firebaseui:firebase-ui-database:7.1.0' + implementation 'com.ramotion.paperonboarding:paper-onboarding:1.1.3' + implementation 'com.ramotion.foldingcell:folding-cell:1.2.3' + implementation 'net.steamcrafted:load-toast:1.0.12' + implementation 'com.ismaeldivita.chipnavigation:chip-navigation-bar:1.3.3' + implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.4.20' + implementation 'ca.antonious:materialdaypicker:0.7.3' + implementation 'com.jaredrummler:material-spinner:1.3.1' + implementation 'com.github.jakebonk:NotifyMe:1.0.1' + implementation 'com.clarifai:clarifai-grpc:6.11.0' + implementation 'com.github.GrenderG:Toasty:1.4.2' + implementation 'com.google.android.libraries.places:places:2.4.0' + implementation 'com.google.android.gms:play-services-maps:17.0.0' + implementation 'com.google.android.gms:play-services-location:17.1.0' + implementation 'com.github.arcadefire:nice-spinner:1.4.4' + implementation "com.airbnb.android:lottie:3.5.0" + +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/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/app/release/app-release.apk b/app/release/app-release.apk new file mode 100644 index 0000000..0690fef Binary files /dev/null and b/app/release/app-release.apk differ diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json new file mode 100644 index 0000000..88c5482 --- /dev/null +++ b/app/release/output-metadata.json @@ -0,0 +1,20 @@ +{ + "version": 1, + "artifactType": { + "type": "APK", + "kind": "Directory" + }, + "applicationId": "com.arnav.pocdoc", + "variantName": "release", + "elements": [ + { + "type": "SINGLE", + "filters": [], + "properties": [], + "versionCode": 2, + "versionName": "1.1", + "enabled": true, + "outputFile": "app-release.apk" + } + ] +} \ No newline at end of file diff --git a/app/src/androidTest/java/com/arnav/pocdoc/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/arnav/pocdoc/ExampleInstrumentedTest.java new file mode 100644 index 0000000..7f6d945 --- /dev/null +++ b/app/src/androidTest/java/com/arnav/pocdoc/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.arnav.pocdoc; + +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.arnav.congressionalappchallengev001", appContext.getPackageName()); + } +} \ No newline at end of file diff --git a/app/src/debug/res/values/google_maps_api.xml b/app/src/debug/res/values/google_maps_api.xml new file mode 100644 index 0000000..bbadc0d --- /dev/null +++ b/app/src/debug/res/values/google_maps_api.xml @@ -0,0 +1,24 @@ + + + AIzaSyC2Tv4y-8BukviK1wAAHyDprfbFB8xaj6A + \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..949026b --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/assets/foods.json b/app/src/main/assets/foods.json new file mode 100644 index 0000000..24a5145 --- /dev/null +++ b/app/src/main/assets/foods.json @@ -0,0 +1,2939 @@ +[ + { + "foods":"acorn squash" + }, + { + "foods":"ahipa" + }, + { + "foods":"alcohol" + }, + { + "foods":"ale" + }, + { + "foods":"alfalfa sprouts" + }, + { + "foods":"aliment" + }, + { + "foods":"allspice" + }, + { + "foods":"almond" + }, + { + "foods":"amaranth" + }, + { + "foods":"anchovy" + }, + { + "foods":"angel-hair pasta" + }, + { + "foods":"anise" + }, + { + "foods":"antipasto" + }, + { + "foods":"aonori" + }, + { + "foods":"aperitif" + }, + { + "foods":"apple" + }, + { + "foods":"apple pie" + }, + { + "foods":"apple sauce" + }, + { + "foods":"apricot pits" + }, + { + "foods":"arracacha" + }, + { + "foods":"artichoke" + }, + { + "foods":"arugula" + }, + { + "foods":"asparagus" + }, + { + "foods":"aspic" + }, + { + "foods":"aubergine" + }, + { + "foods":"avocado" + }, + { + "foods":"azuki bean" + }, + { + "foods":"baby back ribs" + }, + { + "foods":"bacon" + }, + { + "foods":"bagel" + }, + { + "foods":"baguette" + }, + { + "foods":"baked alaska" + }, + { + "foods":"baked beans" + }, + { + "foods":"baklava" + }, + { + "foods":"balsamic" + }, + { + "foods":"bamboo shoots" + }, + { + "foods":"banana" + }, + { + "foods":"barbecue" + }, + { + "foods":"barbecue sauce" + }, + { + "foods":"barley" + }, + { + "foods":"basil" + }, + { + "foods":"bass" + }, + { + "foods":"batter" + }, + { + "foods":"bay leaf" + }, + { + "foods":"beancurd" + }, + { + "foods":"beans" + }, + { + "foods":"bechamel" + }, + { + "foods":"beef" + }, + { + "foods":"beef carpaccio" + }, + { + "foods":"beef steak" + }, + { + "foods":"beef tartare" + }, + { + "foods":"beer" + }, + { + "foods":"beet" + }, + { + "foods":"beet root" + }, + { + "foods":"beet salad" + }, + { + "foods":"beignets" + }, + { + "foods":"bell pepper" + }, + { + "foods":"berry" + }, + { + "foods":"beverage" + }, + { + "foods":"bibimbap" + }, + { + "foods":"bilberry" + }, + { + "foods":"bird" + }, + { + "foods":"birthday cake" + }, + { + "foods":"biscuits" + }, + { + "foods":"bitter gourd" + }, + { + "foods":"bitter melon" + }, + { + "foods":"black beans" + }, + { + "foods":"black coffee" + }, + { + "foods":"black currant" + }, + { + "foods":"black tea" + }, + { + "foods":"blackberry" + }, + { + "foods":"blancmange" + }, + { + "foods":"blood orange" + }, + { + "foods":"blood sausage" + }, + { + "foods":"blue cheese" + }, + { + "foods":"blueberry" + }, + { + "foods":"blueberry muffin" + }, + { + "foods":"blueberry pie" + }, + { + "foods":"bok choy" + }, + { + "foods":"bonbon" + }, + { + "foods":"bonbons" + }, + { + "foods":"booze" + }, + { + "foods":"borage" + }, + { + "foods":"boysenberry" + }, + { + "foods":"bran" + }, + { + "foods":"brandy" + }, + { + "foods":"bratwurst" + }, + { + "foods":"bread" + }, + { + "foods":"bread pudding" + }, + { + "foods":"bread rolls" + }, + { + "foods":"breadcrumb" + }, + { + "foods":"breadfruit" + }, + { + "foods":"breadstick" + }, + { + "foods":"bream" + }, + { + "foods":"brie" + }, + { + "foods":"brinjal" + }, + { + "foods":"brioche" + }, + { + "foods":"brisket" + }, + { + "foods":"brittle" + }, + { + "foods":"broad beans" + }, + { + "foods":"broccoli" + }, + { + "foods":"broccolini" + }, + { + "foods":"broil" + }, + { + "foods":"broth" + }, + { + "foods":"brown bread" + }, + { + "foods":"brown rice" + }, + { + "foods":"brownie" + }, + { + "foods":"brulee" + }, + { + "foods":"bruschetta" + }, + { + "foods":"brussels sprout" + }, + { + "foods":"buckwheat" + }, + { + "foods":"bun" + }, + { + "foods":"burdock" + }, + { + "foods":"burrito" + }, + { + "foods":"butter" + }, + { + "foods":"buttercream" + }, + { + "foods":"cabbage" + }, + { + "foods":"caesar salad" + }, + { + "foods":"cake" + }, + { + "foods":"cake mix" + }, + { + "foods":"cake pop" + }, + { + "foods":"calamari" + }, + { + "foods":"camembert" + }, + { + "foods":"canape" + }, + { + "foods":"candy" + }, + { + "foods":"candy apple" + }, + { + "foods":"candy bar" + }, + { + "foods":"cannoli" + }, + { + "foods":"cantaloupe" + }, + { + "foods":"caper" + }, + { + "foods":"cappuccino" + }, + { + "foods":"caprese salad" + }, + { + "foods":"caramel" + }, + { + "foods":"caramel apple" + }, + { + "foods":"caraway" + }, + { + "foods":"carbohydrate" + }, + { + "foods":"cardamom" + }, + { + "foods":"cardoon" + }, + { + "foods":"carp" + }, + { + "foods":"carpaccio" + }, + { + "foods":"carrot" + }, + { + "foods":"carrot cake" + }, + { + "foods":"cashew" + }, + { + "foods":"cassava" + }, + { + "foods":"casserole" + }, + { + "foods":"cauliflower" + }, + { + "foods":"caviar" + }, + { + "foods":"cayenne" + }, + { + "foods":"cayenne pepper" + }, + { + "foods":"celeriac" + }, + { + "foods":"celery" + }, + { + "foods":"celtuce" + }, + { + "foods":"cereal" + }, + { + "foods":"cereal bar" + }, + { + "foods":"ceviche" + }, + { + "foods":"champagne" + }, + { + "foods":"chard" + }, + { + "foods":"chaya" + }, + { + "foods":"chayote" + }, + { + "foods":"cheddar" + }, + { + "foods":"cheese" + }, + { + "foods":"cheeseburger" + }, + { + "foods":"cheesecake" + }, + { + "foods":"cherimoya" + }, + { + "foods":"cherry" + }, + { + "foods":"cherry tomato" + }, + { + "foods":"chestnut" + }, + { + "foods":"chevre" + }, + { + "foods":"chicken" + }, + { + "foods":"chicken breast" + }, + { + "foods":"chicken curry" + }, + { + "foods":"chicken leg" + }, + { + "foods":"chicken quesadilla" + }, + { + "foods":"chicken wings" + }, + { + "foods":"chickpeas" + }, + { + "foods":"chickweed" + }, + { + "foods":"chicory" + }, + { + "foods":"chili" + }, + { + "foods":"chili pepper" + }, + { + "foods":"chili powder" + }, + { + "foods":"chili sauce" + }, + { + "foods":"chinese artichoke" + }, + { + "foods":"chips" + }, + { + "foods":"chives" + }, + { + "foods":"chocolate" + }, + { + "foods":"chocolate bar" + }, + { + "foods":"chocolate cake" + }, + { + "foods":"chocolate candy" + }, + { + "foods":"chocolate chip cake" + }, + { + "foods":"chocolate cookie" + }, + { + "foods":"chocolate cupcake" + }, + { + "foods":"chocolate ice cream" + }, + { + "foods":"chocolate mousse" + }, + { + "foods":"chorizo" + }, + { + "foods":"chowder" + }, + { + "foods":"churros" + }, + { + "foods":"chutney" + }, + { + "foods":"ciabatta" + }, + { + "foods":"cider" + }, + { + "foods":"cilantro" + }, + { + "foods":"cinnamon" + }, + { + "foods":"cinnamon roll" + }, + { + "foods":"citron" + }, + { + "foods":"citrus" + }, + { + "foods":"clam" + }, + { + "foods":"clam chowder" + }, + { + "foods":"clementine" + }, + { + "foods":"cloudberry" + }, + { + "foods":"cloves" + }, + { + "foods":"cobbler" + }, + { + "foods":"cockle" + }, + { + "foods":"cocktail" + }, + { + "foods":"cocoa" + }, + { + "foods":"coconut" + }, + { + "foods":"coffee" + }, + { + "foods":"cognac" + }, + { + "foods":"coke" + }, + { + "foods":"cole slaw" + }, + { + "foods":"coleslaw" + }, + { + "foods":"collards" + }, + { + "foods":"collation" + }, + { + "foods":"comestible" + }, + { + "foods":"common bean" + }, + { + "foods":"common purslane" + }, + { + "foods":"compote" + }, + { + "foods":"condiment" + }, + { + "foods":"cooked meat" + }, + { + "foods":"cookie" + }, + { + "foods":"coriander" + }, + { + "foods":"corn" + }, + { + "foods":"corn bread" + }, + { + "foods":"corn salad" + }, + { + "foods":"corned beef" + }, + { + "foods":"cornflakes" + }, + { + "foods":"cottage cheese" + }, + { + "foods":"coulis" + }, + { + "foods":"courgette" + }, + { + "foods":"couscous" + }, + { + "foods":"crab" + }, + { + "foods":"crab cakes" + }, + { + "foods":"cracker" + }, + { + "foods":"cranberries" + }, + { + "foods":"cranberry" + }, + { + "foods":"cranberry sauce" + }, + { + "foods":"crayfish" + }, + { + "foods":"cream" + }, + { + "foods":"cream cheese" + }, + { + "foods":"creme brulee" + }, + { + "foods":"crepe" + }, + { + "foods":"crescent roll" + }, + { + "foods":"cress" + }, + { + "foods":"crispbread" + }, + { + "foods":"croissant" + }, + { + "foods":"croque madame" + }, + { + "foods":"croquette" + }, + { + "foods":"crouton" + }, + { + "foods":"crumble" + }, + { + "foods":"crunch" + }, + { + "foods":"crust" + }, + { + "foods":"cucumber" + }, + { + "foods":"cumin" + }, + { + "foods":"cupcake" + }, + { + "foods":"curd" + }, + { + "foods":"currant" + }, + { + "foods":"curry" + }, + { + "foods":"custard" + }, + { + "foods":"cutlet" + }, + { + "foods":"cuttlefish" + }, + { + "foods":"daikon" + }, + { + "foods":"dairy" + }, + { + "foods":"dairy product" + }, + { + "foods":"damson" + }, + { + "foods":"dandelion greens" + }, + { + "foods":"danish pastry" + }, + { + "foods":"date" + }, + { + "foods":"decaffeinated coffee" + }, + { + "foods":"dessert" + }, + { + "foods":"deviled eggs" + }, + { + "foods":"dill" + }, + { + "foods":"dolichos bean" + }, + { + "foods":"dollop" + }, + { + "foods":"dough" + }, + { + "foods":"doughnut" + }, + { + "foods":"dragonfruit" + }, + { + "foods":"dried apricot" + }, + { + "foods":"dried fruit" + }, + { + "foods":"drumstick" + }, + { + "foods":"duck" + }, + { + "foods":"dulse" + }, + { + "foods":"dumpling" + }, + { + "foods":"durian" + }, + { + "foods":"eclair" + }, + { + "foods":"edam cheese" + }, + { + "foods":"edamame" + }, + { + "foods":"eel" + }, + { + "foods":"egg" + }, + { + "foods":"egg white" + }, + { + "foods":"egg yolk" + }, + { + "foods":"eggplant" + }, + { + "foods":"elderberry" + }, + { + "foods":"elephant foot yam" + }, + { + "foods":"elephant garlic" + }, + { + "foods":"emmental" + }, + { + "foods":"endive" + }, + { + "foods":"english muffin" + }, + { + "foods":"ensete" + }, + { + "foods":"escargots" + }, + { + "foods":"espresso" + }, + { + "foods":"falafel" + }, + { + "foods":"farfalle" + }, + { + "foods":"fat hen" + }, + { + "foods":"fava beans" + }, + { + "foods":"feast" + }, + { + "foods":"feijoa" + }, + { + "foods":"fennel" + }, + { + "foods":"fettuccine" + }, + { + "foods":"fiddlehead" + }, + { + "foods":"fig" + }, + { + "foods":"filet mignon" + }, + { + "foods":"fillet" + }, + { + "foods":"fillet of sole" + }, + { + "foods":"filling" + }, + { + "foods":"fish" + }, + { + "foods":"fish and chips" + }, + { + "foods":"fish fillet" + }, + { + "foods":"fish fingers" + }, + { + "foods":"fish steak" + }, + { + "foods":"flan" + }, + { + "foods":"flatbread" + }, + { + "foods":"flatfish" + }, + { + "foods":"flax" + }, + { + "foods":"florence fennel" + }, + { + "foods":"flour" + }, + { + "foods":"fluted pumpkin" + }, + { + "foods":"focaccia" + }, + { + "foods":"fodder" + }, + { + "foods":"foie gras" + }, + { + "foods":"fondue" + }, + { + "foods":"fowl" + }, + { + "foods":"frankfurters" + }, + { + "foods":"french beans" + }, + { + "foods":"french bread" + }, + { + "foods":"french dressing" + }, + { + "foods":"french fries" + }, + { + "foods":"french onion soup" + }, + { + "foods":"french toast" + }, + { + "foods":"fried calamari" + }, + { + "foods":"fried egg" + }, + { + "foods":"fried rice" + }, + { + "foods":"frittata" + }, + { + "foods":"fritter" + }, + { + "foods":"frozen peas" + }, + { + "foods":"frozen pizza" + }, + { + "foods":"frozen yogurt" + }, + { + "foods":"fruit salad" + }, + { + "foods":"fruit tea" + }, + { + "foods":"fruitcake" + }, + { + "foods":"fudge" + }, + { + "foods":"fusilli" + }, + { + "foods":"galangal" + }, + { + "foods":"galette" + }, + { + "foods":"garam masala" + }, + { + "foods":"garbanzo" + }, + { + "foods":"garlic" + }, + { + "foods":"garlic bread" + }, + { + "foods":"garlic chives" + }, + { + "foods":"garlic sauce" + }, + { + "foods":"gastronomy" + }, + { + "foods":"gazpacho" + }, + { + "foods":"gelatin" + }, + { + "foods":"gem" + }, + { + "foods":"gherkin" + }, + { + "foods":"gin" + }, + { + "foods":"ginger" + }, + { + "foods":"ginger ale" + }, + { + "foods":"gingerbread" + }, + { + "foods":"ginseng" + }, + { + "foods":"gnocchi" + }, + { + "foods":"goats cheese" + }, + { + "foods":"goji berry" + }, + { + "foods":"good king henry" + }, + { + "foods":"goody" + }, + { + "foods":"goose" + }, + { + "foods":"gooseberry" + }, + { + "foods":"gorgonzola" + }, + { + "foods":"gouda" + }, + { + "foods":"gouda cheese" + }, + { + "foods":"goulash" + }, + { + "foods":"gourd" + }, + { + "foods":"grain" + }, + { + "foods":"granola" + }, + { + "foods":"granola bar" + }, + { + "foods":"grape" + }, + { + "foods":"grape jelly" + }, + { + "foods":"grapefruit" + }, + { + "foods":"grass" + }, + { + "foods":"gravy" + }, + { + "foods":"greater plantain" + }, + { + "foods":"greek salad" + }, + { + "foods":"green bean" + }, + { + "foods":"green onion" + }, + { + "foods":"green pepper" + }, + { + "foods":"green tea" + }, + { + "foods":"grilled cheese sandwich" + }, + { + "foods":"grilled salmon" + }, + { + "foods":"grissini" + }, + { + "foods":"grits" + }, + { + "foods":"groats" + }, + { + "foods":"ground beef" + }, + { + "foods":"grub" + }, + { + "foods":"guacamole" + }, + { + "foods":"guar" + }, + { + "foods":"guava" + }, + { + "foods":"gyoza" + }, + { + "foods":"gyro" + }, + { + "foods":"habanero pepper" + }, + { + "foods":"haddock" + }, + { + "foods":"halibut" + }, + { + "foods":"ham" + }, + { + "foods":"hamburg parsley" + }, + { + "foods":"hamburger" + }, + { + "foods":"hamburger bun" + }, + { + "foods":"hash" + }, + { + "foods":"hay" + }, + { + "foods":"hazelnut" + }, + { + "foods":"herb" + }, + { + "foods":"herbal tea" + }, + { + "foods":"herring" + }, + { + "foods":"hijiki" + }, + { + "foods":"honey" + }, + { + "foods":"honeydew melon" + }, + { + "foods":"horse gram" + }, + { + "foods":"horse radish" + }, + { + "foods":"hot chocolate" + }, + { + "foods":"hot dog" + }, + { + "foods":"hot dog bun" + }, + { + "foods":"hot pepper" + }, + { + "foods":"hot sauce" + }, + { + "foods":"huckleberry" + }, + { + "foods":"huevos rancheros" + }, + { + "foods":"hummus" + }, + { + "foods":"ice" + }, + { + "foods":"ice cream" + }, + { + "foods":"iceberg lettuce" + }, + { + "foods":"iced tea" + }, + { + "foods":"indian pea" + }, + { + "foods":"indian tea" + }, + { + "foods":"italian dressing" + }, + { + "foods":"ivy gourd" + }, + { + "foods":"jabouticaba" + }, + { + "foods":"jackfruit" + }, + { + "foods":"jalapeno" + }, + { + "foods":"jam" + }, + { + "foods":"jambul" + }, + { + "foods":"jelly" + }, + { + "foods":"jelly beans" + }, + { + "foods":"jerusalem artichoke" + }, + { + "foods":"jicama" + }, + { + "foods":"jordan almonds" + }, + { + "foods":"jug" + }, + { + "foods":"juice" + }, + { + "foods":"jujube" + }, + { + "foods":"julienne" + }, + { + "foods":"juniper berry" + }, + { + "foods":"kale" + }, + { + "foods":"kebab" + }, + { + "foods":"ketchup" + }, + { + "foods":"kettle" + }, + { + "foods":"kettle corn" + }, + { + "foods":"kidney bean" + }, + { + "foods":"kingfish" + }, + { + "foods":"kipper" + }, + { + "foods":"kiwi fruit" + }, + { + "foods":"knish" + }, + { + "foods":"kohlrabi" + }, + { + "foods":"komatsuna" + }, + { + "foods":"kombu" + }, + { + "foods":"kumquat" + }, + { + "foods":"ladle" + }, + { + "foods":"lager" + }, + { + "foods":"lagos bologi" + }, + { + "foods":"lamb" + }, + { + "foods":"lamb chops" + }, + { + "foods":"lamb's lettuce" + }, + { + "foods":"lamb's quarters" + }, + { + "foods":"land cress" + }, + { + "foods":"lard" + }, + { + "foods":"lasagna" + }, + { + "foods":"lasagne" + }, + { + "foods":"lavender" + }, + { + "foods":"laver" + }, + { + "foods":"leek" + }, + { + "foods":"legume" + }, + { + "foods":"lemon" + }, + { + "foods":"lemon peel" + }, + { + "foods":"lemonade" + }, + { + "foods":"lemongrass" + }, + { + "foods":"lentil" + }, + { + "foods":"lettuce" + }, + { + "foods":"licorice" + }, + { + "foods":"lima bean" + }, + { + "foods":"lime" + }, + { + "foods":"lime cordial" + }, + { + "foods":"linguine" + }, + { + "foods":"link sausages" + }, + { + "foods":"liqueur" + }, + { + "foods":"liquor" + }, + { + "foods":"liver pate" + }, + { + "foods":"lobster" + }, + { + "foods":"lobster bisque" + }, + { + "foods":"loin" + }, + { + "foods":"lollipop" + }, + { + "foods":"loquat" + }, + { + "foods":"lotus root" + }, + { + "foods":"lox" + }, + { + "foods":"luffa" + }, + { + "foods":"lunchmeat" + }, + { + "foods":"lychee" + }, + { + "foods":"m&m" + }, + { + "foods":"macadamia nut" + }, + { + "foods":"macaron" + }, + { + "foods":"macaroni" + }, + { + "foods":"macaroon" + }, + { + "foods":"mackerel" + }, + { + "foods":"maize" + }, + { + "foods":"malabar spinach" + }, + { + "foods":"malt" + }, + { + "foods":"mandarin orange" + }, + { + "foods":"mango" + }, + { + "foods":"maple syrup" + }, + { + "foods":"margarine" + }, + { + "foods":"marinated cucumber" + }, + { + "foods":"marinated herring" + }, + { + "foods":"marionberry" + }, + { + "foods":"marjoram" + }, + { + "foods":"marmalade" + }, + { + "foods":"marron" + }, + { + "foods":"marrow" + }, + { + "foods":"marshmallow" + }, + { + "foods":"martini" + }, + { + "foods":"marzipan" + }, + { + "foods":"mashed potatoes" + }, + { + "foods":"mashua" + }, + { + "foods":"matcha" + }, + { + "foods":"mate" + }, + { + "foods":"mayonnaise" + }, + { + "foods":"mead" + }, + { + "foods":"meat" + }, + { + "foods":"meat pie" + }, + { + "foods":"meat sauce" + }, + { + "foods":"meatball" + }, + { + "foods":"meatloaf" + }, + { + "foods":"melokhia" + }, + { + "foods":"melon" + }, + { + "foods":"meringue" + }, + { + "foods":"micronutrient" + }, + { + "foods":"milk" + }, + { + "foods":"milk chocolate" + }, + { + "foods":"milkshake" + }, + { + "foods":"millefeuille" + }, + { + "foods":"millet" + }, + { + "foods":"mince" + }, + { + "foods":"miner's lettuce" + }, + { + "foods":"mint" + }, + { + "foods":"miracle fruit" + }, + { + "foods":"miso soup" + }, + { + "foods":"mizuna greens" + }, + { + "foods":"mocha" + }, + { + "foods":"mochi" + }, + { + "foods":"molasses" + }, + { + "foods":"mole sauce" + }, + { + "foods":"moth bean" + }, + { + "foods":"mousse" + }, + { + "foods":"mozuku" + }, + { + "foods":"mozzarella" + }, + { + "foods":"muesli" + }, + { + "foods":"muesli bar" + }, + { + "foods":"muffin" + }, + { + "foods":"mulberry" + }, + { + "foods":"mung bean" + }, + { + "foods":"mushroom" + }, + { + "foods":"mussel" + }, + { + "foods":"mustard" + }, + { + "foods":"mutton" + }, + { + "foods":"nachos" + }, + { + "foods":"napa cabbage" + }, + { + "foods":"nectar" + }, + { + "foods":"nectarine" + }, + { + "foods":"new zealand spinach" + }, + { + "foods":"nibble" + }, + { + "foods":"nigiri" + }, + { + "foods":"noodle" + }, + { + "foods":"nopal" + }, + { + "foods":"nori" + }, + { + "foods":"nougat" + }, + { + "foods":"nugget" + }, + { + "foods":"nut" + }, + { + "foods":"nutmeg" + }, + { + "foods":"oat" + }, + { + "foods":"oatmeal" + }, + { + "foods":"oatmeal cereal" + }, + { + "foods":"oatmeal cookie" + }, + { + "foods":"octopus" + }, + { + "foods":"ogonori" + }, + { + "foods":"oil" + }, + { + "foods":"okra" + }, + { + "foods":"olive" + }, + { + "foods":"olive oil" + }, + { + "foods":"omelet" + }, + { + "foods":"omelette" + }, + { + "foods":"onion" + }, + { + "foods":"onion rings" + }, + { + "foods":"orache" + }, + { + "foods":"orange" + }, + { + "foods":"orange juice" + }, + { + "foods":"orange squash" + }, + { + "foods":"oregano" + }, + { + "foods":"oyster" + }, + { + "foods":"pad thai" + }, + { + "foods":"paddy" + }, + { + "foods":"paella" + }, + { + "foods":"pak choy" + }, + { + "foods":"pancake" + }, + { + "foods":"pancetta" + }, + { + "foods":"panna cotta" + }, + { + "foods":"papaya" + }, + { + "foods":"papillote" + }, + { + "foods":"paprika" + }, + { + "foods":"paracress" + }, + { + "foods":"parfait" + }, + { + "foods":"parmesan" + }, + { + "foods":"parsley" + }, + { + "foods":"parsnip" + }, + { + "foods":"passionfruit" + }, + { + "foods":"pasta" + }, + { + "foods":"pasta sauce" + }, + { + "foods":"pastrami" + }, + { + "foods":"pastry" + }, + { + "foods":"pasture" + }, + { + "foods":"pate" + }, + { + "foods":"pattypan squash" + }, + { + "foods":"pavlova" + }, + { + "foods":"pea" + }, + { + "foods":"peach" + }, + { + "foods":"peanut" + }, + { + "foods":"peanut butter" + }, + { + "foods":"peapod" + }, + { + "foods":"pear" + }, + { + "foods":"pearl onion" + }, + { + "foods":"pecan" + }, + { + "foods":"penne" + }, + { + "foods":"pepper" + }, + { + "foods":"peppercorn" + }, + { + "foods":"peppermint" + }, + { + "foods":"pepperoni" + }, + { + "foods":"perch" + }, + { + "foods":"persimmon" + }, + { + "foods":"pesto" + }, + { + "foods":"pho" + }, + { + "foods":"physalis" + }, + { + "foods":"pickle" + }, + { + "foods":"pickled cucumber" + }, + { + "foods":"pie" + }, + { + "foods":"pigeon pea" + }, + { + "foods":"pignut" + }, + { + "foods":"pike" + }, + { + "foods":"pilaf" + }, + { + "foods":"pilchard" + }, + { + "foods":"pine nut" + }, + { + "foods":"pineapple" + }, + { + "foods":"pistachio" + }, + { + "foods":"pita bread" + }, + { + "foods":"pizza" + }, + { + "foods":"plaice" + }, + { + "foods":"plain flour" + }, + { + "foods":"platter" + }, + { + "foods":"plum" + }, + { + "foods":"polenta" + }, + { + "foods":"pomegranate" + }, + { + "foods":"pomelo" + }, + { + "foods":"popcorn" + }, + { + "foods":"popovers" + }, + { + "foods":"poppy seed roll" + }, + { + "foods":"popsicle" + }, + { + "foods":"pork" + }, + { + "foods":"pork chop" + }, + { + "foods":"pork pie" + }, + { + "foods":"porridge" + }, + { + "foods":"pot roast" + }, + { + "foods":"potato" + }, + { + "foods":"potato onion" + }, + { + "foods":"poutine" + }, + { + "foods":"prairie turnip" + }, + { + "foods":"praline" + }, + { + "foods":"prawn" + }, + { + "foods":"pretzel" + }, + { + "foods":"prime rib" + }, + { + "foods":"prosciutto" + }, + { + "foods":"prune" + }, + { + "foods":"prussian asparagus" + }, + { + "foods":"pudding" + }, + { + "foods":"puff" + }, + { + "foods":"pumpernickel" + }, + { + "foods":"pumpkin" + }, + { + "foods":"pumpkin seeds" + }, + { + "foods":"puree" + }, + { + "foods":"purple mangosteen" + }, + { + "foods":"quiche" + }, + { + "foods":"quince" + }, + { + "foods":"quinoa" + }, + { + "foods":"radicchio" + }, + { + "foods":"radish" + }, + { + "foods":"raisin" + }, + { + "foods":"raisin bread" + }, + { + "foods":"raisin muffin" + }, + { + "foods":"rambutan" + }, + { + "foods":"ramen" + }, + { + "foods":"rapini" + }, + { + "foods":"raspberry" + }, + { + "foods":"ratatouille" + }, + { + "foods":"ration" + }, + { + "foods":"ravioli" + }, + { + "foods":"red cabbage" + }, + { + "foods":"red pepper" + }, + { + "foods":"red velvet cake" + }, + { + "foods":"red wine" + }, + { + "foods":"redcurrant" + }, + { + "foods":"relish" + }, + { + "foods":"rhubarb" + }, + { + "foods":"rib" + }, + { + "foods":"rice" + }, + { + "foods":"rice flake" + }, + { + "foods":"ricebean" + }, + { + "foods":"ricotta" + }, + { + "foods":"risotto" + }, + { + "foods":"roast beef" + }, + { + "foods":"roe" + }, + { + "foods":"romaine" + }, + { + "foods":"roquefort" + }, + { + "foods":"rose" + }, + { + "foods":"rosemary" + }, + { + "foods":"roulade" + }, + { + "foods":"rum" + }, + { + "foods":"runner bean" + }, + { + "foods":"russian dressing" + }, + { + "foods":"rutabaga" + }, + { + "foods":"rye" + }, + { + "foods":"rye bread" + }, + { + "foods":"saffron" + }, + { + "foods":"sage" + }, + { + "foods":"sake" + }, + { + "foods":"salad" + }, + { + "foods":"salad dressing" + }, + { + "foods":"salal" + }, + { + "foods":"salami" + }, + { + "foods":"salmon" + }, + { + "foods":"salmon steak" + }, + { + "foods":"salmonberry" + }, + { + "foods":"salsa" + }, + { + "foods":"salsify" + }, + { + "foods":"salt" + }, + { + "foods":"salted fish" + }, + { + "foods":"samosa" + }, + { + "foods":"samphire" + }, + { + "foods":"sandwich" + }, + { + "foods":"sardine" + }, + { + "foods":"sashimi" + }, + { + "foods":"satsuma" + }, + { + "foods":"sauce" + }, + { + "foods":"sauerkraut" + }, + { + "foods":"sausage" + }, + { + "foods":"sausage roll" + }, + { + "foods":"saute" + }, + { + "foods":"scallion" + }, + { + "foods":"scallop" + }, + { + "foods":"scampi" + }, + { + "foods":"scone" + }, + { + "foods":"scorzonera" + }, + { + "foods":"scrambled" + }, + { + "foods":"sea bass" + }, + { + "foods":"sea beet" + }, + { + "foods":"sea grape" + }, + { + "foods":"sea kale" + }, + { + "foods":"sea lettuce" + }, + { + "foods":"sea perch" + }, + { + "foods":"seafood" + }, + { + "foods":"seaweed salad" + }, + { + "foods":"sesame roll" + }, + { + "foods":"sesame seed" + }, + { + "foods":"shallot" + }, + { + "foods":"shandy" + }, + { + "foods":"shellfish" + }, + { + "foods":"sherbet" + }, + { + "foods":"shish kebab" + }, + { + "foods":"shortcake" + }, + { + "foods":"shrimp" + }, + { + "foods":"sierra leone bologi" + }, + { + "foods":"sirloin" + }, + { + "foods":"skewer" + }, + { + "foods":"skirret" + }, + { + "foods":"slaw" + }, + { + "foods":"sliced loaf" + }, + { + "foods":"smoked fish" + }, + { + "foods":"smoked salmon" + }, + { + "foods":"smoked sausage" + }, + { + "foods":"smoothie" + }, + { + "foods":"snap pea" + }, + { + "foods":"snapper" + }, + { + "foods":"snow pea" + }, + { + "foods":"soda" + }, + { + "foods":"soda bread" + }, + { + "foods":"sorbet" + }, + { + "foods":"sorghum" + }, + { + "foods":"sorrel" + }, + { + "foods":"souffle" + }, + { + "foods":"soup" + }, + { + "foods":"sour cabbage" + }, + { + "foods":"sour cream" + }, + { + "foods":"sourdough bread" + }, + { + "foods":"soy" + }, + { + "foods":"soy sauce" + }, + { + "foods":"spaghetti" + }, + { + "foods":"spaghetti bolognese" + }, + { + "foods":"spaghetti carbonara" + }, + { + "foods":"spaghetti sauce" + }, + { + "foods":"spam" + }, + { + "foods":"spare ribs" + }, + { + "foods":"spatula" + }, + { + "foods":"spearmint" + }, + { + "foods":"spices" + }, + { + "foods":"spinach" + }, + { + "foods":"split peas" + }, + { + "foods":"sponge cake" + }, + { + "foods":"spongecake" + }, + { + "foods":"spork" + }, + { + "foods":"spread" + }, + { + "foods":"spring onion" + }, + { + "foods":"spring rolls" + }, + { + "foods":"sprinkles" + }, + { + "foods":"sprouts" + }, + { + "foods":"spuds" + }, + { + "foods":"squash" + }, + { + "foods":"squash blossoms" + }, + { + "foods":"squid" + }, + { + "foods":"star fruit" + }, + { + "foods":"steak" + }, + { + "foods":"steak sauce" + }, + { + "foods":"stir-fry" + }, + { + "foods":"stout" + }, + { + "foods":"straw" + }, + { + "foods":"strawberry" + }, + { + "foods":"string bean" + }, + { + "foods":"strudel" + }, + { + "foods":"stuffing" + }, + { + "foods":"sturgeon" + }, + { + "foods":"succotash" + }, + { + "foods":"suet" + }, + { + "foods":"sultanas" + }, + { + "foods":"summer purslane" + }, + { + "foods":"summer squash" + }, + { + "foods":"sundae" + }, + { + "foods":"sunflower" + }, + { + "foods":"sunflower seeds" + }, + { + "foods":"supper" + }, + { + "foods":"sushi" + }, + { + "foods":"swede" + }, + { + "foods":"sweet" + }, + { + "foods":"sweet cherry" + }, + { + "foods":"sweet corn" + }, + { + "foods":"sweet pepper" + }, + { + "foods":"sweet potato" + }, + { + "foods":"sweet-and-sour sauce" + }, + { + "foods":"sweetmeat" + }, + { + "foods":"swiss chard" + }, + { + "foods":"swiss cheese" + }, + { + "foods":"syrup" + }, + { + "foods":"tabouli" + }, + { + "foods":"tacos" + }, + { + "foods":"tagliatelle" + }, + { + "foods":"tajine" + }, + { + "foods":"takoyaki" + }, + { + "foods":"tamale" + }, + { + "foods":"tamarillo" + }, + { + "foods":"tamarind" + }, + { + "foods":"tangerine" + }, + { + "foods":"tapioca" + }, + { + "foods":"taro" + }, + { + "foods":"tarragon" + }, + { + "foods":"tart" + }, + { + "foods":"tartare" + }, + { + "foods":"tartlet" + }, + { + "foods":"tarwi" + }, + { + "foods":"tatsoi" + }, + { + "foods":"tea" + }, + { + "foods":"tempura" + }, + { + "foods":"tenderloin" + }, + { + "foods":"tepary bean" + }, + { + "foods":"tequila" + }, + { + "foods":"teriyaki" + }, + { + "foods":"thyme" + }, + { + "foods":"tigernut" + }, + { + "foods":"tinda" + }, + { + "foods":"tiramisu" + }, + { + "foods":"toast" + }, + { + "foods":"toffee" + }, + { + "foods":"tofu" + }, + { + "foods":"tomatillo" + }, + { + "foods":"tomato" + }, + { + "foods":"tomato sauce" + }, + { + "foods":"tongue" + }, + { + "foods":"tonic" + }, + { + "foods":"torte" + }, + { + "foods":"tortellini" + }, + { + "foods":"tortilla chips" + }, + { + "foods":"tree onion" + }, + { + "foods":"trout" + }, + { + "foods":"truffle" + }, + { + "foods":"tuber" + }, + { + "foods":"tuna" + }, + { + "foods":"tuna tartare" + }, + { + "foods":"turkey" + }, + { + "foods":"turkey breast" + }, + { + "foods":"turmeric" + }, + { + "foods":"turnip" + }, + { + "foods":"tzatziki" + }, + { + "foods":"ugli fruit" + }, + { + "foods":"ulluco" + }, + { + "foods":"unleavened" + }, + { + "foods":"urad bean" + }, + { + "foods":"vanilla ice cream" + }, + { + "foods":"veal" + }, + { + "foods":"veal cutlet" + }, + { + "foods":"vegetable" + }, + { + "foods":"velvet bean" + }, + { + "foods":"venison" + }, + { + "foods":"vermicelli" + }, + { + "foods":"vermouth" + }, + { + "foods":"viennese" + }, + { + "foods":"vinaigrette" + }, + { + "foods":"vinegar" + }, + { + "foods":"vino" + }, + { + "foods":"vodka" + }, + { + "foods":"wafer" + }, + { + "foods":"waffle" + }, + { + "foods":"wakame" + }, + { + "foods":"walnut" + }, + { + "foods":"wasabi" + }, + { + "foods":"water" + }, + { + "foods":"water caltrop" + }, + { + "foods":"water chestnut" + }, + { + "foods":"water spinach" + }, + { + "foods":"watercress" + }, + { + "foods":"watermelon" + }, + { + "foods":"welsh onion" + }, + { + "foods":"wheat" + }, + { + "foods":"wheat bread" + }, + { + "foods":"wheat flake" + }, + { + "foods":"whey" + }, + { + "foods":"whipped cream" + }, + { + "foods":"whisky" + }, + { + "foods":"white bread" + }, + { + "foods":"white sauce" + }, + { + "foods":"white wine" + }, + { + "foods":"whoopie pie" + }, + { + "foods":"whortleberry" + }, + { + "foods":"wiener" + }, + { + "foods":"wild leek" + }, + { + "foods":"wine" + }, + { + "foods":"winged bean" + }, + { + "foods":"winter melon" + }, + { + "foods":"yam" + }, + { + "foods":"yao choy" + }, + { + "foods":"yardlong bean" + }, + { + "foods":"yarrow" + }, + { + "foods":"yeast" + }, + { + "foods":"yellow summer squash" + }, + { + "foods":"yogurt" + }, + { + "foods":"yolk" + }, + { + "foods":"zucchini" + } +] \ No newline at end of file diff --git a/app/src/main/ic_launcher-playstore.png b/app/src/main/ic_launcher-playstore.png new file mode 100644 index 0000000..a69954a Binary files /dev/null and b/app/src/main/ic_launcher-playstore.png differ diff --git a/app/src/main/java/com/arnav/pocdoc/AddDiary.java b/app/src/main/java/com/arnav/pocdoc/AddDiary.java new file mode 100644 index 0000000..510ca8a --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/AddDiary.java @@ -0,0 +1,330 @@ +package com.arnav.pocdoc; + +import android.annotation.SuppressLint; +import android.content.Intent; +import android.content.res.ColorStateList; +import android.graphics.Color; +import android.os.Bundle; +import android.util.Log; +import android.view.MenuItem; +import android.widget.Button; +import android.widget.LinearLayout; +import android.widget.TextView; +import android.widget.Toast; + +import com.androidbuts.multispinnerfilter.KeyPairBoolData; +import com.androidbuts.multispinnerfilter.MultiSpinnerSearch; +import com.arnav.pocdoc.Authentication.Login; +import com.arnav.pocdoc.FoodAllergy.FoodImageInput; +import com.arnav.pocdoc.maps.MapsActivity; +import com.google.android.material.bottomnavigation.BottomNavigationView; +import com.google.android.material.navigation.NavigationView; +import com.google.android.material.slider.Slider; +import com.google.android.material.textfield.TextInputEditText; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.database.DatabaseReference; +import com.google.firebase.database.FirebaseDatabase; + +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; + +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.*; + +import androidx.annotation.NonNull; +import androidx.appcompat.app.ActionBarDrawerToggle; +import androidx.appcompat.app.AlertDialog; +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; +import androidx.core.view.GravityCompat; +import androidx.drawerlayout.widget.DrawerLayout; +import es.dmoral.toasty.Toasty; +import okhttp3.*; + + + +public class AddDiary extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { + DrawerLayout drawerLayout; + NavigationView navigationView; + Toolbar toolbar; + ActionBarDrawerToggle toggle; + + + OkHttpClient client = new OkHttpClient(); + Request request; + + ArrayList symptoms = MainActivity.getSymptoms(); + ArrayList added_symptoms = new ArrayList<>(); + List symptoms_list; + + LinearLayout form_layout; + TextInputEditText title; + TextInputEditText body; + Slider pain_slider; + MultiSpinnerSearch symptom_spinner; + Button add_button; + BottomNavigationView bottomNavigationView; + + SimpleDateFormat date_formatter = new SimpleDateFormat("MM-dd-yyyy", Locale.getDefault()); + + private Map map; + private DatabaseReference mDatabase; + + private void addFirebase() { + mDatabase.setValue(map) + .addOnCompleteListener(task -> { + Toast.makeText(AddDiary.this, "Added Successfully", Toast.LENGTH_SHORT).show(); + Intent intent = new Intent(getApplicationContext(), Diary.class); + startActivity(intent); + finish(); + }) + .addOnFailureListener(e -> Toast.makeText(AddDiary.this, "Failed", Toast.LENGTH_SHORT).show()); + } + + @SuppressLint("ResourceType") + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_add_diary); + + form_layout = findViewById(R.id.diary_form); + title = findViewById(R.id.add_diary_title); + body = findViewById(R.id.add_diary_details); + pain_slider = findViewById(R.id.diary_pain_level); + symptom_spinner = findViewById(R.id.diary_symptom_spinner); + add_button = findViewById(R.id.diary_add_button); + bottomNavigationView = findViewById(R.id.bottom_navigation_diary_add); + + + drawerLayout = findViewById(R.id.drawerLayoutAddDiary); + navigationView = findViewById(R.id.nav_view_adddiary); + toolbar = findViewById(R.id.toolbar_adddiary); + + + bottomNavigationView.setSelectedItemId(R.id.add_diary_nav); + bottomNavigationView.setOnNavigationItemSelectedListener(navigationItemSelectedListener); + + setSupportActionBar(toolbar); + Objects.requireNonNull(getSupportActionBar()).setDisplayShowTitleEnabled(true); + navigationView.bringToFront(); + navigationView.setNavigationItemSelectedListener(this); + toggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.navigation_drawer_open, R.string.navigation_drawer_close); + drawerLayout.addDrawerListener(toggle); + toggle.syncState(); + + symptoms_list = new ArrayList<>(); + for (int i=0; i < symptoms.size(); i++) { + KeyPairBoolData key_pair = new KeyPairBoolData(); + key_pair.setId(i+1); + key_pair.setName(symptoms.get(i).name); + key_pair.setSelected(false); + symptoms_list.add(key_pair); + } + + pain_slider.addOnChangeListener((slider, value, fromUser) -> { + if (slider.getValue() <= 3) { + slider.setThumbTintList(ColorStateList.valueOf(Color.parseColor(getString(R.color.diary_green)))); + slider.setTrackActiveTintList(ColorStateList.valueOf(Color.parseColor(getString(R.color.diary_green)))); + } + else if (slider.getValue() <= 7) { + slider.setThumbTintList(ColorStateList.valueOf(Color.parseColor(getString(R.color.diary_yellow)))); + slider.setTrackActiveTintList(ColorStateList.valueOf(Color.parseColor(getString(R.color.diary_yellow)))); + } + else { + slider.setThumbTintList(ColorStateList.valueOf(Color.parseColor(getString(R.color.diary_red)))); + slider.setTrackActiveTintList(ColorStateList.valueOf(Color.parseColor(getString(R.color.diary_red)))); + } + }); + + symptom_spinner.setSearchEnabled(true); + symptom_spinner.setSearchHint("Symptom Name"); + symptom_spinner.setEmptyTitle(""); + symptom_spinner.setItems(symptoms_list, selectedItems -> { + added_symptoms = new ArrayList<>(); + for (KeyPairBoolData pair : selectedItems) { + for (Symptom symptom : symptoms) { + if (pair.getName().equals(symptom.getName())) { + added_symptoms.add(symptom); + break; + } + } + } + }); + + add_button.setOnClickListener(view -> { + if (!Objects.requireNonNull(title.getText()).toString().isEmpty()) { + String color; + if (pain_slider.getValue() <= 3) { + color = "@drawable/green"; + } else if (pain_slider.getValue() <= 7) { + color = "@drawable/yellow"; + } else { + color = "@drawable/red"; + } + mDatabase = FirebaseDatabase.getInstance().getReference().child("diary").child(Objects.requireNonNull(FirebaseAuth.getInstance().getUid())).push(); + ArrayList stringList = new ArrayList<>(); + for (Symptom added_symptom : added_symptoms) { + stringList.add(added_symptom.name); + } + ArrayList ids = new ArrayList<>(); + for (Symptom added_symptom : added_symptoms) { + ids.add(added_symptom.id); + } + + String notes = Objects.requireNonNull(body.getText()).toString(); + String empty = getString(R.string.empty_text); + + map = new HashMap<>(); + map.put("date", date_formatter.format(new Date())); + map.put("title", title.getText().toString()); + map.put("content", !notes.isEmpty() ? notes : empty); + map.put("color", color); + map.put("symptoms", stringList.size() > 0 ? stringList : '['+empty+']'); + + Log.d("names", stringList.toString()); + + JSONObject request_body = new JSONObject(); + try { + // TODO get gender % age from medical_id in Firebase and put it in request_body (the tags are "gender" and "age") + request_body.put("gender", "male"); + request_body.put("age", "20"); + request_body.put("symptoms", new JSONArray(ids)); + } + catch (JSONException e) { + e.printStackTrace(); + } + + request = new Request.Builder() + .url(getString(R.string.base_api_url)+"/diagnosis") + .post(RequestBody.create(request_body.toString(), MediaType.parse("application/json"))) + .build(); + client.newCall(request).enqueue(new Callback() { + @Override + public void onFailure(Call call, IOException e) { + e.printStackTrace(); + } + + @Override + public void onResponse(Call call, Response response) { + AddDiary.this.runOnUiThread(() -> { + try { + String tag = "diagnosis"; + StringBuilder diagnosis = new StringBuilder(); + JSONArray response_json = new JSONObject(response.body().string()).optJSONArray("conditions"); + for (int i = 0; i < Objects.requireNonNull(response_json).length(); i++) { + JSONObject condition = response_json.optJSONObject(i); + String name = condition.optString("name"); + double probability = condition.optDouble("probability"); + if (!diagnosis.toString().isEmpty()) { + diagnosis.append(", "); + } + diagnosis.append(String.format("%s (%.2f%%)", name, probability)); + } + if (response_json.length() > 0) { + map.put(tag, diagnosis.toString()); + + AlertDialog diagnosis_dialog = new AlertDialog.Builder(AddDiary.this) + .setTitle("Diagnosis") + .setView(R.layout.diagnosis_dialog) + .setPositiveButton("Close", (dialogInterface, i) -> addFirebase()) + .show(); + + TextView diagnosis_text = diagnosis_dialog.findViewById(R.id.diagnosis); + diagnosis_text.setText(getString(R.string.bullet_point)+diagnosis.toString().replace(", ", "\n\n"+getString(R.string.bullet_point))); + } + else { + map.put(tag, getString(R.string.empty_text)); + addFirebase(); + } + } + catch (JSONException | IOException e) { + e.printStackTrace(); + } + }); + } + }); + } + else if (title.getText().toString().isEmpty()) { + Toast.makeText(getApplicationContext(), "Please enter a title", Toast.LENGTH_SHORT).show(); + } + }); + } + + @Override + public boolean onNavigationItemSelected(@NonNull MenuItem item) { + int id = item.getItemId(); + switch (id) { + case R.id.nav_home: + startActivity(new Intent(getApplicationContext(), MainMenu.class)); + break; + case R.id.nav_signout: + FirebaseAuth.getInstance().signOut(); + Intent intent = new Intent(getApplicationContext(), Login.class); + startActivity(intent); + finish(); + Toasty.success(getApplicationContext(), "Logged Out!", Toast.LENGTH_LONG, true).show(); + //Toast.makeText(getApplicationContext(), "Signed Out",Toast.LENGTH_LONG).show(); + break; + case R.id.nav_diary: + Intent diary = new Intent(getApplicationContext(), Diary.class); + startActivity(diary); + break; + case R.id.nav_hospital: + startActivity(new Intent(getApplicationContext(), MapsActivity.class)); + break; + case R.id.nav_symptom: + startActivity(new Intent(getApplicationContext(), FoodImageInput.class)); + break; + case R.id.nav_remind: + startActivity(new Intent(getApplicationContext(), Reminder.class)); + break; + case R.id.nav_id: + startActivity(new Intent(getApplicationContext(), MedicalId.class)); + break; + case R.id.nav_share: + Intent sendIntent = new Intent(); + sendIntent.setAction(Intent.ACTION_SEND); + sendIntent.putExtra(Intent.EXTRA_TEXT, "Download PocDoc Today!"); + sendIntent.setType("text/plain"); + + Intent shareIntent = Intent.createChooser(sendIntent, null); + startActivity(shareIntent); + break; + } + drawerLayout.closeDrawer(GravityCompat.START); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (toggle.onOptionsItemSelected(item)) { + return true; + } + return super.onOptionsItemSelected(item); + } + + @Override + public void onBackPressed() { + + if (drawerLayout.isDrawerOpen(GravityCompat.START)) { + drawerLayout.closeDrawer(GravityCompat.START); + } else { + super.onBackPressed(); + } + } + + BottomNavigationView.OnNavigationItemSelectedListener navigationItemSelectedListener = item -> { + switch (item.getItemId()) { + case R.id.home_diary_nav: + Intent intent = new Intent(getApplicationContext(), Diary.class); + startActivity(intent); + finish(); + return true; + case R.id.add_diary_nav: + return true; + } + return false; + }; +} \ No newline at end of file diff --git a/app/src/main/java/com/arnav/pocdoc/AddReminder.java b/app/src/main/java/com/arnav/pocdoc/AddReminder.java new file mode 100644 index 0000000..40f0438 --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/AddReminder.java @@ -0,0 +1,84 @@ +package com.arnav.pocdoc; + +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; +import android.widget.TimePicker; +import android.widget.Toast; + +import com.google.android.material.textfield.TextInputEditText; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.database.DatabaseReference; +import com.google.firebase.database.FirebaseDatabase; +import com.jaredrummler.materialspinner.MaterialSpinner; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +import androidx.fragment.app.Fragment; +import ca.antonious.materialdaypicker.MaterialDayPicker; + + +public class AddReminder extends Fragment { + TextInputEditText name, dosage; + MaterialSpinner pill_type_spinner; + MaterialDayPicker day_picker; + TimePicker time_picker; + Button add; + + String[] pill_types; + + DatabaseReference database; + + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + pill_types = getResources().getStringArray(R.array.medication_types); + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { + View view = inflater.inflate(R.layout.fragment_add_reminder, container, false); + + name = view.findViewById(R.id.add_reminder_medication_name); + dosage = view.findViewById(R.id.add_reminder_medication_dosage); + pill_type_spinner = view.findViewById(R.id.add_reminder_spinner); + day_picker = view.findViewById(R.id.add_reminder_day_picker); + time_picker = view.findViewById(R.id.add_reminder_time_picker); + add = view.findViewById(R.id.add_reminder_add_button); + + database = FirebaseDatabase.getInstance().getReference("reminder").child(Objects.requireNonNull(FirebaseAuth.getInstance().getUid())); + + pill_type_spinner.setItems(pill_types); + + add.setOnClickListener(view1 -> { + String pill_type = pill_types[pill_type_spinner.getSelectedIndex()]; + List selected_days = day_picker.getSelectedDays(); + + if (name.getText() != null && dosage.getText() != null && selected_days.size() > 0) { + ArrayList days = new ArrayList<>(); + for (MaterialDayPicker.Weekday day : selected_days) { + days.add(day.name()); + } + ReminderItem adding_reminder = new ReminderItem(name.getText().toString(), pill_type, dosage.getText().toString(), days.toString(), time_picker.getHour(), time_picker.getMinute(), "@drawable/"+(!pill_type.equals("blank") ? pill_type.toLowerCase() : "medication_blank")); + + String id = database.push().getKey(); + + database.child(Objects.requireNonNull(id)).setValue(adding_reminder); + + Reminder.scheduleNotification(id); + + Toast.makeText(getContext(), "New Reminder Added", Toast.LENGTH_SHORT).show(); + } + else { + Toast.makeText(getContext(), "Please answer all fields", Toast.LENGTH_SHORT).show(); + } + }); + + return view; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/arnav/pocdoc/Authentication/Login.java b/app/src/main/java/com/arnav/pocdoc/Authentication/Login.java new file mode 100644 index 0000000..f070749 --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/Authentication/Login.java @@ -0,0 +1,194 @@ +package com.arnav.pocdoc.Authentication; + +import android.content.Intent; +import android.os.Bundle; +import android.text.TextUtils; +import android.util.Log; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.Toast; + +import androidx.appcompat.app.AppCompatActivity; +import com.arnav.pocdoc.MainMenu; +import com.arnav.pocdoc.R; + +import com.google.android.gms.auth.api.signin.GoogleSignIn; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.auth.api.signin.GoogleSignInClient; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +import com.google.android.gms.common.SignInButton; +import com.google.android.gms.common.api.ApiException; +import com.google.android.gms.tasks.Task; +import com.google.firebase.auth.AuthCredential; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.auth.FirebaseUser; +import com.google.firebase.auth.GoogleAuthProvider; +import es.dmoral.toasty.Toasty; +import me.zhanghai.android.materialprogressbar.MaterialProgressBar; + + +public class Login extends AppCompatActivity { + private static final String TAG = "EmailPassword"; + Button register, signIn; + MaterialProgressBar bar; + EditText email, password; + SignInButton google; + private FirebaseAuth mAuth; + private GoogleSignInClient mGoogleSignInClient; + private static final int RC_SIGN_IN = 9001; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_login); + + register = findViewById(R.id.noaccount); + signIn = findViewById(R.id.yes); + + bar = findViewById(R.id.bar); + + email = findViewById(R.id.email_login); + password = findViewById(R.id.password_login); + google = findViewById(R.id.sign_in_button); + + GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) + .requestIdToken(getString(R.string.default_web_client_id)) + .requestEmail() + .build(); + + mGoogleSignInClient = GoogleSignIn.getClient(this, gso); + + mAuth = FirebaseAuth.getInstance(); + + register.setOnClickListener(view -> { + bar.setVisibility(View.VISIBLE); + Intent intent = new Intent(getApplicationContext(), Registration.class); + startActivity(intent); + bar.setVisibility(View.GONE); + }); + signIn.setOnClickListener(view -> signIn()); + google.setOnClickListener(view -> { + bar.setVisibility(View.VISIBLE); + signInWithGoogle(); + }); + } + + private void signIn() { + String emailInput = email.getText().toString(); + String passwordInput = password.getText().toString(); + Log.d(TAG, "signIn:" + emailInput); + if (!validateForm()) { + return; + } + + bar.setVisibility(View.VISIBLE); + mAuth.signInWithEmailAndPassword(emailInput, passwordInput) + .addOnCompleteListener(this, task -> { + if (task.isSuccessful()) { + // Sign in success, update UI with the signed-in user's information + Log.d(TAG, "signInWithEmail:success"); + FirebaseUser user = mAuth.getCurrentUser(); + Intent intent = new Intent(getApplicationContext(), MainMenu.class); + intent.putExtra("user", user); + startActivity(intent); + Toasty.success(getApplicationContext(), "Logged In Successfully", Toast.LENGTH_SHORT, true).show(); + finish(); + } else { + // If sign in fails, display a message to the user. + Log.w(TAG, "signInWithEmail:failure", task.getException()); + Toasty.error(Login.this, "Authentication failed.", + Toast.LENGTH_SHORT, true).show(); + } + + + bar.setVisibility(View.GONE); + }); + } + + @Override + public void onActivityResult(int requestCode, int resultCode, Intent data) { + super.onActivityResult(requestCode, resultCode, data); + + // Result returned from launching the Intent from GoogleSignInApi.getSignInIntent(...); + if (requestCode == RC_SIGN_IN) { + Task task = GoogleSignIn.getSignedInAccountFromIntent(data); + try { + // Google Sign In was successful, authenticate with Firebase + GoogleSignInAccount account = task.getResult(ApiException.class); + Log.d(TAG, "firebaseAuthWithGoogle:" + account.getId()); + firebaseAuthWithGoogle(account.getIdToken()); + } catch (ApiException e) { + // Google Sign In failed, update UI appropriately + Log.w(TAG, "Google sign in failed", e); + // [START_EXCLUDE] + // [END_EXCLUDE] + } + } + } + + private void firebaseAuthWithGoogle(String idToken) { + AuthCredential credential = GoogleAuthProvider.getCredential(idToken, null); + mAuth.signInWithCredential(credential) + .addOnCompleteListener(this, task -> { + if (task.isSuccessful()) { + // Sign in success, update UI with the signed-in user's information + Log.d(TAG, "signInWithCredential:success"); + FirebaseUser user = mAuth.getCurrentUser(); + Intent intent = new Intent(getApplicationContext(), MainMenu.class); + intent.putExtra("user", user); + Toasty.success(getApplicationContext(), "Authentication Successful.", Toast.LENGTH_SHORT, true).show(); + startActivity(intent); + finish(); + } else { + // If sign in fails, display a message to the user. + Log.w(TAG, "signInWithCredential:failure", task.getException()); + Toasty.error(getApplicationContext(), "Authentication Failed.", Toast.LENGTH_SHORT, true).show(); + } + + // ... + }); + } + + private void signInWithGoogle(){ + Intent signInIntent = mGoogleSignInClient.getSignInIntent(); + startActivityForResult(signInIntent, RC_SIGN_IN); + } + + + public void forgetPassword(View view) { + String emailInput = email.getText().toString(); + if (TextUtils.isEmpty(emailInput)) { + email.setError("Required."); + return; + } + + mAuth.sendPasswordResetEmail(emailInput) + .addOnCompleteListener(task -> { + if (task.isSuccessful()) { + Log.d(TAG, "Email sent."); + Toasty.info(getApplicationContext(), "Password Reset Sent", Toast.LENGTH_LONG, true).show(); + } + }); + + } + + private boolean validateForm() { + boolean valid = true; + String emailInput = email.getText().toString(); + if (TextUtils.isEmpty(emailInput)) { + email.setError("Required."); + valid = false; + } else { + email.setError(null); + } + + String passwordInput = password.getText().toString(); + if (passwordInput.isEmpty()) { + password.setError("Required."); + valid = false; + } else { + password.setError(null); + } + return valid; + } +} diff --git a/app/src/main/java/com/arnav/pocdoc/Authentication/Registration.java b/app/src/main/java/com/arnav/pocdoc/Authentication/Registration.java new file mode 100644 index 0000000..8b3725c --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/Authentication/Registration.java @@ -0,0 +1,235 @@ +package com.arnav.pocdoc.Authentication; + +import android.content.Intent; +import android.os.Bundle; +import android.text.TextUtils; +import android.util.Log; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.Toast; +import androidx.appcompat.app.AppCompatActivity; +import com.arnav.pocdoc.Onboarding.Introduction; +import com.arnav.pocdoc.R; +import com.google.android.gms.auth.api.signin.GoogleSignIn; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.auth.api.signin.GoogleSignInClient; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +import com.google.android.gms.common.SignInButton; +import com.google.android.gms.common.api.ApiException; +import com.google.android.gms.tasks.Task; +import com.google.firebase.auth.AuthCredential; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.auth.FirebaseUser; +import com.google.firebase.auth.GoogleAuthProvider; +import com.google.firebase.database.DatabaseReference; +import com.google.firebase.database.FirebaseDatabase; +import es.dmoral.toasty.Toasty; +import me.zhanghai.android.materialprogressbar.MaterialProgressBar; + +import java.util.Random; + +public class Registration extends AppCompatActivity { + private static final String TAG = "EmailPassword"; + Button login, register; + MaterialProgressBar bar; + EditText email, password, firstName, lastName, confirmPassword; + SignInButton google; + private FirebaseAuth mAuth; + private GoogleSignInClient mGoogleSignInClient; + private static final int RC_SIGN_IN = 9001; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_registration); + + login = findViewById(R.id.haveaccount); + register = findViewById(R.id.register); + + bar = findViewById(R.id.regbar); + + email = findViewById(R.id.email_reg); + password = findViewById(R.id.password_reg); + firstName = findViewById(R.id.firstname); + lastName = findViewById(R.id.lastname); + confirmPassword = findViewById(R.id.confirm); + google = findViewById(R.id.sign_up_button); + + GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) + .requestIdToken(getString(R.string.default_web_client_id)) + .requestEmail() + .build(); + + mGoogleSignInClient = GoogleSignIn.getClient(this, gso); + + mAuth = FirebaseAuth.getInstance(); + + register.setOnClickListener(view -> createAccount()); + + google.setOnClickListener(view -> { + bar.setVisibility(View.VISIBLE); + signUpWithGoogle(); + }); + + login.setOnClickListener(view -> { + bar.setVisibility(View.VISIBLE); + Intent intent = new Intent(getApplicationContext(), Login.class); + startActivity(intent); + bar.setVisibility(View.GONE); + }); + + } + + @Override + public void onActivityResult(int requestCode, int resultCode, Intent data) { + super.onActivityResult(requestCode, resultCode, data); + + // Result returned from launching the Intent from GoogleSignInApi.getSignInIntent(...); + if (requestCode == RC_SIGN_IN) { + Task task = GoogleSignIn.getSignedInAccountFromIntent(data); + try { + // Google Sign In was successful, authenticate with Firebase + GoogleSignInAccount account = task.getResult(ApiException.class); + Log.d(TAG, "firebaseAuthWithGoogle:" + account.getId()); + initializeMedicalID(account.getEmail()); + firebaseAuthWithGoogle(account.getIdToken()); + } catch (ApiException e) { + // Google Sign In failed, update UI appropriately + Log.w(TAG, "Google sign in failed", e); + } + } + } + + private void firebaseAuthWithGoogle(String idToken) { + AuthCredential credential = GoogleAuthProvider.getCredential(idToken, null); + mAuth.signInWithCredential(credential) + .addOnCompleteListener(this, task -> { + if (task.isSuccessful()) { + // Sign in success, update UI with the signed-in user's information + Log.d(TAG, "signInWithCredential:success"); + FirebaseUser user = mAuth.getCurrentUser(); + Toasty.success(getApplicationContext(), "You Registered Successfully", Toast.LENGTH_SHORT, true).show(); + Intent intent = new Intent(getApplicationContext(), Introduction.class); + intent.putExtra("user", user); + startActivity(intent); + bar.setVisibility(View.GONE); + finish(); + } else { + // If sign in fails, display a message to the user. + Log.w(TAG, "signInWithCredential:failure", task.getException()); + bar.setVisibility(View.GONE); + Toasty.error(getApplicationContext(), "Sign Up Failed.", Toast.LENGTH_SHORT, true).show(); + } + }); + } + + private void initializeMedicalID(String email) { + // Initialize values for Medical ID + String empty_text = getString(R.string.empty_text); + DatabaseReference reference = FirebaseDatabase.getInstance().getReference().child("medical_id").child(FirebaseAuth.getInstance().getUid()); + + Random generator = new Random(); + StringBuilder id = new StringBuilder(); + for (int i=0; i < 8; i++) { + id.append(generator.nextInt(10)); + } + + reference.child("patientID").setValue(id.toString()); + reference.child("location").setValue(empty_text); + reference.child("email").setValue(email); + reference.child("insurance").setValue(empty_text); + + reference.child("age").setValue("20"); + reference.child("gender").setValue("male"); + reference.child("height").setValue(empty_text); + reference.child("weight").setValue(empty_text); + reference.child("bloodType").setValue(empty_text); + reference.child("race").setValue(empty_text); + + reference.child("conditions").setValue(empty_text); + reference.child("familyHistory").setValue(empty_text); + reference.child("bloodPressure").setValue(empty_text); + reference.child("sugar").setValue(empty_text); + reference.child("allergies").setValue(empty_text); + reference.child("habits").setValue(empty_text); + reference.child("otc").setValue(empty_text); + reference.child("rx").setValue(empty_text); + } + + private void createAccount(){ + String emailInput = email.getText().toString(); + String passwordInput = password.getText().toString(); + Log.d(TAG, "createAccount:" + emailInput); + if (!validateForm()) { + return; + } + + bar.setVisibility(View.VISIBLE); + mAuth.createUserWithEmailAndPassword(emailInput, passwordInput) + .addOnCompleteListener(this, task -> { + if (task.isSuccessful()) { + // Sign in success, update UI with the signed-in user's information + Log.d(TAG, "createUserWithEmail:success"); + FirebaseUser user = mAuth.getCurrentUser(); + + initializeMedicalID(emailInput); + + Intent intent = new Intent(getApplicationContext(), Introduction.class); + intent.putExtra("user", user); + startActivity(intent); + bar.setVisibility(View.GONE); + Toasty.success(getApplicationContext(), "Signed Up Successfully.", Toast.LENGTH_SHORT, true).show(); + finish(); + } else { + // If sign in fails, display a message to the user. + Log.w(TAG, "createUserWithEmail:failure", task.getException()); + bar.setVisibility(View.GONE); + Toasty.error(Registration.this, "Authentication failed.", Toast.LENGTH_SHORT, true).show(); + } + bar.setVisibility(View.GONE); + }); + } + + private void signUpWithGoogle(){ + Intent signInIntent = mGoogleSignInClient.getSignInIntent(); + startActivityForResult(signInIntent, RC_SIGN_IN); + } + + private boolean validateForm() { + boolean valid = true; + + String emailInput = email.getText().toString(); + if (TextUtils.isEmpty(emailInput)) { + email.setError("Required."); + valid = false; + } else { + email.setError(null); + } + + String passwordInput = password.getText().toString(); + if (passwordInput.isEmpty()) { + password.setError("Required."); + valid = false; + } else { + password.setError(null); + } + + String confirmInput = confirmPassword.getText().toString(); + if (confirmInput.isEmpty()){ + confirmPassword.setError("Required."); + valid = false; + } else { + confirmPassword.setError(null); + } + + if (!passwordInput.equals(confirmInput)){ + confirmPassword.setError("Password Does Not Match"); + valid = false; + } else { + confirmPassword.setError(null); + } + + + return valid; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/arnav/pocdoc/Diary.java b/app/src/main/java/com/arnav/pocdoc/Diary.java new file mode 100644 index 0000000..f2c4468 --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/Diary.java @@ -0,0 +1,238 @@ +package com.arnav.pocdoc; + +import android.annotation.SuppressLint; +import android.content.Intent; +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.ViewGroup; +import android.view.animation.AnimationUtils; +import android.widget.EditText; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import android.widget.Toast; + +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.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; +import es.dmoral.toasty.Toasty; + +import com.arnav.pocdoc.Authentication.Login; +import com.arnav.pocdoc.FoodAllergy.FoodImageInput; +import com.arnav.pocdoc.maps.MapsActivity; +import com.firebase.ui.database.FirebaseRecyclerAdapter; +import com.firebase.ui.database.FirebaseRecyclerOptions; +import com.google.android.material.bottomnavigation.BottomNavigationView; +import com.google.android.material.dialog.MaterialAlertDialogBuilder; +import com.google.android.material.navigation.NavigationView; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.database.FirebaseDatabase; +import com.google.firebase.database.Query; + +import java.util.Objects; + +public class Diary extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { + + RecyclerView DiaryRecyclerView; + @SuppressLint("StaticFieldLeak") + EditText search; + BottomNavigationView bottomNavigationView; + DrawerLayout drawerLayout; + NavigationView navigationView; + Toolbar toolbar; + ActionBarDrawerToggle toggle; + + private FirebaseRecyclerAdapter adapter; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_diary); + + DiaryRecyclerView = findViewById(R.id.diary_rw); + search = findViewById(R.id.search_diary_recycle); + + bottomNavigationView = findViewById(R.id.bottom_navigation_diary); + bottomNavigationView.setSelectedItemId(R.id.home_diary_nav); + bottomNavigationView.setOnNavigationItemSelectedListener(navigationItemSelectedListener); + drawerLayout = findViewById(R.id.drawer_layout_diary); + navigationView = findViewById(R.id.nav_view_diary); + toolbar = findViewById(R.id.toolbar_diary); + + setSupportActionBar(toolbar); + Objects.requireNonNull(getSupportActionBar()).setDisplayShowTitleEnabled(true); + navigationView.bringToFront(); + navigationView.setNavigationItemSelectedListener(this); + toggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.navigation_drawer_open, R.string.navigation_drawer_close); + drawerLayout.addDrawerListener(toggle); + toggle.syncState(); + navigationView.setCheckedItem(R.id.nav_diary); + + DiaryRecyclerView.setLayoutManager(new LinearLayoutManager(this)); + DiaryRecyclerView.setHasFixedSize(true); + fetch(); + + } + + BottomNavigationView.OnNavigationItemSelectedListener navigationItemSelectedListener = item -> { + switch (item.getItemId()) { + case R.id.home_diary_nav: + return true; + case R.id.add_diary_nav: + Intent intent = new Intent(getApplicationContext(), AddDiary.class); + startActivity(intent); + return true; + } + return false; + }; + + private void fetch(){ + Query query = FirebaseDatabase.getInstance() + .getReference() + .child("diary").child(Objects.requireNonNull(FirebaseAuth.getInstance().getUid())); + + FirebaseRecyclerOptions options = + new FirebaseRecyclerOptions.Builder() + .setQuery(query, snapshot -> new DiaryItem( + Objects.requireNonNull(snapshot.child("title").getValue()).toString(), + Objects.requireNonNull(snapshot.child("content").getValue()).toString(), + Objects.requireNonNull(snapshot.child("date").getValue()).toString(), + Objects.requireNonNull(snapshot.child("color").getValue()).toString(), + Objects.requireNonNull(snapshot.child("symptoms").getValue()).toString(), + Objects.requireNonNull(snapshot.child("diagnosis").getValue()).toString())) + .build(); + + + adapter = new FirebaseRecyclerAdapter(options) { + @NonNull + @Override + public DiaryViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { + View layout; + layout = LayoutInflater.from(getApplicationContext()).inflate(R.layout.item_card, parent, false); + return new DiaryViewHolder(layout); + } + + @Override + public void onBindViewHolder(@NonNull DiaryViewHolder holder, int position, DiaryItem diaryItem) { + holder.status.setAnimation(AnimationUtils.loadAnimation(getApplicationContext(), R.anim.fade_transition_animation)); + holder.container.setAnimation(AnimationUtils.loadAnimation(getApplicationContext(), R.anim.fade_scale_animation)); + + holder.title.setText(diaryItem.getTitle()); + holder.content.setText(diaryItem.getContent()); + holder.date.setText(diaryItem.getDate()); + holder.status.setImageResource(getResources().getIdentifier(diaryItem.alertLevel , "drawable", getPackageName())); + + String symptoms = diaryItem.getSymptoms(); + symptoms = symptoms.substring(1, symptoms.length()-1); + + StringBuilder details = new StringBuilder(); + details.append("Date: ").append(diaryItem.getDate()) + .append("\n\nTitle: ").append(diaryItem.getTitle()) + .append("\n\nNotes: ").append(diaryItem.getContent()) + .append("\n\nExperienced Symptoms: ").append(symptoms) + .append("\n\nDiagnosis: ").append(diaryItem.getDiagnosis()); + + holder.itemView.setOnClickListener(view -> new MaterialAlertDialogBuilder(Diary.this) + .setTitle("Details") + .setMessage(details) + .setIcon(getResources().getIdentifier(diaryItem.alertLevel , "drawable", getPackageName())) + .setPositiveButton("OK", null) + .show()); + } + }; + DiaryRecyclerView.setAdapter(adapter); + } + @Override + protected void onStart() { + super.onStart(); + adapter.startListening(); + } + + @Override + protected void onStop() { + super.onStop(); + adapter.stopListening(); + } + public static class DiaryViewHolder extends RecyclerView.ViewHolder{ + TextView title, content, date; + ImageView status; + RelativeLayout container; + + public DiaryViewHolder(@NonNull View itemView) { + super(itemView); + title = itemView.findViewById(R.id.tv_title); + content = itemView.findViewById(R.id.tv_desc); + date = itemView.findViewById(R.id.tv_date); + status = itemView.findViewById(R.id.img_status_card); + container = itemView.findViewById(R.id.diary_content_container); + } + } + + @Override + public boolean onNavigationItemSelected(@NonNull MenuItem item) { + int id = item.getItemId(); + switch (id) { + case R.id.nav_home: + startActivity(new Intent(getApplicationContext(), MainMenu.class)); + break; + case R.id.nav_signout: + FirebaseAuth.getInstance().signOut(); + Intent intent = new Intent(getApplicationContext(), Login.class); + startActivity(intent); + finish(); + Toasty.success(getApplicationContext(), "Logged Out!", Toast.LENGTH_LONG, true).show(); + //Toast.makeText(getApplicationContext(), "Signed Out",Toast.LENGTH_LONG).show(); + break; + case R.id.nav_diary: + break; + case R.id.nav_hospital: + startActivity(new Intent(getApplicationContext(), MapsActivity.class)); + break; + case R.id.nav_symptom: + startActivity(new Intent(getApplicationContext(), FoodImageInput.class)); + break; + case R.id.nav_remind: + startActivity(new Intent(getApplicationContext(), Reminder.class)); + break; + case R.id.nav_id: + startActivity(new Intent(getApplicationContext(), MedicalId.class)); + break; + case R.id.nav_share: + Intent sendIntent = new Intent(); + sendIntent.setAction(Intent.ACTION_SEND); + sendIntent.putExtra(Intent.EXTRA_TEXT, "Download PocDoc Today!"); + sendIntent.setType("text/plain"); + + Intent shareIntent = Intent.createChooser(sendIntent, null); + startActivity(shareIntent); + break; + } + drawerLayout.closeDrawer(GravityCompat.START); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (toggle.onOptionsItemSelected(item)) { + return true; + } + return super.onOptionsItemSelected(item); + } + + @Override + public void onBackPressed() { + + if (drawerLayout.isDrawerOpen(GravityCompat.START)) { + drawerLayout.closeDrawer(GravityCompat.START); + } else { + super.onBackPressed(); + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/arnav/pocdoc/DiaryItem.java b/app/src/main/java/com/arnav/pocdoc/DiaryItem.java new file mode 100644 index 0000000..dd6f361 --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/DiaryItem.java @@ -0,0 +1,62 @@ +package com.arnav.pocdoc; + +class DiaryItem { + String title, content, date, alertLevel, symptoms, diagnosis; + + public DiaryItem(String title, String content, String date, String alertLevel, String symptoms, String diagnosis) { + this.title = title; + this.content = content; + this.date = date; + this.alertLevel = alertLevel; + this.symptoms = symptoms; + this.diagnosis = diagnosis; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public String getAlertLevel() { + return alertLevel; + } + + public void setAlertLevel(String alertLevel) { + this.alertLevel = alertLevel; + } + + public String getSymptoms() { + return symptoms; + } + + public void setSymptoms(String symptomsRecycler) { + this.symptoms = symptomsRecycler; + } + + public String getDiagnosis() { + return diagnosis; + } + + public void setDiagnosis(String diagnosis) { + this.diagnosis = diagnosis; + } +} diff --git a/app/src/main/java/com/arnav/pocdoc/FoodAllergy/FoodAllergyResult.java b/app/src/main/java/com/arnav/pocdoc/FoodAllergy/FoodAllergyResult.java new file mode 100644 index 0000000..ff54fc7 --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/FoodAllergy/FoodAllergyResult.java @@ -0,0 +1,300 @@ +package com.arnav.pocdoc.FoodAllergy; + +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +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 es.dmoral.toasty.Toasty; +import io.grpc.Channel; + +import android.Manifest; +import android.annotation.SuppressLint; +import android.content.Context; +import android.content.Intent; +import android.content.pm.PackageManager; +import android.database.Cursor; +import android.net.Uri; +import android.os.AsyncTask; +import android.os.Build; +import android.os.Bundle; +import android.provider.MediaStore; +import android.util.Log; +import android.view.MenuItem; +import android.view.View; +import android.widget.Button; +import android.widget.ImageView; +import android.widget.ProgressBar; +import android.widget.TextView; +import android.widget.Toast; + +import com.arnav.pocdoc.Authentication.Login; +import com.arnav.pocdoc.Diary; +import com.arnav.pocdoc.MainMenu; +import com.arnav.pocdoc.MedicalId; +import com.arnav.pocdoc.R; +import com.arnav.pocdoc.Reminder; +import com.arnav.pocdoc.maps.MapsActivity; +import com.clarifai.channel.ClarifaiChannel; +import com.clarifai.credentials.ClarifaiCallCredentials; +import com.clarifai.grpc.api.Concept; +import com.clarifai.grpc.api.Data; +import com.clarifai.grpc.api.Image; +import com.clarifai.grpc.api.Input; +import com.clarifai.grpc.api.MultiOutputResponse; +import com.clarifai.grpc.api.PostModelOutputsRequest; +import com.clarifai.grpc.api.V2Grpc; +import com.clarifai.grpc.api.status.StatusCode; +import com.google.android.material.navigation.NavigationView; +import com.google.firebase.auth.FirebaseAuth; +import com.google.protobuf.ByteString; + +import java.io.File; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +public class FoodAllergyResult extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { + Button results, retry; + ImageView food_image; + ProgressBar progress; + TextView ai_result; + NavigationView navigationView; + DrawerLayout drawerLayout; + Toolbar toolbar; + ActionBarDrawerToggle toggle; + public static final List list = FoodImageInput.listArray; + public static final ArrayList percentage = new ArrayList<>(); + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_food_allergy_result); + results = findViewById(R.id.results); + retry = findViewById(R.id.retry_allergy); + food_image = findViewById(R.id.food_image_results); + ai_result = findViewById(R.id.results_food); + progress = findViewById(R.id.progress_ai); + + Intent intent = getIntent(); + String imageUri = intent.getStringExtra("image"); + + drawerLayout = findViewById(R.id.drawer_layout_foodout); + navigationView = findViewById(R.id.nav_view_foodout); + toolbar = findViewById(R.id.toolbar_foodout); + + setSupportActionBar(toolbar); + Objects.requireNonNull(getSupportActionBar()).setDisplayShowTitleEnabled(true); + navigationView.bringToFront(); + navigationView.setNavigationItemSelectedListener(this); + toggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.navigation_drawer_open, R.string.navigation_drawer_close); + drawerLayout.addDrawerListener(toggle); + toggle.syncState(); + + food_image.setImageURI(Uri.parse(imageUri)); + + retry.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent = new Intent(getApplicationContext(), FoodImageInput.class); + startActivity(intent); + finish(); + } + }); + results.setOnClickListener(new View.OnClickListener() { + @RequiresApi(api = Build.VERSION_CODES.O) + @Override + public void onClick(View view) { + ClarifaiPost asyncTask = new ClarifaiPost(); + asyncTask.execute(); + } + }); + } + + @SuppressLint("StaticFieldLeak") + public class ClarifaiPost extends AsyncTask> { + + @Override + protected void onPreExecute() { + super.onPreExecute(); + progress.setVisibility(View.VISIBLE); + + if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) + != PackageManager.PERMISSION_GRANTED) { + + // Should we show an explanation? + if (shouldShowRequestPermissionRationale( + Manifest.permission.WRITE_EXTERNAL_STORAGE)) { + // Explain to the user why we need to read the contacts + Toast.makeText(getApplicationContext(), "Cannot Analyze without Permission", Toast.LENGTH_LONG).show(); + return; + } + + requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, + 1); + } + } + + @RequiresApi(api = Build.VERSION_CODES.O) + @Override + protected ArrayList doInBackground(Void... voids) { + String imageUri = getIntent().getExtras().getString("image"); + File imageFile = new File(Objects.requireNonNull(Uri.parse(imageUri).getPath())); + if (imageUri == null) { + Toast.makeText(getApplicationContext(), "Not Found", Toast.LENGTH_LONG).show(); + return null; + } + Uri image = Uri.parse(imageUri); + Log.i("URI", image.toString()); + Path pathNew = Paths.get(getRealPathFromUri(getApplicationContext(), image)); + Log.i("URI", pathNew.toString()); + + Channel channel = ClarifaiChannel.INSTANCE.getJsonChannel(); + V2Grpc.V2BlockingStub stub = V2Grpc.newBlockingStub(channel) + .withCallCredentials(new ClarifaiCallCredentials("YOUR_CLARIFAI_CREDENTIALS")); + + MultiOutputResponse response = null; + try { + response = stub.postModelOutputs( + PostModelOutputsRequest.newBuilder() + .setModelId("YOUR_MODEL_ID") + .addInputs( + Input.newBuilder().setData( + Data.newBuilder().setImage( + Image.newBuilder().setBase64(ByteString.copyFrom(Files.readAllBytes(pathNew))) + ) + ) + ) + .build()); + } catch (IOException e) { + e.printStackTrace(); + } + if (response.getStatus().getCode() != StatusCode.SUCCESS) { + throw new RuntimeException("Request failed, status: " + response.getStatus()); + } + + final ArrayList matches = new ArrayList<>(); + for (Concept c : response.getOutputs(0).getData().getConceptsList()) { + + for (int i = 0; i < response.getOutputsCount(); i++) { + + matches.add(c.getName().toUpperCase()); + percentage.add(Math.round(c.getValue() * 100) + "%"); + } + + String s = String.format("%12s: %,.2f", c.getName(), c.getValue()); + Log.i("ANALYSIS", s); + } + return matches; + } + + @Override + protected void onPostExecute(ArrayList matches) { + super.onPostExecute(matches); + + if (matches.size() == 0 || matches.isEmpty()){ + Toast.makeText(getApplicationContext(), "Error", Toast.LENGTH_LONG).show(); + progress.setVisibility(View.GONE); + } else { + int arraySize = matches.size(); + ai_result.setText(""); + for (int i = 0; i < arraySize; i++) { + for (int j = 0; j < list.size(); j++) { + if (list.get(j).toUpperCase().contains(matches.get(i))){ + ai_result.append("There is a possibility of: " + matches.get(i) + " at a " + percentage.get(i)); + ai_result.append("\n"); + } + } + } + if (ai_result == null || ai_result.length() == 0) { + ai_result.append("There are no visible allergic threats"); + } + progress.setVisibility(View.GONE); + } + + } + } + + public static String getRealPathFromUri(Context context, Uri contentUri) { + Cursor cursor = null; + try { + String[] proj = { MediaStore.Images.Media.DATA }; + cursor = context.getContentResolver().query(contentUri, proj, null, null, null); + assert cursor != null; + int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); + cursor.moveToFirst(); + return cursor.getString(column_index); + } finally { + if (cursor != null) { + cursor.close(); + } + } + } + @Override + public boolean onNavigationItemSelected(@NonNull MenuItem item) { + int id = item.getItemId(); + switch (id) { + case R.id.nav_home: + startActivity(new Intent(getApplicationContext(), MainMenu.class)); + break; + case R.id.nav_signout: + FirebaseAuth.getInstance().signOut(); + Intent intent = new Intent(getApplicationContext(), Login.class); + startActivity(intent); + finish(); + Toasty.success(getApplicationContext(), "Logged Out!", Toast.LENGTH_LONG, true).show(); + //Toast.makeText(getApplicationContext(), "Signed Out",Toast.LENGTH_LONG).show(); + break; + case R.id.nav_diary: + Intent diary = new Intent(getApplicationContext(), Diary.class); + startActivity(diary); + break; + case R.id.nav_hospital: + startActivity(new Intent(getApplicationContext(), MapsActivity.class)); + break; + case R.id.nav_symptom: + startActivity(new Intent(getApplicationContext(), FoodImageInput.class)); + break; + case R.id.nav_remind: + startActivity(new Intent(getApplicationContext(), Reminder.class)); + break; + case R.id.nav_id: + startActivity(new Intent(getApplicationContext(), MedicalId.class)); + break; + case R.id.nav_share: + Intent sendIntent = new Intent(); + sendIntent.setAction(Intent.ACTION_SEND); + sendIntent.putExtra(Intent.EXTRA_TEXT, "Download PocDoc Today!"); + sendIntent.setType("text/plain"); + + Intent shareIntent = Intent.createChooser(sendIntent, null); + startActivity(shareIntent); + break; + } + drawerLayout.closeDrawer(GravityCompat.START); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (toggle.onOptionsItemSelected(item)) { + return true; + } + return super.onOptionsItemSelected(item); + } + + @Override + public void onBackPressed() { + + if (drawerLayout.isDrawerOpen(GravityCompat.START)) { + drawerLayout.closeDrawer(GravityCompat.START); + } else { + super.onBackPressed(); + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/arnav/pocdoc/FoodAllergy/FoodImageInput.java b/app/src/main/java/com/arnav/pocdoc/FoodAllergy/FoodImageInput.java new file mode 100644 index 0000000..6f6a2f6 --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/FoodAllergy/FoodImageInput.java @@ -0,0 +1,192 @@ +package com.arnav.pocdoc.FoodAllergy; + +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 es.dmoral.toasty.Toasty; + +import android.content.Intent; +import android.net.Uri; +import android.os.Bundle; +import android.provider.MediaStore; +import android.util.Log; +import android.view.MenuItem; +import android.view.View; +import android.widget.Button; +import android.widget.ImageView; +import android.widget.Toast; + +import com.androidbuts.multispinnerfilter.KeyPairBoolData; +import com.androidbuts.multispinnerfilter.MultiSpinnerSearch; +import com.androidbuts.multispinnerfilter.MultiSpinnerListener; + +import com.arnav.pocdoc.Authentication.Login; +import com.arnav.pocdoc.Diary; +import com.arnav.pocdoc.MainActivity; +import com.arnav.pocdoc.MainMenu; +import com.arnav.pocdoc.MedicalId; +import com.arnav.pocdoc.R; +import com.arnav.pocdoc.Reminder; +import com.arnav.pocdoc.maps.MapsActivity; +import com.google.android.material.navigation.NavigationView; +import com.google.firebase.auth.FirebaseAuth; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +public class FoodImageInput extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener{ + ImageView imageView; + Button upload, next; + private static final int PICK_IMAGE = 100; + Uri imageUri; + NavigationView navigationView; + DrawerLayout drawerLayout; + Toolbar toolbar; + ActionBarDrawerToggle toggle; + + public static final List listArray = new ArrayList(); + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_food_image_input); + MultiSpinnerSearch searchSpinner = findViewById(R.id.allergies_list_spinner); + imageView = findViewById(R.id.food_image); + upload = findViewById(R.id.buttonLoadPicture); + next = findViewById(R.id.next_image_allergy); + + drawerLayout = findViewById(R.id.drawer_layout_foodin); + navigationView = findViewById(R.id.nav_view_foodin); + toolbar = findViewById(R.id.toolbar_foodin); + + setSupportActionBar(toolbar); + Objects.requireNonNull(getSupportActionBar()).setDisplayShowTitleEnabled(true); + navigationView.bringToFront(); + navigationView.setNavigationItemSelectedListener(this); + toggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.navigation_drawer_open, R.string.navigation_drawer_close); + drawerLayout.addDrawerListener(toggle); + toggle.syncState(); + navigationView.setCheckedItem(R.id.nav_symptom); + + + final List list = MainActivity.foods; + + + searchSpinner.setItems(list, new MultiSpinnerListener() { + @Override + public void onItemsSelected(List items) { + + for(int i=0; i options = new FirebaseRecyclerOptions.Builder() + .setQuery(query, snapshot -> new ReminderItem( + Objects.requireNonNull(snapshot.child("name").getValue()).toString(), + Objects.requireNonNull(snapshot.child("type").getValue()).toString(), + Objects.requireNonNull(snapshot.child("dosage").getValue()).toString(), + Objects.requireNonNull(snapshot.child("repeat").getValue()).toString(), + Integer.parseInt(Objects.requireNonNull(snapshot.child("remindHour").getValue()).toString()), + Integer.parseInt(Objects.requireNonNull(snapshot.child("remindMinute").getValue()).toString()), + Objects.requireNonNull(snapshot.child("imageResource").getValue()).toString() + )) + .build(); + adapter = new FirebaseRecyclerAdapter(options) { + @NotNull + @Override + public ReminderViewHolder onCreateViewHolder(@NotNull ViewGroup parent, int viewType) { + return new ReminderViewHolder(LayoutInflater.from(Objects.requireNonNull(getContext()).getApplicationContext()).inflate(R.layout.reminder_card, parent, false)); + } + + @Override + protected void onBindViewHolder(@NotNull HomeReminder.ReminderViewHolder holder, int position, @NotNull ReminderItem model) { + String repeat = model.getRepeat(); + + holder.medication_name.setText("Medication Name: "+model.getName()); + holder.type.setText("Medication Type: "+model.getType()); + holder.dosage.setText("Dosage: "+model.getDosage()); + holder.repeat.setText("Days: "+repeat.substring(1, repeat.length()-1)); + holder.reminder_time.setText("Time: "+String.format("%d:%02d", model.getRemindHour(), model.getRemindMinute())); + holder.pill_image.setImageResource(getResources().getIdentifier(model.getImageResource(), "drawable", Objects.requireNonNull(getContext()).getPackageName())); + } + }; + recycler.setAdapter(adapter); + } + + public static class ReminderViewHolder extends RecyclerView.ViewHolder { + TextView medication_name, type, dosage, repeat, reminder_time; + ImageView pill_image; + + public ReminderViewHolder(View itemView) { + super(itemView); + + medication_name = itemView.findViewById(R.id.reminder_medication_name); + type = itemView.findViewById(R.id.reminder_type); + dosage = itemView.findViewById(R.id.reminder_dosage); + repeat = itemView.findViewById(R.id.reminder_repeat); + reminder_time = itemView.findViewById(R.id.reminder_time); + pill_image = itemView.findViewById(R.id.reminder_pill_image); + } + } +} diff --git a/app/src/main/java/com/arnav/pocdoc/MainActivity.java b/app/src/main/java/com/arnav/pocdoc/MainActivity.java new file mode 100644 index 0000000..7a83949 --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/MainActivity.java @@ -0,0 +1,137 @@ +package com.arnav.pocdoc; + + +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.util.Log; +import android.widget.ImageView; +import android.widget.Toast; + +import com.airbnb.lottie.LottieAnimationView; +import com.androidbuts.multispinnerfilter.KeyPairBoolData; +import com.arnav.pocdoc.Authentication.Login; + + +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.List; +import java.util.Timer; +import java.util.TimerTask; + +import androidx.appcompat.app.AppCompatActivity; +import okhttp3.*; + + +public class MainActivity extends AppCompatActivity { +ImageView logo, bg, title; +LottieAnimationView lottieAnimationView; + +Context context; + +OkHttpClient client = new OkHttpClient(); +Request request; +static final ArrayList symptoms = new ArrayList<>(); +public static final List foods = new ArrayList<>(); +public static ArrayList getSymptoms() { + return symptoms; +} + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + context = this; + + + request = new Request.Builder() + .url(getString(R.string.base_api_url)+"/symptoms") + .get() + .build(); + + context = this; + + + try { + JSONArray jArray = new JSONArray(loadJSONFromAsset()); + + Log.e("MAINACTIVITY", "JSON ARRAY CREATED"); + for (int i = 0; i < jArray.length(); i++) { + JSONObject jo_inside = jArray.getJSONObject(i); + KeyPairBoolData obj = new KeyPairBoolData(); + obj.setName(jo_inside.getString("foods").toUpperCase()); + obj.setId(i + 1); + obj.setSelected(false); + foods.add(obj); + } + } + catch (JSONException e) { + e.printStackTrace(); + } + + + client.newCall(request).enqueue(new Callback() { + @Override + public void onFailure(Call call, IOException e) { + runOnUiThread(() -> { + e.printStackTrace(); + Toast.makeText(getApplicationContext(), "Check your internet connection", Toast.LENGTH_SHORT).show(); + }); + } + + @Override + public void onResponse(Call call, Response response) throws IOException { + try { + JSONArray response_json = new JSONObject(response.body().string()).optJSONArray("symptoms"); + for (int i=0; i < response_json.length(); i++) { + JSONObject symptom = response_json.getJSONObject(i); + String id = symptom.optString("id"); + String name = symptom.optString("name"); + symptoms.add(new Symptom(id, name)); + } + } catch (JSONException exception) { + exception.printStackTrace(); + } + + } + }); + logo = findViewById(R.id.logo_splash); + bg = findViewById(R.id.bg_splash); + title = findViewById(R.id.title_splash); + lottieAnimationView = findViewById(R.id.animation_view); + + bg.animate().translationY(-4000).setDuration(1500).setStartDelay(4000); + logo.animate().translationY(3000).setDuration(1500).setStartDelay(4000); + title.animate().translationY(3000).setDuration(1500).setStartDelay(4000); + lottieAnimationView.animate().translationY(3000).setDuration(1500).setStartDelay(4000); + + new Timer().schedule(new TimerTask() { + @Override + public void run() { + + MainActivity.this.runOnUiThread(() -> startActivity(new Intent(MainActivity.this, Login.class))); + + } + }, 6000); + } + public String loadJSONFromAsset() { + String json = null; + try { + InputStream is = this.getAssets().open("foods.json"); + int size = is.available(); + byte[] buffer = new byte[size]; + is.read(buffer); + is.close(); + json = new String(buffer, StandardCharsets.UTF_8); + } catch (IOException ex) { + ex.printStackTrace(); + return null; + } + return json; + } +} diff --git a/app/src/main/java/com/arnav/pocdoc/MainMenu.java b/app/src/main/java/com/arnav/pocdoc/MainMenu.java new file mode 100644 index 0000000..45b672c --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/MainMenu.java @@ -0,0 +1,200 @@ +package com.arnav.pocdoc; + +import android.content.DialogInterface; +import android.content.Intent; +import android.net.Uri; +import android.os.Bundle; +import android.view.MenuItem; +import android.view.View; + +import android.widget.Button; +import android.widget.Toast; + + +import com.arnav.pocdoc.FoodAllergy.FoodImageInput; +import com.arnav.pocdoc.maps.MapsActivity; + + +import com.arnav.pocdoc.Authentication.Login; +import com.google.android.gms.auth.api.signin.GoogleSignInClient; +import com.google.android.material.dialog.MaterialAlertDialogBuilder; +import com.google.android.material.navigation.NavigationView; +import com.google.firebase.auth.FirebaseAuth; + +import java.util.Objects; + + +import androidx.annotation.NonNull; +import androidx.appcompat.app.ActionBarDrawerToggle; +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; +import androidx.cardview.widget.CardView; +import androidx.core.view.GravityCompat; +import androidx.drawerlayout.widget.DrawerLayout; + +import es.dmoral.toasty.Toasty; + + +public class MainMenu extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { + + DrawerLayout drawerLayout; + NavigationView navigationView; + Toolbar toolbar; + ActionBarDrawerToggle toggle; + CardView emergency; + Button med_diary, reminder, locator, allergy; + + Button go_remind; + + private GoogleSignInClient mGoogleSignInClient; + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main_menu); + + drawerLayout = findViewById(R.id.drawer_layout); + navigationView = findViewById(R.id.nav_view); + toolbar = findViewById(R.id.toolbar); + emergency = findViewById(R.id.emergency_call); + med_diary = findViewById(R.id.go_diary); + locator = findViewById(R.id.go_locator); + allergy = findViewById(R.id.go_symptom); + go_remind = findViewById(R.id.go_reminder); + + + navigationView.bringToFront(); + navigationView.setNavigationItemSelectedListener(this); + setSupportActionBar(toolbar); + Objects.requireNonNull(getSupportActionBar()).setDisplayShowTitleEnabled(false); + navigationView.bringToFront(); + navigationView.setNavigationItemSelectedListener(this); + toggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.navigation_drawer_open, R.string.navigation_drawer_close); + drawerLayout.addDrawerListener(toggle); + toggle.syncState(); + navigationView.setCheckedItem(R.id.nav_home); + + emergency.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + showEmergencyDialog(); + } + }); + + med_diary.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + startActivity(new Intent(getApplicationContext(), Diary.class)); + } + }); + locator.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + startActivity(new Intent(getApplicationContext(), MapsActivity.class)); + } + }); + allergy.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + startActivity(new Intent(getApplicationContext(), FoodImageInput.class)); + } + }); + go_remind.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent = new Intent(getApplicationContext(), Reminder.class); + startActivity(intent); + } + }); + } + + @Override + public boolean onNavigationItemSelected(@NonNull MenuItem item) { + int id = item.getItemId(); + switch (id) { + case R.id.nav_home: + break; + case R.id.nav_signout: + FirebaseAuth.getInstance().signOut(); + Intent intent = new Intent(getApplicationContext(), Login.class); + startActivity(intent); + finish(); + Toasty.success(getApplicationContext(), "Logged Out!", Toast.LENGTH_LONG, true).show(); + //Toast.makeText(getApplicationContext(), "Signed Out",Toast.LENGTH_LONG).show(); + break; + case R.id.nav_diary: + Intent diary = new Intent(getApplicationContext(), Diary.class); + startActivity(diary); + break; + case R.id.nav_hospital: + startActivity(new Intent(getApplicationContext(), MapsActivity.class)); + break; + case R.id.nav_symptom: + startActivity(new Intent(getApplicationContext(), FoodImageInput.class)); + break; + case R.id.nav_remind: + startActivity(new Intent(getApplicationContext(), Reminder.class)); + break; + case R.id.nav_id: + startActivity(new Intent(getApplicationContext(), MedicalId.class)); + break; + case R.id.nav_share: + Intent sendIntent = new Intent(); + sendIntent.setAction(Intent.ACTION_SEND); + sendIntent.putExtra(Intent.EXTRA_TEXT, "Download PocDoc Today!"); + sendIntent.setType("text/plain"); + + Intent shareIntent = Intent.createChooser(sendIntent, null); + startActivity(shareIntent); + break; + } + drawerLayout.closeDrawer(GravityCompat.START); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (toggle.onOptionsItemSelected(item)) { + return true; + } + return super.onOptionsItemSelected(item); + } + + @Override + public void onBackPressed() { + + if (drawerLayout.isDrawerOpen(GravityCompat.START)) { + drawerLayout.closeDrawer(GravityCompat.START); + } else { + super.onBackPressed(); + } + } + + + public void showEmergencyDialog() { + new MaterialAlertDialogBuilder(this) + .setTitle(R.string.dialog_emg_title) + .setMessage("Are you sure you want to make a call to emergency services?") + .setNegativeButton("Cancel", new DialogInterface.OnClickListener() { + + @Override + public void onClick(DialogInterface dialogInterface, int i) { + dialogInterface.dismiss(); + } + }) + .setPositiveButton("Call", new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialogInterface, int i) { + // TODO replace with 911 + String dial = "tel:911"; + Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(dial)); + startActivity(intent); + dialogInterface.dismiss(); + } + }) + .show(); + + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/arnav/pocdoc/MedicalId.java b/app/src/main/java/com/arnav/pocdoc/MedicalId.java new file mode 100644 index 0000000..243d629 --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/MedicalId.java @@ -0,0 +1,322 @@ +package com.arnav.pocdoc; + +import android.app.Dialog; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.util.AttributeSet; +import android.view.View; +import android.widget.Button; +import android.widget.ProgressBar; +import android.widget.TextView; +import androidx.appcompat.app.AppCompatActivity; + +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.database.DataSnapshot; +import com.google.firebase.database.DatabaseError; +import com.google.firebase.database.FirebaseDatabase; +import com.google.firebase.database.ValueEventListener; +import com.ramotion.foldingcell.FoldingCell; +import net.steamcrafted.loadtoast.LoadToast; + +import java.util.Objects; + +import static android.graphics.Color.GRAY; + +public class MedicalId extends AppCompatActivity { + Button patient_edit, general_edit, medical_edit, continue_med_id; + + // Patient Info + TextView location, patient_id, email, insurance; + // General + TextView age, gender, height, weight, blood_type, race; + // Medical + TextView conditions, family_history, blood_pressure, blood_sugar, allergies, habits, medication, medication_names; + + Dialog loading_dialog; + MedicalIdEdit edit_dialog; + + ProgressBar loading_bar; + + Context context; + + protected void open_dialog(String name, Bundle data) { + edit_dialog = new MedicalIdEdit(name, data, loading_dialog); + loading_dialog.show(); + edit_dialog.show(getSupportFragmentManager(), "medical_id_edit"); + } + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_medical_id); + + final FoldingCell patient = findViewById(R.id.patient_info); + final FoldingCell general = findViewById(R.id.general_cell); + final FoldingCell medical = findViewById(R.id.medical_cell); + patient_edit = findViewById(R.id.patient_edit); + general_edit = findViewById(R.id.general_edit); + medical_edit = findViewById(R.id.medical_edit); + continue_med_id = findViewById(R.id.continue_med_id); + + location = findViewById(R.id.location_id); + patient_id = findViewById(R.id.patient_id); + email = findViewById(R.id.email_med); + insurance = findViewById(R.id.insurance_med); + + age = findViewById(R.id.age_id); + gender = findViewById(R.id.gender_id); + height = findViewById(R.id.height_id); + weight = findViewById(R.id.weight_id); + blood_type = findViewById(R.id.blood_id); + race = findViewById(R.id.race_id); + + conditions = findViewById(R.id.condition_id); + family_history= findViewById(R.id.family_id); + blood_pressure = findViewById(R.id.pressure_id); + blood_sugar = findViewById(R.id.sugar_id); + allergies = findViewById(R.id.allergies_id); + habits = findViewById(R.id.habit_id); + medication = findViewById(R.id.otc_id); + medication_names = findViewById(R.id.rx_id); + + loading_dialog = new Dialog(this); + loading_dialog.getWindow().setBackgroundDrawableResource(R.color.transparent); + loading_dialog.setCancelable(false); + + loading_bar = new ProgressBar(this); + + loading_dialog.setContentView(loading_bar); + + context = MedicalId.this; + final LoadToast lt = new LoadToast(context); + + patient.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + patient.toggle(false); + } + }); + + patient_edit.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Bundle data = new Bundle(); + data.putSerializable("Location", new Object[]{R.drawable.ic_outline_pin_drop_24, "location"}); + data.putSerializable("Patient ID", new Object[]{R.drawable.ic_outline_credit_card_24, "patientID"}); + data.putSerializable("Email", new Object[]{R.drawable.ic_outline_email_24, "email"}); + data.putSerializable("Insurance", new Object[]{R.drawable.ic_outline_verified_user_24, "insurance"}); + open_dialog("Patient Information", data); + } + }); + + general.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + general.toggle(false); + } + }); + + general_edit.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Bundle data = new Bundle(); + data.putSerializable("Age", new Object[]{R.drawable.heart_blue, "age"}); + data.putSerializable("Gender", new Object[]{R.drawable.gender_blue, "gender"}); + data.putSerializable("Height", new Object[]{R.drawable.icons8_height_96, "height"}); + data.putSerializable("Weight", new Object[]{R.drawable.icons8_scale_64, "weight"}); + data.putSerializable("Blood Type", new Object[]{R.drawable.blue_blood, "bloodType"}); + data.putSerializable("Race", new Object[]{R.drawable.icons8_multicultural_people_100, "race"}); + open_dialog("General", data); + } + }); + + medical.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + medical.toggle(false); + } + }); + + medical_edit.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Bundle data = new Bundle(); + data.putSerializable("Conditions", new Object[]{R.drawable.icons8_medical_history_96, "conditions"}); + data.putSerializable("Family History", new Object[]{R.drawable.icons8_family_96, "familyHistory"}); + data.putSerializable("BP Level", new Object[]{R.drawable.icons8_pressure_30, "bloodPressure"}); + data.putSerializable("Sugar", new Object[]{R.drawable.icons8_glucometer_30, "sugar"}); + data.putSerializable("Allergies", new Object[]{R.drawable.icons8_sneeze_96, "allergies"}); + data.putSerializable("Habits", new Object[]{R.drawable.icons8_no_food_96, "habits"}); + data.putSerializable("OTC Medication", new Object[]{R.drawable.pill_hand, "otc"}); + data.putSerializable("RX Medication Name", new Object[]{R.drawable.prescription, "rx"}); + open_dialog("Medical", data); + } + }); + + continue_med_id.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + lt.setBorderColor(GRAY); + lt.setTranslationY(150); + lt.setText("Verifying..."); + lt.show(); + lt.success(); + Intent intent = new Intent(getApplicationContext(), MainMenu.class); + startActivity(intent); + } + }); + } + + @Override + public View onCreateView(View parent, String name, Context context, AttributeSet attrs) { + FirebaseDatabase.getInstance().getReference().child("medical_id").child(Objects.requireNonNull(FirebaseAuth.getInstance().getUid())).addValueEventListener(new ValueEventListener() { + @Override + public void onDataChange(DataSnapshot snapshot) { + if(snapshot.child("location").exists() || !snapshot.child("location").getValue().toString().equals(R.string.empty_text)){ + location.setText(snapshot.child("location").getValue().toString()); + location.setText("Yes"); + } else { + location.setText(R.string.empty_text); + } + if(snapshot.child("patientID").exists() || !snapshot.child("patientID").getValue().toString().equals(R.string.empty_text)){ + patient_id.setText(snapshot.child("patientID").getValue().toString()); + patient_id.setText("Yes"); + } else { + patient_id.setText(R.string.empty_text); + } + + if(snapshot.child("email").exists()){ + email.setText(snapshot.child("email").getValue().toString()); + email.setText("Yes"); + } else { + email.setText(R.string.empty_text); + } + + + + if(snapshot.child("insurance").exists()){ + insurance.setText(snapshot.child("insurance").getValue().toString()); + insurance.setText("Yes"); + } else { + insurance.setText(R.string.empty_text); + } + + if(snapshot.child("age").exists()){ + age.setText(snapshot.child("age").getValue().toString()); + age.setText("Yes"); + } else { + age.setText(R.string.empty_text); + } + + if(snapshot.child("gender").exists()){ + gender.setText(snapshot.child("gender").getValue().toString()); + gender.setText("Yes"); + } else { + gender.setText(R.string.empty_text); + } + + if(snapshot.child("height").exists()){ + height.setText(snapshot.child("height").getValue().toString()); + height.setText("Yes"); + } else { + height.setText(R.string.empty_text); + } + + if(snapshot.child("weight").exists()){ + weight.setText(snapshot.child("weight").getValue().toString()); + weight.setText("Yes"); + } else { + weight.setText(R.string.empty_text); + } + + if(snapshot.child("bloodType").exists()){ + blood_type.setText(snapshot.child("bloodType").getValue().toString()); + blood_type.setText("Yes"); + } else { + blood_type.setText(R.string.empty_text); + } + + if(snapshot.child("race").exists()){ + race.setText(snapshot.child("race").getValue().toString()); + race.setText("Yes"); + } else { + race.setText(R.string.empty_text); + } + + + + if(snapshot.child("conditions").exists()){ + conditions.setText(snapshot.child("conditions").getValue().toString()); + conditions.setText("Yes"); + } else { + conditions.setText(R.string.empty_text); + } + + if(snapshot.child("familyHistory").exists()){ + family_history.setText(snapshot.child("familyHistory").getValue().toString()); + family_history.setText("Yes"); + } else { + family_history.setText(R.string.empty_text); + } + + if(snapshot.child("bloodPressure").exists()){ + blood_pressure.setText(snapshot.child("bloodPressure").getValue().toString()); + blood_pressure.setText("Yes"); + } else { + blood_pressure.setText(R.string.empty_text); + } + + if(snapshot.child("sugar").exists()){ + blood_sugar.setText(snapshot.child("sugar").getValue().toString()); + blood_sugar.setText("Yes"); + } else { + blood_sugar.setText(R.string.empty_text); + } + + if(snapshot.child("allergies").exists()){ + allergies.setText(snapshot.child("allergies").getValue().toString()); + allergies.setText("Yes"); + } else { + allergies.setText(R.string.empty_text); + } + + if(snapshot.child("habits").exists()){ + habits.setText(snapshot.child("habits").getValue().toString()); + habits.setText("Yes"); + } else { + habits.setText(R.string.empty_text); + } + + if(snapshot.child("atc").exists()){ + medication.setText(snapshot.child("atc").getValue().toString()); + medication.setText("Yes"); + } else { + medication.setText(R.string.empty_text); + } + + if(snapshot.child("rx").exists()){ + medication_names.setText(snapshot.child("rx").getValue().toString()); + medication_names.setText("Yes"); + } else { + medication_names.setText(R.string.empty_text); + } + + + + + + + + +// medication_names.setText(snapshot.child("rx").getValue().toString()); + } + + @Override + public void onCancelled(DatabaseError error) { + } + }); + + return super.onCreateView(parent, name, context, attrs); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/arnav/pocdoc/MedicalIdEdit.java b/app/src/main/java/com/arnav/pocdoc/MedicalIdEdit.java new file mode 100644 index 0000000..e39a8bd --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/MedicalIdEdit.java @@ -0,0 +1,193 @@ +package com.arnav.pocdoc; + +import android.app.Dialog; +import android.content.Context; +import android.graphics.Bitmap; +import android.graphics.Color; +import android.graphics.drawable.BitmapDrawable; +import android.graphics.drawable.Drawable; +import android.graphics.drawable.VectorDrawable; +import android.os.Bundle; +import android.view.ContextThemeWrapper; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; +import android.widget.LinearLayout; +import android.widget.TextView; +import android.widget.Toast; +import androidx.core.content.ContextCompat; +import androidx.fragment.app.DialogFragment; +import com.google.android.material.textfield.TextInputEditText; +import com.google.android.material.textfield.TextInputLayout; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.database.*; + +import java.util.ArrayList; +import java.util.Objects; +import java.util.regex.Pattern; + + +class Field extends TextInputLayout { + TextInputEditText input; + String firebase_id; + + Field(final Context context, String hint, Drawable icon, String id) { + super(new ContextThemeWrapper(context, R.style.Widget_MaterialComponents_TextInputLayout_OutlinedBox), null, 0); + + input = new TextInputEditText(getContext()); + firebase_id = id; + + setHint(hint); + setStartIconDrawable(icon); + setBoxBackgroundMode(TextInputLayout.BOX_BACKGROUND_OUTLINE); + setPadding(25, 25, 25, 25); + + input.setTextColor(Color.BLACK); + FirebaseDatabase.getInstance().getReference().child("medical_id").child(Objects.requireNonNull(FirebaseAuth.getInstance().getUid())).child(firebase_id).addValueEventListener(new ValueEventListener() { + @Override + public void onDataChange(DataSnapshot snapshot) { + if (snapshot.exists()) { + input.setText(snapshot.getValue().toString()); + } + } + + @Override + public void onCancelled(DatabaseError error) { + } + }); + + addView(input); + } + + protected String getText() { + return Objects.requireNonNull(input.getText()).toString(); + } + + protected String getFirebaseId() { + return firebase_id; + } +} + + +public class MedicalIdEdit extends DialogFragment { + LinearLayout scrollview; + TextView section_textview; + Button cancel_button, save_button; + + String section; + Bundle data; + ArrayList fields = new ArrayList<>(); + + Dialog loading_dialog; + + MedicalIdEdit(String section, Bundle data, Dialog loading_dialog) { + this.section = section; + this.data = data; + this.loading_dialog = loading_dialog; + } + + private String title(String string) { + String empty = getString(R.string.empty_text); + if (!string.isEmpty() && !string.equals(empty)) { + string = string.trim(); + char first = string.charAt(0); + String rest = string.substring(1); + return Character.toUpperCase(first)+rest.toLowerCase(); + } + return empty; + } + + private boolean save() { + boolean no_errors = true; + DatabaseReference reference = FirebaseDatabase.getInstance().getReference().child("medical_id").child(Objects.requireNonNull(FirebaseAuth.getInstance().getUid())); + for (Field field : fields) { + String id = field.getFirebaseId(); + String text = title(field.getText()); + String empty = getString(R.string.empty_text); + + boolean isGender = id.equals("gender"); + boolean isAge = id.equals("age"); + boolean gender = isGender && (text.equals("Male") || text.equals("Female") || text.equals(empty)); + boolean age = isAge && (Pattern.compile("^[0-9]+$", Pattern.CASE_INSENSITIVE).matcher(text).find() || text.equals(empty)); + + if (gender || age || (!isGender && !isAge)) { + reference.child(id).setValue((id.equals("email") && !text.equals(empty)) ? text.toLowerCase() : text); + } + else if (isGender) { + no_errors = false; + Toast.makeText(getContext(), "Please enter \"Male\" or \"Female\" for gender", Toast.LENGTH_SHORT).show(); + } + else if (isAge) { + no_errors = false; + Toast.makeText(getContext(), "Please enter an integer for age", Toast.LENGTH_SHORT).show(); + } + } + return no_errors; + } + + @Override + public void dismiss() { + loading_dialog.dismiss(); + super.dismiss(); + } + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setStyle(DialogFragment.STYLE_NORMAL, R.style.Theme_AppCompat_DialogWhenLarge); + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { + View view = inflater.inflate(R.layout.fragment_medical_id_edit, container, false); + + section_textview = view.findViewById(R.id.medical_id_edit_section); + cancel_button = view.findViewById(R.id.medical_id_edit_cancel); + save_button = view.findViewById(R.id.medical_id_edit_save); + scrollview = view.findViewById(R.id.medical_id_info_scrollview); + + section_textview.setText(this.section); + + cancel_button.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + dismiss(); + } + }); + + save_button.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + if (save()) { + Toast.makeText(getContext(), "Changes Saved", Toast.LENGTH_SHORT).show(); + dismiss(); + } + } + }); + + fields = new ArrayList<>(); + + for (String key : data.keySet()) { + Object[] values = (Object[]) data.get(key); + + Drawable icon = ContextCompat.getDrawable(Objects.requireNonNull(getContext()), (int) values[0]); + + if (! (icon instanceof VectorDrawable) && icon != null) { + Bitmap icon_bitmap = Bitmap.createScaledBitmap(((BitmapDrawable) icon).getBitmap(), 100, 100, false); + icon = new BitmapDrawable(getResources(), icon_bitmap); + } + + Field field = new Field(scrollview.getContext(), key, icon, (String) values[1]); + + if (field.getFirebaseId().equals("patientID")) { + field.input.setTextColor(Color.LTGRAY); + field.setEnabled(false); + } + + fields.add(field); + scrollview.addView(field); + } + return view; + } +} diff --git a/app/src/main/java/com/arnav/pocdoc/Onboarding/Introduction.java b/app/src/main/java/com/arnav/pocdoc/Onboarding/Introduction.java new file mode 100644 index 0000000..256f702 --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/Onboarding/Introduction.java @@ -0,0 +1,48 @@ +package com.arnav.pocdoc.Onboarding; + +import android.content.Intent; +import android.graphics.Color; +import android.os.Bundle; +import androidx.appcompat.app.AppCompatActivity; +import com.arnav.pocdoc.R; +import com.ramotion.paperonboarding.PaperOnboardingEngine; +import com.ramotion.paperonboarding.PaperOnboardingPage; + +import java.util.ArrayList; + +public class Introduction extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_introduction); + + PaperOnboardingEngine engine = new PaperOnboardingEngine(findViewById(R.id.onboardingRootView), getDataForOnboarding(), getApplicationContext()); + + engine.setOnRightOutListener(() -> { + //Add intent here + Intent intent = new Intent(getApplicationContext(), NotificationOnboard.class); + startActivity(intent); + //Toast.makeText(getApplicationContext(), "Swiped out right", Toast.LENGTH_SHORT).show(); + }); + + } + private ArrayList getDataForOnboarding() { + + PaperOnboardingPage scr1 = new PaperOnboardingPage("Hello, ", "Welcome to PocDoc, An Online Medical Helper", + Color.parseColor("#bff9ff"), R.drawable.welcome_pic, R.drawable.hospital); + PaperOnboardingPage scr2 = new PaperOnboardingPage("Diary", "Keep Track of Your Medical Events and Find a Possible Diagnosis", + Color.parseColor("#a6dde3"), R.drawable.diary_pic, R.drawable.diary); + PaperOnboardingPage scr3 = new PaperOnboardingPage("Allergy Finder", "Scan Foods to Find Possible Allergens using our AI Algorithm that classifies over 1,000 Foods", + Color.parseColor("#88c8cf"), R.drawable.symptom_pic, R.drawable.symptoms); + PaperOnboardingPage scr4 = new PaperOnboardingPage("Medication Reminder", "Reminder to Take Your Medications From Your Smartphone", + Color.parseColor("#76bdc4"), R.drawable.reminder_pic, R.drawable.reminder); + + ArrayList elements = new ArrayList<>(); + elements.add(scr1); + elements.add(scr2); + elements.add(scr3); + elements.add(scr4); + return elements; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/arnav/pocdoc/Onboarding/NotificationOnboard.java b/app/src/main/java/com/arnav/pocdoc/Onboarding/NotificationOnboard.java new file mode 100644 index 0000000..ee33eae --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/Onboarding/NotificationOnboard.java @@ -0,0 +1,66 @@ +package com.arnav.pocdoc.Onboarding; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat; + +import android.content.Intent; +import android.graphics.drawable.AnimatedVectorDrawable; +import android.graphics.drawable.Drawable; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.ImageView; + +import com.arnav.pocdoc.MedicalId; +import com.arnav.pocdoc.R; + +public class NotificationOnboard extends AppCompatActivity { + + ImageView back, done, content, circle; + Button yes; + + AnimatedVectorDrawableCompat avd; + AnimatedVectorDrawable avd2; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_notification_onboard); + + back = findViewById(R.id.back_notification); + content = findViewById(R.id.content_notification); + done = findViewById(R.id.done); + yes = findViewById(R.id.yes); + circle = findViewById(R.id.circle); + content.setVisibility(View.VISIBLE); + + back.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent = new Intent(getApplicationContext(), Introduction.class); + startActivity(intent); + finish(); + } + }); + + yes.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + content.setVisibility(View.INVISIBLE); + done.setVisibility(View.VISIBLE); + circle.setVisibility(View.VISIBLE); + Drawable drawable = done.getDrawable(); + + if (drawable instanceof AnimatedVectorDrawableCompat){ + avd = (AnimatedVectorDrawableCompat) drawable; + avd.start(); + } else if (drawable instanceof AnimatedVectorDrawable){ + avd2 = (AnimatedVectorDrawable) drawable; + avd2.start(); + } + startActivity(new Intent(getApplicationContext(), MedicalId.class)); + + } + }); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/arnav/pocdoc/Reminder.java b/app/src/main/java/com/arnav/pocdoc/Reminder.java new file mode 100644 index 0000000..c5afac9 --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/Reminder.java @@ -0,0 +1,199 @@ +package com.arnav.pocdoc; + +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.os.PowerManager; +import android.view.MenuItem; +import android.widget.Toast; + +import com.allyants.notifyme.NotifyMe; +import com.arnav.pocdoc.Authentication.Login; +import com.arnav.pocdoc.FoodAllergy.FoodImageInput; +import com.arnav.pocdoc.maps.MapsActivity; +import com.google.android.material.navigation.NavigationView; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.database.DataSnapshot; +import com.google.firebase.database.DatabaseError; +import com.google.firebase.database.FirebaseDatabase; +import com.google.firebase.database.ValueEventListener; +import com.ismaeldivita.chipnavigation.ChipNavigationBar; + +import java.util.*; + +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.fragment.app.Fragment; +import es.dmoral.toasty.Toasty; + +public class Reminder extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { + static Context context; + + ChipNavigationBar chipNavigationBar; + DrawerLayout drawerLayout; + NavigationView navigationView; + Toolbar toolbar; + ActionBarDrawerToggle toggle; + + public static void scheduleNotification(String id) { + FirebaseDatabase.getInstance().getReference().child("reminder").child(Objects.requireNonNull(FirebaseAuth.getInstance().getUid())).child(id).addValueEventListener(new ValueEventListener() { + @Override + public void onDataChange(DataSnapshot snapshot) { + String name = Objects.requireNonNull(snapshot.child("name").getValue()).toString(); + String dosage = Objects.requireNonNull(snapshot.child("dosage").getValue()).toString(); + String image = Objects.requireNonNull(snapshot.child("imageResource").getValue()).toString(); + int hour = Integer.parseInt(Objects.requireNonNull(snapshot.child("remindHour").getValue()).toString()); + int minute = Integer.parseInt(Objects.requireNonNull(snapshot.child("remindMinute").getValue()).toString()); + String repeat = Objects.requireNonNull(snapshot.child("repeat").getValue()).toString(); + ArrayList days = new ArrayList<>(); + + Collections.addAll(days, repeat.substring(1, repeat.length()-1).split(", ")); + + Calendar time = Calendar.getInstance(); + String day = time.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.getDefault()); + + if (!days.contains(Objects.requireNonNull(day).toUpperCase()) || time.get(Calendar.HOUR_OF_DAY) > hour || (time.get(Calendar.HOUR_OF_DAY) == hour && time.get(Calendar.MINUTE) >= minute)) { + do { + time.add(Calendar.DAY_OF_YEAR, 1); + day = time.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.getDefault()); + } + while (!days.contains(Objects.requireNonNull(day).toUpperCase())); + } + + time.set(Calendar.HOUR_OF_DAY, hour); + time.set(Calendar.MINUTE, minute); + time.set(Calendar.SECOND, 0); + + PowerManager power_manager = (PowerManager) context.getSystemService(POWER_SERVICE); + PowerManager.WakeLock wake_lock = null; + if (power_manager != null) { + wake_lock = power_manager.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP | PowerManager.ON_AFTER_RELEASE, "PocDoc: reminder"); + wake_lock.acquire(500); + } + + new NotifyMe.Builder(context) + .title("Medication Reminder") + .content("It's time to take "+dosage+" of "+name) + .large_icon(context.getResources().getIdentifier(image, "drawable", context.getPackageName())) + .addAction(new Intent(context.getApplicationContext(), Reminder.class), "OK") + .time(time) + .build(); + + if (wake_lock != null) { + wake_lock.release(); + } + } + + @Override + public void onCancelled(DatabaseError error) { + } + }); + } + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_reminder); + + context = this; + + chipNavigationBar = findViewById(R.id.bottom_reminder_nav); + drawerLayout = findViewById(R.id.drawer_layout_reminder); + navigationView = findViewById(R.id.nav_view_reminder); + toolbar = findViewById(R.id.toolbarReminder); + navigationView.bringToFront(); + navigationView.setNavigationItemSelectedListener(this); + setSupportActionBar(toolbar); + Objects.requireNonNull(getSupportActionBar()).setDisplayShowTitleEnabled(true); + toggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.navigation_drawer_open, R.string.navigation_drawer_close); + drawerLayout.addDrawerListener(toggle); + navigationView.setCheckedItem(R.id.nav_remind); + toggle.syncState(); + chipNavigationBar.setItemEnabled(R.id.bottom_reminder_home, true); + getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new HomeReminder()).commit(); + bottomMenu(); + } + + private void bottomMenu() { + chipNavigationBar.setOnItemSelectedListener(i -> { + Fragment fragment = null; + switch (i) { + case R.id.bottom_reminder_home: + fragment = new HomeReminder(); + break; + case R.id.bottom_reminder_edit: + fragment = new AddReminder(); + break; + case R.id.bottom_reminder_help: + fragment = new HelpReminder(); + break; + } + getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, fragment).commit(); + }); + } + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (toggle.onOptionsItemSelected(item)) { + return true; + } + return super.onOptionsItemSelected(item); + } + + @Override + public void onBackPressed() { + + if (drawerLayout.isDrawerOpen(GravityCompat.START)) { + drawerLayout.closeDrawer(GravityCompat.START); + } else { + super.onBackPressed(); + } + } + + @Override + public boolean onNavigationItemSelected(@NonNull MenuItem item) { + switch (item.getItemId()) { + case R.id.nav_home: + startActivity(new Intent(getApplicationContext(), MainMenu.class)); + break; + case R.id.nav_signout: + FirebaseAuth.getInstance().signOut(); + Intent intent = new Intent(getApplicationContext(), Login.class); + startActivity(intent); + finish(); + Toasty.success(getApplicationContext(), "Logged Out!", Toast.LENGTH_LONG, true).show(); + //Toast.makeText(getApplicationContext(), "Signed Out",Toast.LENGTH_LONG).show(); + break; + case R.id.nav_diary: + Intent diary = new Intent(getApplicationContext(), Diary.class); + startActivity(diary); + break; + case R.id.nav_hospital: + startActivity(new Intent(getApplicationContext(), MapsActivity.class)); + break; + case R.id.nav_symptom: + startActivity(new Intent(getApplicationContext(), FoodImageInput.class)); + break; + case R.id.nav_remind: + break; + case R.id.nav_id: + startActivity(new Intent(getApplicationContext(), MedicalId.class)); + break; + case R.id.nav_share: + Intent sendIntent = new Intent(); + sendIntent.setAction(Intent.ACTION_SEND); + sendIntent.putExtra(Intent.EXTRA_TEXT, "Download PocDoc Today!"); + sendIntent.setType("text/plain"); + + Intent shareIntent = Intent.createChooser(sendIntent, null); + startActivity(shareIntent); + break; + + } + drawerLayout.closeDrawer(GravityCompat.START); + return true; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/arnav/pocdoc/ReminderItem.java b/app/src/main/java/com/arnav/pocdoc/ReminderItem.java new file mode 100644 index 0000000..7d3de96 --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/ReminderItem.java @@ -0,0 +1,44 @@ +package com.arnav.pocdoc; + +public class ReminderItem { + String name, type, dosage, repeat, imageResource; + int remind_hour, remind_minute; + + public ReminderItem(String name, String type, String dosage, String repeat, int reminder_hour, int reminder_minute, String imageResource) { + this.name = name; + this.type = type; + this.dosage = dosage; + this.remind_hour = reminder_hour; + this.remind_minute = reminder_minute; + this.imageResource = imageResource; + this.repeat = repeat; + } + + public String getName() { + return name; + } + + public String getType() { + return type; + } + + public String getDosage() { + return dosage; + } + + public String getRepeat() { + return repeat; + } + + public int getRemindHour() { + return remind_hour; + } + + public int getRemindMinute() { + return remind_minute; + } + + public String getImageResource() { + return imageResource; + } +} diff --git a/app/src/main/java/com/arnav/pocdoc/Symptom.java b/app/src/main/java/com/arnav/pocdoc/Symptom.java new file mode 100644 index 0000000..6b71f7a --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/Symptom.java @@ -0,0 +1,27 @@ +package com.arnav.pocdoc; + +public class Symptom { + String id; + String name; + + Symptom(String id, String name) { + this.id = id; + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/app/src/main/java/com/arnav/pocdoc/maps/ApiQuery.java b/app/src/main/java/com/arnav/pocdoc/maps/ApiQuery.java new file mode 100644 index 0000000..75dad3d --- /dev/null +++ b/app/src/main/java/com/arnav/pocdoc/maps/ApiQuery.java @@ -0,0 +1,136 @@ +package com.arnav.pocdoc.maps; + +import android.location.Location; +import android.util.Log; + +import org.json.JSONArray; +import org.json.JSONObject; + +import java.io.BufferedReader; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.net.HttpURLConnection; +import java.net.URL; +import java.util.ArrayList; + +public class ApiQuery { + private static String my_api_key="AIzaSyC2Tv4y-8BukviK1wAAHyDprfbFB8xaj6A"; + private static Location location; + private static StringBuffer sbuff; + private static String cat; + private static ArrayList hospdetails; + + public static ArrayList ping(Location loc,String category) + { + location=loc; + cat=category; + Thread thread = new Thread(new Runnable() { + @Override + public void run() { + ApiQuery.query(); + } + }); + + thread.start(); + + while(thread.isAlive()); + + thread = new Thread(new Runnable() { + @Override + public void run() { + + ApiQuery.stringToObjects(); + } + }); + + thread.start(); + + while(thread.isAlive()); + + return hospdetails; + } + + public static void query() + { + String q; + + StringBuilder sb = new StringBuilder("https://maps.googleapis.com/maps/api/place/nearbysearch/json?"); + sb.append("types="+cat); + sb.append("&location="+location.getLatitude()+","+location.getLongitude()); + sb.append("&radius=3000"); + sb.append("&key="+my_api_key); + + q=sb.toString(); + + try { + URL url = new URL(q); + HttpURLConnection httpconn = (HttpURLConnection)url.openConnection(); + InputStream inputStream = httpconn.getInputStream(); + BufferedReader br = new BufferedReader(new InputStreamReader(inputStream)); + StringBuffer buff = new StringBuffer(); + String s=""; + + while((s=br.readLine())!=null) + { + buff.append(s); + } + + sbuff=buff; + return; + } + catch(Exception e) { + Log.d("url exception", e.toString()); + } + + sbuff=null; + } + + public static void stringToObjects() { + hospdetails = new ArrayList(); + + if (sbuff == null) + { + hospdetails=null; + return; + } + + try { + JSONObject jsonobj = new JSONObject(sbuff.toString()); + JSONArray jsonarray = jsonobj.getJSONArray("results"); + + for(int i=0; i results; + private Button searchbutton; + private ArrayList m; + private NiceSpinner sp; + DrawerLayout drawerLayout; + NavigationView navigationView; + Toolbar toolbar; + ActionBarDrawerToggle toggle; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_maps); + SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager() + .findFragmentById(R.id.map); + mapFragment.getMapAsync(this); + + searchbutton = (Button)findViewById(R.id.search); + drawerLayout = findViewById(R.id.drawer_layout_maps); + navigationView = findViewById(R.id.nav_view_maps); + toolbar = findViewById(R.id.toolbar_hospital_map); + + setSupportActionBar(toolbar); + Objects.requireNonNull(getSupportActionBar()).setDisplayShowTitleEnabled(true); + navigationView.bringToFront(); + navigationView.setNavigationItemSelectedListener(this); + toggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.navigation_drawer_open, R.string.navigation_drawer_close); + drawerLayout.addDrawerListener(toggle); + toggle.syncState(); + navigationView.setCheckedItem(R.id.nav_hospital); + + sp = (NiceSpinner) findViewById(R.id.category); + String[] options = {"Hospital","Pharmacy"}; + ArrayAdapter adapter = new ArrayAdapter(MapsActivity.this,android.R.layout.simple_spinner_item,options); + adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + sp.setAdapter(adapter); + } + + /** + * Manipulates the map once available. + * This callback is triggered when the map is ready to be used. + * This is where we can add markers or lines, add listeners or move the camera. In this case, + * we just add a marker near Sydney, Australia. + * If Google Play services is not installed on the device, the user will be prompted to install + * it inside the SupportMapFragment. This method will only be triggered once the user has + * installed Google Play services and returned to the app. + */ + @Override + public void onMapReady(GoogleMap googleMap) { + mMap = googleMap; + checkingPermissions(); + + searchbutton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + + try { + + runOnUiThread(new Runnable() { + @Override + public void run() { + + location = mMap.getMyLocation(); + mMap.clear(); + + if(location==null) + return; + currmarker = new MarkerOptions(); + LatLng latlng = new LatLng(location.getLatitude(),location.getLongitude()); + currmarker.position(latlng); + currmarker.title("My Location"); + currmarker.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)); + currmarker.snippet("current location"); + mMap.addMarker(currmarker); + mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latlng,15.0f)); + + results = ApiQuery.ping(location,sp.getSelectedItem().toString().toLowerCase()); + + if(results==null) + { + Toast.makeText(getApplicationContext(),"Result null",Toast.LENGTH_SHORT).show(); + return; + } + + if(results.size()==0) + Toast.makeText(getApplicationContext(),"Please try again in few moments",Toast.LENGTH_SHORT).show(); + + m=new ArrayList(); + + for(int i=0;i 0 + && grantResults[0] == PackageManager.PERMISSION_GRANTED) { + mMap.setMyLocationEnabled(true); + } else { + Toast.makeText(this, "Cannot provide the location services", Toast.LENGTH_SHORT).show(); + } + } + } + + + private boolean checkPlayServices() { + GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance(); + int resultCode = apiAvailability.isGooglePlayServicesAvailable(this); + + if (resultCode != ConnectionResult.SUCCESS) { + if (apiAvailability.isUserResolvableError(resultCode)) { + apiAvailability.getErrorDialog(this, resultCode, 9000); + } else { + finish(); + } + + return false; + } + return true; + } + + @Override + protected void onStart() { + super.onStart(); + + } + + @Override + protected void onResume() { + super.onResume(); + + } + + @Override + protected void onPause() { + super.onPause(); + + } + + @Override + public boolean onNavigationItemSelected(@NonNull MenuItem item) { + int id = item.getItemId(); + switch (id) { + case R.id.nav_home: + startActivity(new Intent(getApplicationContext(), MainMenu.class)); + break; + case R.id.nav_signout: + FirebaseAuth.getInstance().signOut(); + Intent intent = new Intent(getApplicationContext(), Login.class); + startActivity(intent); + finish(); + Toasty.success(getApplicationContext(), "Logged Out!", Toast.LENGTH_LONG, true).show(); + //Toast.makeText(getApplicationContext(), "Signed Out",Toast.LENGTH_LONG).show(); + break; + case R.id.nav_diary: + Intent diary = new Intent(getApplicationContext(), Diary.class); + startActivity(diary); + break; + case R.id.nav_hospital: + break; + case R.id.nav_symptom: + startActivity(new Intent(getApplicationContext(), FoodImageInput.class)); + break; + case R.id.nav_remind: + startActivity(new Intent(getApplicationContext(), Reminder.class)); + break; + case R.id.nav_id: + startActivity(new Intent(getApplicationContext(), MedicalId.class)); + break; + case R.id.nav_share: + Intent sendIntent = new Intent(); + sendIntent.setAction(Intent.ACTION_SEND); + sendIntent.putExtra(Intent.EXTRA_TEXT, "Download PocDoc Today!"); + sendIntent.setType("text/plain"); + + Intent shareIntent = Intent.createChooser(sendIntent, null); + startActivity(shareIntent); + break; + } + drawerLayout.closeDrawer(GravityCompat.START); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (toggle.onOptionsItemSelected(item)) { + return true; + } + return super.onOptionsItemSelected(item); + } + + @Override + public void onBackPressed() { + + if (drawerLayout.isDrawerOpen(GravityCompat.START)) { + drawerLayout.closeDrawer(GravityCompat.START); + } else { + super.onBackPressed(); + } + } +} \ No newline at end of file diff --git a/app/src/main/res/anim/fade_scale_animation.xml b/app/src/main/res/anim/fade_scale_animation.xml new file mode 100644 index 0000000..838bb2b --- /dev/null +++ b/app/src/main/res/anim/fade_scale_animation.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/anim/fade_transition_animation.xml b/app/src/main/res/anim/fade_transition_animation.xml new file mode 100644 index 0000000..97c8486 --- /dev/null +++ b/app/src/main/res/anim/fade_transition_animation.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable-anydpi/ic_arrow_back.xml b/app/src/main/res/drawable-anydpi/ic_arrow_back.xml new file mode 100644 index 0000000..beafea3 --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_arrow_back.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-anydpi/ic_check_box.xml b/app/src/main/res/drawable-anydpi/ic_check_box.xml new file mode 100644 index 0000000..9948171 --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_check_box.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-anydpi/ic_credit_card.xml b/app/src/main/res/drawable-anydpi/ic_credit_card.xml new file mode 100644 index 0000000..62a08a8 --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_credit_card.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-anydpi/ic_home.xml b/app/src/main/res/drawable-anydpi/ic_home.xml new file mode 100644 index 0000000..70fb291 --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_home.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-anydpi/ic_hospital.xml b/app/src/main/res/drawable-anydpi/ic_hospital.xml new file mode 100644 index 0000000..e0f6e14 --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_hospital.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-anydpi/ic_lock.xml b/app/src/main/res/drawable-anydpi/ic_lock.xml new file mode 100644 index 0000000..50f005b --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_lock.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-anydpi/ic_menu.xml b/app/src/main/res/drawable-anydpi/ic_menu.xml new file mode 100644 index 0000000..6d9343b --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_menu.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-anydpi/ic_person.xml b/app/src/main/res/drawable-anydpi/ic_person.xml new file mode 100644 index 0000000..b2cb337 --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_person.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-anydpi/ic_settings.xml b/app/src/main/res/drawable-anydpi/ic_settings.xml new file mode 100644 index 0000000..ace746c --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_settings.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-anydpi/ic_share.xml b/app/src/main/res/drawable-anydpi/ic_share.xml new file mode 100644 index 0000000..e3fe874 --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_share.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-anydpi/ic_stars.xml b/app/src/main/res/drawable-anydpi/ic_stars.xml new file mode 100644 index 0000000..61c5d7a --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_stars.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-hdpi/background_login.png b/app/src/main/res/drawable-hdpi/background_login.png new file mode 100644 index 0000000..07acd73 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/background_login.png differ diff --git a/app/src/main/res/drawable-hdpi/background_registration.png b/app/src/main/res/drawable-hdpi/background_registration.png new file mode 100644 index 0000000..8799b29 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/background_registration.png differ diff --git a/app/src/main/res/drawable-hdpi/baseline_email_24px.png b/app/src/main/res/drawable-hdpi/baseline_email_24px.png new file mode 100644 index 0000000..a6d1b7d Binary files /dev/null and b/app/src/main/res/drawable-hdpi/baseline_email_24px.png differ diff --git a/app/src/main/res/drawable-hdpi/blue_blood.png b/app/src/main/res/drawable-hdpi/blue_blood.png new file mode 100644 index 0000000..0ef7a5a Binary files /dev/null and b/app/src/main/res/drawable-hdpi/blue_blood.png differ diff --git a/app/src/main/res/drawable-hdpi/capsule.png b/app/src/main/res/drawable-hdpi/capsule.png new file mode 100644 index 0000000..0160d57 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/capsule.png differ diff --git a/app/src/main/res/drawable-hdpi/clock_96px.png b/app/src/main/res/drawable-hdpi/clock_96px.png new file mode 100644 index 0000000..a03084c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/clock_96px.png differ diff --git a/app/src/main/res/drawable-hdpi/component_1___1.png b/app/src/main/res/drawable-hdpi/component_1___1.png new file mode 100644 index 0000000..e60adc6 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/component_1___1.png differ diff --git a/app/src/main/res/drawable-hdpi/content.png b/app/src/main/res/drawable-hdpi/content.png new file mode 100644 index 0000000..820bb90 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/content.png differ diff --git a/app/src/main/res/drawable-hdpi/diary.png b/app/src/main/res/drawable-hdpi/diary.png new file mode 100644 index 0000000..7bb32ae Binary files /dev/null and b/app/src/main/res/drawable-hdpi/diary.png differ diff --git a/app/src/main/res/drawable-hdpi/diary_pic.png b/app/src/main/res/drawable-hdpi/diary_pic.png new file mode 100644 index 0000000..3c91729 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/diary_pic.png differ diff --git a/app/src/main/res/drawable-hdpi/ellipse_31.png b/app/src/main/res/drawable-hdpi/ellipse_31.png new file mode 100644 index 0000000..a7208f0 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ellipse_31.png differ diff --git a/app/src/main/res/drawable-hdpi/ellipse__1.png b/app/src/main/res/drawable-hdpi/ellipse__1.png new file mode 100644 index 0000000..a7208f0 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ellipse__1.png differ diff --git a/app/src/main/res/drawable-hdpi/email_textview.png b/app/src/main/res/drawable-hdpi/email_textview.png new file mode 100644 index 0000000..8965738 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/email_textview.png differ diff --git a/app/src/main/res/drawable-hdpi/emergency.png b/app/src/main/res/drawable-hdpi/emergency.png new file mode 100644 index 0000000..a25e583 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/emergency.png differ diff --git a/app/src/main/res/drawable-hdpi/gender_blue.png b/app/src/main/res/drawable-hdpi/gender_blue.png new file mode 100644 index 0000000..d34cfc7 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/gender_blue.png differ diff --git a/app/src/main/res/drawable-hdpi/google.png b/app/src/main/res/drawable-hdpi/google.png new file mode 100644 index 0000000..40be7ce Binary files /dev/null and b/app/src/main/res/drawable-hdpi/google.png differ diff --git a/app/src/main/res/drawable-hdpi/green.png b/app/src/main/res/drawable-hdpi/green.png new file mode 100644 index 0000000..3b117cf Binary files /dev/null and b/app/src/main/res/drawable-hdpi/green.png differ diff --git a/app/src/main/res/drawable-hdpi/heart_blue.png b/app/src/main/res/drawable-hdpi/heart_blue.png new file mode 100644 index 0000000..766c479 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/heart_blue.png differ diff --git a/app/src/main/res/drawable-hdpi/hospital.png b/app/src/main/res/drawable-hdpi/hospital.png new file mode 100644 index 0000000..8197cde Binary files /dev/null and b/app/src/main/res/drawable-hdpi/hospital.png differ diff --git a/app/src/main/res/drawable-hdpi/hospital_3_96px.png b/app/src/main/res/drawable-hdpi/hospital_3_96px.png new file mode 100644 index 0000000..c6e7110 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/hospital_3_96px.png differ diff --git a/app/src/main/res/drawable-hdpi/icon_material_mail_outline.png b/app/src/main/res/drawable-hdpi/icon_material_mail_outline.png new file mode 100644 index 0000000..81a073a Binary files /dev/null and b/app/src/main/res/drawable-hdpi/icon_material_mail_outline.png differ diff --git a/app/src/main/res/drawable-hdpi/icons8_family_96.png b/app/src/main/res/drawable-hdpi/icons8_family_96.png new file mode 100644 index 0000000..8ed1ac2 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/icons8_family_96.png differ diff --git a/app/src/main/res/drawable-hdpi/icons8_glucometer_30.png b/app/src/main/res/drawable-hdpi/icons8_glucometer_30.png new file mode 100644 index 0000000..8b2e0f1 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/icons8_glucometer_30.png differ diff --git a/app/src/main/res/drawable-hdpi/icons8_height_96.png b/app/src/main/res/drawable-hdpi/icons8_height_96.png new file mode 100644 index 0000000..eb38ee1 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/icons8_height_96.png differ diff --git a/app/src/main/res/drawable-hdpi/icons8_medical_history_96.png b/app/src/main/res/drawable-hdpi/icons8_medical_history_96.png new file mode 100644 index 0000000..5dd98b2 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/icons8_medical_history_96.png differ diff --git a/app/src/main/res/drawable-hdpi/icons8_multicultural_people_100.png b/app/src/main/res/drawable-hdpi/icons8_multicultural_people_100.png new file mode 100644 index 0000000..9a45b12 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/icons8_multicultural_people_100.png differ diff --git a/app/src/main/res/drawable-hdpi/icons8_no_food_96.png b/app/src/main/res/drawable-hdpi/icons8_no_food_96.png new file mode 100644 index 0000000..72235f3 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/icons8_no_food_96.png differ diff --git a/app/src/main/res/drawable-hdpi/icons8_pressure_30.png b/app/src/main/res/drawable-hdpi/icons8_pressure_30.png new file mode 100644 index 0000000..1ea7b8c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/icons8_pressure_30.png differ diff --git a/app/src/main/res/drawable-hdpi/icons8_scale_64.png b/app/src/main/res/drawable-hdpi/icons8_scale_64.png new file mode 100644 index 0000000..df9214b Binary files /dev/null and b/app/src/main/res/drawable-hdpi/icons8_scale_64.png differ diff --git a/app/src/main/res/drawable-hdpi/icons8_sneeze_96.png b/app/src/main/res/drawable-hdpi/icons8_sneeze_96.png new file mode 100644 index 0000000..e0b817d Binary files /dev/null and b/app/src/main/res/drawable-hdpi/icons8_sneeze_96.png differ diff --git a/app/src/main/res/drawable-hdpi/inhaler.png b/app/src/main/res/drawable-hdpi/inhaler.png new file mode 100644 index 0000000..a71246a Binary files /dev/null and b/app/src/main/res/drawable-hdpi/inhaler.png differ diff --git a/app/src/main/res/drawable-hdpi/injection.png b/app/src/main/res/drawable-hdpi/injection.png new file mode 100644 index 0000000..a7ecdca Binary files /dev/null and b/app/src/main/res/drawable-hdpi/injection.png differ diff --git a/app/src/main/res/drawable-hdpi/lines.png b/app/src/main/res/drawable-hdpi/lines.png new file mode 100644 index 0000000..7408e48 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/lines.png differ diff --git a/app/src/main/res/drawable-hdpi/liquid.png b/app/src/main/res/drawable-hdpi/liquid.png new file mode 100644 index 0000000..c64069a Binary files /dev/null and b/app/src/main/res/drawable-hdpi/liquid.png differ diff --git a/app/src/main/res/drawable-hdpi/lock.png b/app/src/main/res/drawable-hdpi/lock.png new file mode 100644 index 0000000..175a502 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/lock.png differ diff --git a/app/src/main/res/drawable-hdpi/logo_plus.png b/app/src/main/res/drawable-hdpi/logo_plus.png new file mode 100644 index 0000000..5c1b442 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/logo_plus.png differ diff --git a/app/src/main/res/drawable-hdpi/mainpicture.png b/app/src/main/res/drawable-hdpi/mainpicture.png new file mode 100644 index 0000000..454f69a Binary files /dev/null and b/app/src/main/res/drawable-hdpi/mainpicture.png differ diff --git a/app/src/main/res/drawable-hdpi/medicalid.png b/app/src/main/res/drawable-hdpi/medicalid.png new file mode 100644 index 0000000..777647e Binary files /dev/null and b/app/src/main/res/drawable-hdpi/medicalid.png differ diff --git a/app/src/main/res/drawable-hdpi/medication_blank.png b/app/src/main/res/drawable-hdpi/medication_blank.png new file mode 100644 index 0000000..43aba36 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/medication_blank.png differ diff --git a/app/src/main/res/drawable-hdpi/menu_book_24px.png b/app/src/main/res/drawable-hdpi/menu_book_24px.png new file mode 100644 index 0000000..c60a5fe Binary files /dev/null and b/app/src/main/res/drawable-hdpi/menu_book_24px.png differ diff --git a/app/src/main/res/drawable-hdpi/museum_24px.png b/app/src/main/res/drawable-hdpi/museum_24px.png new file mode 100644 index 0000000..36047a8 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/museum_24px.png differ diff --git a/app/src/main/res/drawable-hdpi/note_96px.png b/app/src/main/res/drawable-hdpi/note_96px.png new file mode 100644 index 0000000..9168a8f Binary files /dev/null and b/app/src/main/res/drawable-hdpi/note_96px.png differ diff --git a/app/src/main/res/drawable-hdpi/or.png b/app/src/main/res/drawable-hdpi/or.png new file mode 100644 index 0000000..2146523 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/or.png differ diff --git a/app/src/main/res/drawable-hdpi/path_2145.png b/app/src/main/res/drawable-hdpi/path_2145.png new file mode 100644 index 0000000..d5ae208 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/path_2145.png differ diff --git a/app/src/main/res/drawable-hdpi/path__1.png b/app/src/main/res/drawable-hdpi/path__1.png new file mode 100644 index 0000000..d5ae208 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/path__1.png differ diff --git a/app/src/main/res/drawable-hdpi/phone.png b/app/src/main/res/drawable-hdpi/phone.png new file mode 100644 index 0000000..44f1cf9 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/phone.png differ diff --git a/app/src/main/res/drawable-hdpi/phone_96px.png b/app/src/main/res/drawable-hdpi/phone_96px.png new file mode 100644 index 0000000..1ddfc2c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/phone_96px.png differ diff --git a/app/src/main/res/drawable-hdpi/pill.png b/app/src/main/res/drawable-hdpi/pill.png new file mode 100644 index 0000000..e74c0df Binary files /dev/null and b/app/src/main/res/drawable-hdpi/pill.png differ diff --git a/app/src/main/res/drawable-hdpi/pill_96px.png b/app/src/main/res/drawable-hdpi/pill_96px.png new file mode 100644 index 0000000..0cf6d31 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/pill_96px.png differ diff --git a/app/src/main/res/drawable-hdpi/pill_hand.png b/app/src/main/res/drawable-hdpi/pill_hand.png new file mode 100644 index 0000000..3ee5bd0 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/pill_hand.png differ diff --git a/app/src/main/res/drawable-hdpi/pocdoc.png b/app/src/main/res/drawable-hdpi/pocdoc.png new file mode 100644 index 0000000..1e979db Binary files /dev/null and b/app/src/main/res/drawable-hdpi/pocdoc.png differ diff --git a/app/src/main/res/drawable-hdpi/prescription.png b/app/src/main/res/drawable-hdpi/prescription.png new file mode 100644 index 0000000..738210b Binary files /dev/null and b/app/src/main/res/drawable-hdpi/prescription.png differ diff --git a/app/src/main/res/drawable-hdpi/red.png b/app/src/main/res/drawable-hdpi/red.png new file mode 100644 index 0000000..2c61d7b Binary files /dev/null and b/app/src/main/res/drawable-hdpi/red.png differ diff --git a/app/src/main/res/drawable-hdpi/reminder.png b/app/src/main/res/drawable-hdpi/reminder.png new file mode 100644 index 0000000..0a30f65 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/reminder.png differ diff --git a/app/src/main/res/drawable-hdpi/reminder_pic.png b/app/src/main/res/drawable-hdpi/reminder_pic.png new file mode 100644 index 0000000..d002a74 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/reminder_pic.png differ diff --git a/app/src/main/res/drawable-hdpi/separator.png b/app/src/main/res/drawable-hdpi/separator.png new file mode 100644 index 0000000..816c032 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/separator.png differ diff --git a/app/src/main/res/drawable-hdpi/settings.png b/app/src/main/res/drawable-hdpi/settings.png new file mode 100644 index 0000000..52cd241 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/settings.png differ diff --git a/app/src/main/res/drawable-hdpi/settings_96px.png b/app/src/main/res/drawable-hdpi/settings_96px.png new file mode 100644 index 0000000..684e06a Binary files /dev/null and b/app/src/main/res/drawable-hdpi/settings_96px.png differ diff --git a/app/src/main/res/drawable-hdpi/sign_in_button.png b/app/src/main/res/drawable-hdpi/sign_in_button.png new file mode 100644 index 0000000..7492068 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/sign_in_button.png differ diff --git a/app/src/main/res/drawable-hdpi/subtraction_2.png b/app/src/main/res/drawable-hdpi/subtraction_2.png new file mode 100644 index 0000000..bfac67c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/subtraction_2.png differ diff --git a/app/src/main/res/drawable-hdpi/subtraction__1.png b/app/src/main/res/drawable-hdpi/subtraction__1.png new file mode 100644 index 0000000..bfac67c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/subtraction__1.png differ diff --git a/app/src/main/res/drawable-hdpi/symptom_pic.png b/app/src/main/res/drawable-hdpi/symptom_pic.png new file mode 100644 index 0000000..e414d36 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/symptom_pic.png differ diff --git a/app/src/main/res/drawable-hdpi/symptoms.png b/app/src/main/res/drawable-hdpi/symptoms.png new file mode 100644 index 0000000..842568e Binary files /dev/null and b/app/src/main/res/drawable-hdpi/symptoms.png differ diff --git a/app/src/main/res/drawable-hdpi/tablet.png b/app/src/main/res/drawable-hdpi/tablet.png new file mode 100644 index 0000000..7f53dbe Binary files /dev/null and b/app/src/main/res/drawable-hdpi/tablet.png differ diff --git a/app/src/main/res/drawable-hdpi/thermometer_96px.png b/app/src/main/res/drawable-hdpi/thermometer_96px.png new file mode 100644 index 0000000..e649ee6 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/thermometer_96px.png differ diff --git a/app/src/main/res/drawable-hdpi/welcome_pic.png b/app/src/main/res/drawable-hdpi/welcome_pic.png new file mode 100644 index 0000000..a35bfcc Binary files /dev/null and b/app/src/main/res/drawable-hdpi/welcome_pic.png differ diff --git a/app/src/main/res/drawable-hdpi/yellow.png b/app/src/main/res/drawable-hdpi/yellow.png new file mode 100644 index 0000000..44a5b7e Binary files /dev/null and b/app/src/main/res/drawable-hdpi/yellow.png differ diff --git a/app/src/main/res/drawable-ldpi/capsule.png b/app/src/main/res/drawable-ldpi/capsule.png new file mode 100644 index 0000000..99735e7 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/capsule.png differ diff --git a/app/src/main/res/drawable-ldpi/inhaler.png b/app/src/main/res/drawable-ldpi/inhaler.png new file mode 100644 index 0000000..9f049f7 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/inhaler.png differ diff --git a/app/src/main/res/drawable-ldpi/injection.png b/app/src/main/res/drawable-ldpi/injection.png new file mode 100644 index 0000000..06188a6 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/injection.png differ diff --git a/app/src/main/res/drawable-ldpi/liquid.png b/app/src/main/res/drawable-ldpi/liquid.png new file mode 100644 index 0000000..163cf31 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/liquid.png differ diff --git a/app/src/main/res/drawable-ldpi/medication_blank.png b/app/src/main/res/drawable-ldpi/medication_blank.png new file mode 100644 index 0000000..1c9db37 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/medication_blank.png differ diff --git a/app/src/main/res/drawable-ldpi/pill.png b/app/src/main/res/drawable-ldpi/pill.png new file mode 100644 index 0000000..bf692c3 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/pill.png differ diff --git a/app/src/main/res/drawable-ldpi/separator.png b/app/src/main/res/drawable-ldpi/separator.png new file mode 100644 index 0000000..94cd5a7 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/separator.png differ diff --git a/app/src/main/res/drawable-ldpi/tablet.png b/app/src/main/res/drawable-ldpi/tablet.png new file mode 100644 index 0000000..dd60ff3 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/tablet.png differ diff --git a/app/src/main/res/drawable-mdpi/background_login.png b/app/src/main/res/drawable-mdpi/background_login.png new file mode 100644 index 0000000..d099f0d Binary files /dev/null and b/app/src/main/res/drawable-mdpi/background_login.png differ diff --git a/app/src/main/res/drawable-mdpi/background_registration.png b/app/src/main/res/drawable-mdpi/background_registration.png new file mode 100644 index 0000000..034c67d Binary files /dev/null and b/app/src/main/res/drawable-mdpi/background_registration.png differ diff --git a/app/src/main/res/drawable-mdpi/baseline_email_24px.png b/app/src/main/res/drawable-mdpi/baseline_email_24px.png new file mode 100644 index 0000000..5aa4f1b Binary files /dev/null and b/app/src/main/res/drawable-mdpi/baseline_email_24px.png differ diff --git a/app/src/main/res/drawable-mdpi/blue_blood.png b/app/src/main/res/drawable-mdpi/blue_blood.png new file mode 100644 index 0000000..9e09dac Binary files /dev/null and b/app/src/main/res/drawable-mdpi/blue_blood.png differ diff --git a/app/src/main/res/drawable-mdpi/capsule.png b/app/src/main/res/drawable-mdpi/capsule.png new file mode 100644 index 0000000..0b0655b Binary files /dev/null and b/app/src/main/res/drawable-mdpi/capsule.png differ diff --git a/app/src/main/res/drawable-mdpi/clock_96px.png b/app/src/main/res/drawable-mdpi/clock_96px.png new file mode 100644 index 0000000..8e8adcc Binary files /dev/null and b/app/src/main/res/drawable-mdpi/clock_96px.png differ diff --git a/app/src/main/res/drawable-mdpi/component_1___1.png b/app/src/main/res/drawable-mdpi/component_1___1.png new file mode 100644 index 0000000..8d013c9 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/component_1___1.png differ diff --git a/app/src/main/res/drawable-mdpi/content.png b/app/src/main/res/drawable-mdpi/content.png new file mode 100644 index 0000000..0ec9321 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/content.png differ diff --git a/app/src/main/res/drawable-mdpi/diary.png b/app/src/main/res/drawable-mdpi/diary.png new file mode 100644 index 0000000..06471ae Binary files /dev/null and b/app/src/main/res/drawable-mdpi/diary.png differ diff --git a/app/src/main/res/drawable-mdpi/diary_pic.png b/app/src/main/res/drawable-mdpi/diary_pic.png new file mode 100644 index 0000000..f3b7ff4 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/diary_pic.png differ diff --git a/app/src/main/res/drawable-mdpi/ellipse_31.png b/app/src/main/res/drawable-mdpi/ellipse_31.png new file mode 100644 index 0000000..3f738d1 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ellipse_31.png differ diff --git a/app/src/main/res/drawable-mdpi/ellipse__1.png b/app/src/main/res/drawable-mdpi/ellipse__1.png new file mode 100644 index 0000000..3f738d1 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ellipse__1.png differ diff --git a/app/src/main/res/drawable-mdpi/email_textview.png b/app/src/main/res/drawable-mdpi/email_textview.png new file mode 100644 index 0000000..9e96c9d Binary files /dev/null and b/app/src/main/res/drawable-mdpi/email_textview.png differ diff --git a/app/src/main/res/drawable-mdpi/emergency.png b/app/src/main/res/drawable-mdpi/emergency.png new file mode 100644 index 0000000..d56c728 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/emergency.png differ diff --git a/app/src/main/res/drawable-mdpi/gender_blue.png b/app/src/main/res/drawable-mdpi/gender_blue.png new file mode 100644 index 0000000..14d6059 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/gender_blue.png differ diff --git a/app/src/main/res/drawable-mdpi/google.png b/app/src/main/res/drawable-mdpi/google.png new file mode 100644 index 0000000..38245a1 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/google.png differ diff --git a/app/src/main/res/drawable-mdpi/green.png b/app/src/main/res/drawable-mdpi/green.png new file mode 100644 index 0000000..c241d22 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/green.png differ diff --git a/app/src/main/res/drawable-mdpi/heart_blue.png b/app/src/main/res/drawable-mdpi/heart_blue.png new file mode 100644 index 0000000..e60c341 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/heart_blue.png differ diff --git a/app/src/main/res/drawable-mdpi/hospital.png b/app/src/main/res/drawable-mdpi/hospital.png new file mode 100644 index 0000000..aa76b82 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/hospital.png differ diff --git a/app/src/main/res/drawable-mdpi/hospital_3_96px.png b/app/src/main/res/drawable-mdpi/hospital_3_96px.png new file mode 100644 index 0000000..ab293a5 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/hospital_3_96px.png differ diff --git a/app/src/main/res/drawable-mdpi/icon_material_mail_outline.png b/app/src/main/res/drawable-mdpi/icon_material_mail_outline.png new file mode 100644 index 0000000..bef50e2 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/icon_material_mail_outline.png differ diff --git a/app/src/main/res/drawable-mdpi/icons8_family_96.png b/app/src/main/res/drawable-mdpi/icons8_family_96.png new file mode 100644 index 0000000..f08fd94 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/icons8_family_96.png differ diff --git a/app/src/main/res/drawable-mdpi/icons8_glucometer_30.png b/app/src/main/res/drawable-mdpi/icons8_glucometer_30.png new file mode 100644 index 0000000..19afb6d Binary files /dev/null and b/app/src/main/res/drawable-mdpi/icons8_glucometer_30.png differ diff --git a/app/src/main/res/drawable-mdpi/icons8_height_96.png b/app/src/main/res/drawable-mdpi/icons8_height_96.png new file mode 100644 index 0000000..0f4ddee Binary files /dev/null and b/app/src/main/res/drawable-mdpi/icons8_height_96.png differ diff --git a/app/src/main/res/drawable-mdpi/icons8_medical_history_96.png b/app/src/main/res/drawable-mdpi/icons8_medical_history_96.png new file mode 100644 index 0000000..9584bc6 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/icons8_medical_history_96.png differ diff --git a/app/src/main/res/drawable-mdpi/icons8_multicultural_people_100.png b/app/src/main/res/drawable-mdpi/icons8_multicultural_people_100.png new file mode 100644 index 0000000..ea2f38c Binary files /dev/null and b/app/src/main/res/drawable-mdpi/icons8_multicultural_people_100.png differ diff --git a/app/src/main/res/drawable-mdpi/icons8_no_food_96.png b/app/src/main/res/drawable-mdpi/icons8_no_food_96.png new file mode 100644 index 0000000..d68b3a5 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/icons8_no_food_96.png differ diff --git a/app/src/main/res/drawable-mdpi/icons8_pressure_30.png b/app/src/main/res/drawable-mdpi/icons8_pressure_30.png new file mode 100644 index 0000000..9cc4df0 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/icons8_pressure_30.png differ diff --git a/app/src/main/res/drawable-mdpi/icons8_scale_64.png b/app/src/main/res/drawable-mdpi/icons8_scale_64.png new file mode 100644 index 0000000..a47f1ee Binary files /dev/null and b/app/src/main/res/drawable-mdpi/icons8_scale_64.png differ diff --git a/app/src/main/res/drawable-mdpi/icons8_sneeze_96.png b/app/src/main/res/drawable-mdpi/icons8_sneeze_96.png new file mode 100644 index 0000000..5f20bb9 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/icons8_sneeze_96.png differ diff --git a/app/src/main/res/drawable-mdpi/inhaler.png b/app/src/main/res/drawable-mdpi/inhaler.png new file mode 100644 index 0000000..cf9c573 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/inhaler.png differ diff --git a/app/src/main/res/drawable-mdpi/injection.png b/app/src/main/res/drawable-mdpi/injection.png new file mode 100644 index 0000000..4650b0c Binary files /dev/null and b/app/src/main/res/drawable-mdpi/injection.png differ diff --git a/app/src/main/res/drawable-mdpi/lines.png b/app/src/main/res/drawable-mdpi/lines.png new file mode 100644 index 0000000..58dfc39 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/lines.png differ diff --git a/app/src/main/res/drawable-mdpi/liquid.png b/app/src/main/res/drawable-mdpi/liquid.png new file mode 100644 index 0000000..6f0345c Binary files /dev/null and b/app/src/main/res/drawable-mdpi/liquid.png differ diff --git a/app/src/main/res/drawable-mdpi/lock.png b/app/src/main/res/drawable-mdpi/lock.png new file mode 100644 index 0000000..ebdaa84 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/lock.png differ diff --git a/app/src/main/res/drawable-mdpi/logo_plus.png b/app/src/main/res/drawable-mdpi/logo_plus.png new file mode 100644 index 0000000..5b271ba Binary files /dev/null and b/app/src/main/res/drawable-mdpi/logo_plus.png differ diff --git a/app/src/main/res/drawable-mdpi/mainpicture.png b/app/src/main/res/drawable-mdpi/mainpicture.png new file mode 100644 index 0000000..6ca12a7 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/mainpicture.png differ diff --git a/app/src/main/res/drawable-mdpi/medicalid.png b/app/src/main/res/drawable-mdpi/medicalid.png new file mode 100644 index 0000000..f7e76c1 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/medicalid.png differ diff --git a/app/src/main/res/drawable-mdpi/medication_blank.png b/app/src/main/res/drawable-mdpi/medication_blank.png new file mode 100644 index 0000000..80da549 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/medication_blank.png differ diff --git a/app/src/main/res/drawable-mdpi/menu_book_24px.png b/app/src/main/res/drawable-mdpi/menu_book_24px.png new file mode 100644 index 0000000..d8e4737 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/menu_book_24px.png differ diff --git a/app/src/main/res/drawable-mdpi/museum_24px.png b/app/src/main/res/drawable-mdpi/museum_24px.png new file mode 100644 index 0000000..884788c Binary files /dev/null and b/app/src/main/res/drawable-mdpi/museum_24px.png differ diff --git a/app/src/main/res/drawable-mdpi/note_96px.png b/app/src/main/res/drawable-mdpi/note_96px.png new file mode 100644 index 0000000..da6d6c5 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/note_96px.png differ diff --git a/app/src/main/res/drawable-mdpi/or.png b/app/src/main/res/drawable-mdpi/or.png new file mode 100644 index 0000000..3c0a609 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/or.png differ diff --git a/app/src/main/res/drawable-mdpi/path_2145.png b/app/src/main/res/drawable-mdpi/path_2145.png new file mode 100644 index 0000000..19fb37e Binary files /dev/null and b/app/src/main/res/drawable-mdpi/path_2145.png differ diff --git a/app/src/main/res/drawable-mdpi/path__1.png b/app/src/main/res/drawable-mdpi/path__1.png new file mode 100644 index 0000000..19fb37e Binary files /dev/null and b/app/src/main/res/drawable-mdpi/path__1.png differ diff --git a/app/src/main/res/drawable-mdpi/phone.png b/app/src/main/res/drawable-mdpi/phone.png new file mode 100644 index 0000000..ac118c0 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/phone.png differ diff --git a/app/src/main/res/drawable-mdpi/phone_96px.png b/app/src/main/res/drawable-mdpi/phone_96px.png new file mode 100644 index 0000000..b0e623d Binary files /dev/null and b/app/src/main/res/drawable-mdpi/phone_96px.png differ diff --git a/app/src/main/res/drawable-mdpi/pill.png b/app/src/main/res/drawable-mdpi/pill.png new file mode 100644 index 0000000..42fdd09 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/pill.png differ diff --git a/app/src/main/res/drawable-mdpi/pill_96px.png b/app/src/main/res/drawable-mdpi/pill_96px.png new file mode 100644 index 0000000..5a29c2e Binary files /dev/null and b/app/src/main/res/drawable-mdpi/pill_96px.png differ diff --git a/app/src/main/res/drawable-mdpi/pill_hand.png b/app/src/main/res/drawable-mdpi/pill_hand.png new file mode 100644 index 0000000..ee5889a Binary files /dev/null and b/app/src/main/res/drawable-mdpi/pill_hand.png differ diff --git a/app/src/main/res/drawable-mdpi/pocdoc.png b/app/src/main/res/drawable-mdpi/pocdoc.png new file mode 100644 index 0000000..ab1576f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/pocdoc.png differ diff --git a/app/src/main/res/drawable-mdpi/prescription.png b/app/src/main/res/drawable-mdpi/prescription.png new file mode 100644 index 0000000..d1f7746 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/prescription.png differ diff --git a/app/src/main/res/drawable-mdpi/red.png b/app/src/main/res/drawable-mdpi/red.png new file mode 100644 index 0000000..b5d9f79 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/red.png differ diff --git a/app/src/main/res/drawable-mdpi/reminder.png b/app/src/main/res/drawable-mdpi/reminder.png new file mode 100644 index 0000000..29060fb Binary files /dev/null and b/app/src/main/res/drawable-mdpi/reminder.png differ diff --git a/app/src/main/res/drawable-mdpi/reminder_pic.png b/app/src/main/res/drawable-mdpi/reminder_pic.png new file mode 100644 index 0000000..b75e608 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/reminder_pic.png differ diff --git a/app/src/main/res/drawable-mdpi/separator.png b/app/src/main/res/drawable-mdpi/separator.png new file mode 100644 index 0000000..707de4f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/separator.png differ diff --git a/app/src/main/res/drawable-mdpi/settings.png b/app/src/main/res/drawable-mdpi/settings.png new file mode 100644 index 0000000..119d4c5 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/settings.png differ diff --git a/app/src/main/res/drawable-mdpi/settings_96px.png b/app/src/main/res/drawable-mdpi/settings_96px.png new file mode 100644 index 0000000..97af795 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/settings_96px.png differ diff --git a/app/src/main/res/drawable-mdpi/sign_in_button.png b/app/src/main/res/drawable-mdpi/sign_in_button.png new file mode 100644 index 0000000..b061274 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/sign_in_button.png differ diff --git a/app/src/main/res/drawable-mdpi/subtraction_2.png b/app/src/main/res/drawable-mdpi/subtraction_2.png new file mode 100644 index 0000000..846ec1e Binary files /dev/null and b/app/src/main/res/drawable-mdpi/subtraction_2.png differ diff --git a/app/src/main/res/drawable-mdpi/subtraction__1.png b/app/src/main/res/drawable-mdpi/subtraction__1.png new file mode 100644 index 0000000..846ec1e Binary files /dev/null and b/app/src/main/res/drawable-mdpi/subtraction__1.png differ diff --git a/app/src/main/res/drawable-mdpi/symptom_pic.png b/app/src/main/res/drawable-mdpi/symptom_pic.png new file mode 100644 index 0000000..a0cd387 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/symptom_pic.png differ diff --git a/app/src/main/res/drawable-mdpi/symptoms.png b/app/src/main/res/drawable-mdpi/symptoms.png new file mode 100644 index 0000000..6e2189c Binary files /dev/null and b/app/src/main/res/drawable-mdpi/symptoms.png differ diff --git a/app/src/main/res/drawable-mdpi/tablet.png b/app/src/main/res/drawable-mdpi/tablet.png new file mode 100644 index 0000000..d537f9f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/tablet.png differ diff --git a/app/src/main/res/drawable-mdpi/thermometer_96px.png b/app/src/main/res/drawable-mdpi/thermometer_96px.png new file mode 100644 index 0000000..238708f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/thermometer_96px.png differ diff --git a/app/src/main/res/drawable-mdpi/welcome_pic.png b/app/src/main/res/drawable-mdpi/welcome_pic.png new file mode 100644 index 0000000..408706f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/welcome_pic.png differ diff --git a/app/src/main/res/drawable-mdpi/yellow.png b/app/src/main/res/drawable-mdpi/yellow.png new file mode 100644 index 0000000..b7896bb Binary files /dev/null and b/app/src/main/res/drawable-mdpi/yellow.png differ diff --git a/app/src/main/res/drawable-v24/avd_anim.xml b/app/src/main/res/drawable-v24/avd_anim.xml new file mode 100644 index 0000000..689667c --- /dev/null +++ b/app/src/main/res/drawable-v24/avd_anim.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable-xhdpi/background_login.png b/app/src/main/res/drawable-xhdpi/background_login.png new file mode 100644 index 0000000..f296310 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/background_login.png differ diff --git a/app/src/main/res/drawable-xhdpi/background_registration.png b/app/src/main/res/drawable-xhdpi/background_registration.png new file mode 100644 index 0000000..e677bc7 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/background_registration.png differ diff --git a/app/src/main/res/drawable-xhdpi/baseline_email_24px.png b/app/src/main/res/drawable-xhdpi/baseline_email_24px.png new file mode 100644 index 0000000..aa4811a Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/baseline_email_24px.png differ diff --git a/app/src/main/res/drawable-xhdpi/blue_blood.png b/app/src/main/res/drawable-xhdpi/blue_blood.png new file mode 100644 index 0000000..e38b042 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/blue_blood.png differ diff --git a/app/src/main/res/drawable-xhdpi/capsule.png b/app/src/main/res/drawable-xhdpi/capsule.png new file mode 100644 index 0000000..04f808e Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/capsule.png differ diff --git a/app/src/main/res/drawable-xhdpi/clock_96px.png b/app/src/main/res/drawable-xhdpi/clock_96px.png new file mode 100644 index 0000000..0c01500 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/clock_96px.png differ diff --git a/app/src/main/res/drawable-xhdpi/component_1___1.png b/app/src/main/res/drawable-xhdpi/component_1___1.png new file mode 100644 index 0000000..deac6af Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/component_1___1.png differ diff --git a/app/src/main/res/drawable-xhdpi/content.png b/app/src/main/res/drawable-xhdpi/content.png new file mode 100644 index 0000000..ffb8614 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/content.png differ diff --git a/app/src/main/res/drawable-xhdpi/diary.png b/app/src/main/res/drawable-xhdpi/diary.png new file mode 100644 index 0000000..bcc31bb Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/diary.png differ diff --git a/app/src/main/res/drawable-xhdpi/diary_pic.png b/app/src/main/res/drawable-xhdpi/diary_pic.png new file mode 100644 index 0000000..3d7a7dd Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/diary_pic.png differ diff --git a/app/src/main/res/drawable-xhdpi/ellipse_31.png b/app/src/main/res/drawable-xhdpi/ellipse_31.png new file mode 100644 index 0000000..88b900c Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ellipse_31.png differ diff --git a/app/src/main/res/drawable-xhdpi/ellipse__1.png b/app/src/main/res/drawable-xhdpi/ellipse__1.png new file mode 100644 index 0000000..88b900c Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ellipse__1.png differ diff --git a/app/src/main/res/drawable-xhdpi/email_textview.png b/app/src/main/res/drawable-xhdpi/email_textview.png new file mode 100644 index 0000000..0d0695d Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/email_textview.png differ diff --git a/app/src/main/res/drawable-xhdpi/emergency.png b/app/src/main/res/drawable-xhdpi/emergency.png new file mode 100644 index 0000000..1e3cc60 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/emergency.png differ diff --git a/app/src/main/res/drawable-xhdpi/gender_blue.png b/app/src/main/res/drawable-xhdpi/gender_blue.png new file mode 100644 index 0000000..d32e977 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/gender_blue.png differ diff --git a/app/src/main/res/drawable-xhdpi/google.png b/app/src/main/res/drawable-xhdpi/google.png new file mode 100644 index 0000000..c4cd05e Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/google.png differ diff --git a/app/src/main/res/drawable-xhdpi/green.png b/app/src/main/res/drawable-xhdpi/green.png new file mode 100644 index 0000000..ae73334 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/green.png differ diff --git a/app/src/main/res/drawable-xhdpi/heart_blue.png b/app/src/main/res/drawable-xhdpi/heart_blue.png new file mode 100644 index 0000000..fef0d5a Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/heart_blue.png differ diff --git a/app/src/main/res/drawable-xhdpi/hospital.png b/app/src/main/res/drawable-xhdpi/hospital.png new file mode 100644 index 0000000..4c874ce Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/hospital.png differ diff --git a/app/src/main/res/drawable-xhdpi/hospital_3_96px.png b/app/src/main/res/drawable-xhdpi/hospital_3_96px.png new file mode 100644 index 0000000..423c3fa Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/hospital_3_96px.png differ diff --git a/app/src/main/res/drawable-xhdpi/icon_material_mail_outline.png b/app/src/main/res/drawable-xhdpi/icon_material_mail_outline.png new file mode 100644 index 0000000..fc3ec49 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/icon_material_mail_outline.png differ diff --git a/app/src/main/res/drawable-xhdpi/icons8_family_96.png b/app/src/main/res/drawable-xhdpi/icons8_family_96.png new file mode 100644 index 0000000..3082053 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/icons8_family_96.png differ diff --git a/app/src/main/res/drawable-xhdpi/icons8_glucometer_30.png b/app/src/main/res/drawable-xhdpi/icons8_glucometer_30.png new file mode 100644 index 0000000..04ff63f Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/icons8_glucometer_30.png differ diff --git a/app/src/main/res/drawable-xhdpi/icons8_height_96.png b/app/src/main/res/drawable-xhdpi/icons8_height_96.png new file mode 100644 index 0000000..96534b6 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/icons8_height_96.png differ diff --git a/app/src/main/res/drawable-xhdpi/icons8_medical_history_96.png b/app/src/main/res/drawable-xhdpi/icons8_medical_history_96.png new file mode 100644 index 0000000..bced139 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/icons8_medical_history_96.png differ diff --git a/app/src/main/res/drawable-xhdpi/icons8_multicultural_people_100.png b/app/src/main/res/drawable-xhdpi/icons8_multicultural_people_100.png new file mode 100644 index 0000000..51d4886 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/icons8_multicultural_people_100.png differ diff --git a/app/src/main/res/drawable-xhdpi/icons8_no_food_96.png b/app/src/main/res/drawable-xhdpi/icons8_no_food_96.png new file mode 100644 index 0000000..c826cc4 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/icons8_no_food_96.png differ diff --git a/app/src/main/res/drawable-xhdpi/icons8_pressure_30.png b/app/src/main/res/drawable-xhdpi/icons8_pressure_30.png new file mode 100644 index 0000000..20cb814 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/icons8_pressure_30.png differ diff --git a/app/src/main/res/drawable-xhdpi/icons8_scale_64.png b/app/src/main/res/drawable-xhdpi/icons8_scale_64.png new file mode 100644 index 0000000..19582dc Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/icons8_scale_64.png differ diff --git a/app/src/main/res/drawable-xhdpi/icons8_sneeze_96.png b/app/src/main/res/drawable-xhdpi/icons8_sneeze_96.png new file mode 100644 index 0000000..8e66977 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/icons8_sneeze_96.png differ diff --git a/app/src/main/res/drawable-xhdpi/inhaler.png b/app/src/main/res/drawable-xhdpi/inhaler.png new file mode 100644 index 0000000..83642f2 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/inhaler.png differ diff --git a/app/src/main/res/drawable-xhdpi/injection.png b/app/src/main/res/drawable-xhdpi/injection.png new file mode 100644 index 0000000..2e04b0b Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/injection.png differ diff --git a/app/src/main/res/drawable-xhdpi/lines.png b/app/src/main/res/drawable-xhdpi/lines.png new file mode 100644 index 0000000..20d8b92 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/lines.png differ diff --git a/app/src/main/res/drawable-xhdpi/liquid.png b/app/src/main/res/drawable-xhdpi/liquid.png new file mode 100644 index 0000000..42b6ef2 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/liquid.png differ diff --git a/app/src/main/res/drawable-xhdpi/lock.png b/app/src/main/res/drawable-xhdpi/lock.png new file mode 100644 index 0000000..8b8ee5f Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/lock.png differ diff --git a/app/src/main/res/drawable-xhdpi/logo_plus.png b/app/src/main/res/drawable-xhdpi/logo_plus.png new file mode 100644 index 0000000..51e616f Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/logo_plus.png differ diff --git a/app/src/main/res/drawable-xhdpi/mainpicture.png b/app/src/main/res/drawable-xhdpi/mainpicture.png new file mode 100644 index 0000000..fd4d4d9 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/mainpicture.png differ diff --git a/app/src/main/res/drawable-xhdpi/medicalid.png b/app/src/main/res/drawable-xhdpi/medicalid.png new file mode 100644 index 0000000..5ef54b7 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/medicalid.png differ diff --git a/app/src/main/res/drawable-xhdpi/medication_blank.png b/app/src/main/res/drawable-xhdpi/medication_blank.png new file mode 100644 index 0000000..5eedada Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/medication_blank.png differ diff --git a/app/src/main/res/drawable-xhdpi/menu_book_24px.png b/app/src/main/res/drawable-xhdpi/menu_book_24px.png new file mode 100644 index 0000000..921031a Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/menu_book_24px.png differ diff --git a/app/src/main/res/drawable-xhdpi/museum_24px.png b/app/src/main/res/drawable-xhdpi/museum_24px.png new file mode 100644 index 0000000..d04865d Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/museum_24px.png differ diff --git a/app/src/main/res/drawable-xhdpi/note_96px.png b/app/src/main/res/drawable-xhdpi/note_96px.png new file mode 100644 index 0000000..302d576 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/note_96px.png differ diff --git a/app/src/main/res/drawable-xhdpi/or.png b/app/src/main/res/drawable-xhdpi/or.png new file mode 100644 index 0000000..b13e988 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/or.png differ diff --git a/app/src/main/res/drawable-xhdpi/path_2145.png b/app/src/main/res/drawable-xhdpi/path_2145.png new file mode 100644 index 0000000..c576883 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/path_2145.png differ diff --git a/app/src/main/res/drawable-xhdpi/path__1.png b/app/src/main/res/drawable-xhdpi/path__1.png new file mode 100644 index 0000000..c576883 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/path__1.png differ diff --git a/app/src/main/res/drawable-xhdpi/phone.png b/app/src/main/res/drawable-xhdpi/phone.png new file mode 100644 index 0000000..db07d44 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/phone.png differ diff --git a/app/src/main/res/drawable-xhdpi/phone_96px.png b/app/src/main/res/drawable-xhdpi/phone_96px.png new file mode 100644 index 0000000..0455c92 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/phone_96px.png differ diff --git a/app/src/main/res/drawable-xhdpi/pill.png b/app/src/main/res/drawable-xhdpi/pill.png new file mode 100644 index 0000000..5588888 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/pill.png differ diff --git a/app/src/main/res/drawable-xhdpi/pill_96px.png b/app/src/main/res/drawable-xhdpi/pill_96px.png new file mode 100644 index 0000000..c7d55fc Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/pill_96px.png differ diff --git a/app/src/main/res/drawable-xhdpi/pill_hand.png b/app/src/main/res/drawable-xhdpi/pill_hand.png new file mode 100644 index 0000000..ad048ff Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/pill_hand.png differ diff --git a/app/src/main/res/drawable-xhdpi/pocdoc.png b/app/src/main/res/drawable-xhdpi/pocdoc.png new file mode 100644 index 0000000..9e6e22f Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/pocdoc.png differ diff --git a/app/src/main/res/drawable-xhdpi/prescription.png b/app/src/main/res/drawable-xhdpi/prescription.png new file mode 100644 index 0000000..721e69c Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/prescription.png differ diff --git a/app/src/main/res/drawable-xhdpi/red.png b/app/src/main/res/drawable-xhdpi/red.png new file mode 100644 index 0000000..aaf1e63 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/red.png differ diff --git a/app/src/main/res/drawable-xhdpi/reminder.png b/app/src/main/res/drawable-xhdpi/reminder.png new file mode 100644 index 0000000..72029b6 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/reminder.png differ diff --git a/app/src/main/res/drawable-xhdpi/reminder_pic.png b/app/src/main/res/drawable-xhdpi/reminder_pic.png new file mode 100644 index 0000000..162ac8a Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/reminder_pic.png differ diff --git a/app/src/main/res/drawable-xhdpi/separator.png b/app/src/main/res/drawable-xhdpi/separator.png new file mode 100644 index 0000000..a2099b0 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/separator.png differ diff --git a/app/src/main/res/drawable-xhdpi/settings.png b/app/src/main/res/drawable-xhdpi/settings.png new file mode 100644 index 0000000..9ab56bc Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/settings.png differ diff --git a/app/src/main/res/drawable-xhdpi/settings_96px.png b/app/src/main/res/drawable-xhdpi/settings_96px.png new file mode 100644 index 0000000..ea98cf9 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/settings_96px.png differ diff --git a/app/src/main/res/drawable-xhdpi/sign_in_button.png b/app/src/main/res/drawable-xhdpi/sign_in_button.png new file mode 100644 index 0000000..6094ddb Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/sign_in_button.png differ diff --git a/app/src/main/res/drawable-xhdpi/subtraction_2.png b/app/src/main/res/drawable-xhdpi/subtraction_2.png new file mode 100644 index 0000000..84a8058 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/subtraction_2.png differ diff --git a/app/src/main/res/drawable-xhdpi/subtraction__1.png b/app/src/main/res/drawable-xhdpi/subtraction__1.png new file mode 100644 index 0000000..84a8058 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/subtraction__1.png differ diff --git a/app/src/main/res/drawable-xhdpi/symptom_pic.png b/app/src/main/res/drawable-xhdpi/symptom_pic.png new file mode 100644 index 0000000..6a2c215 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/symptom_pic.png differ diff --git a/app/src/main/res/drawable-xhdpi/symptoms.png b/app/src/main/res/drawable-xhdpi/symptoms.png new file mode 100644 index 0000000..c66bfad Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/symptoms.png differ diff --git a/app/src/main/res/drawable-xhdpi/tablet.png b/app/src/main/res/drawable-xhdpi/tablet.png new file mode 100644 index 0000000..f8beb91 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/tablet.png differ diff --git a/app/src/main/res/drawable-xhdpi/thermometer_96px.png b/app/src/main/res/drawable-xhdpi/thermometer_96px.png new file mode 100644 index 0000000..caba493 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/thermometer_96px.png differ diff --git a/app/src/main/res/drawable-xhdpi/welcome_pic.png b/app/src/main/res/drawable-xhdpi/welcome_pic.png new file mode 100644 index 0000000..267879b Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/welcome_pic.png differ diff --git a/app/src/main/res/drawable-xhdpi/yellow.png b/app/src/main/res/drawable-xhdpi/yellow.png new file mode 100644 index 0000000..f76eb5f Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/yellow.png differ diff --git a/app/src/main/res/drawable-xxhdpi/background_login.png b/app/src/main/res/drawable-xxhdpi/background_login.png new file mode 100644 index 0000000..d7904ca Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/background_login.png differ diff --git a/app/src/main/res/drawable-xxhdpi/background_registration.png b/app/src/main/res/drawable-xxhdpi/background_registration.png new file mode 100644 index 0000000..f2d0834 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/background_registration.png differ diff --git a/app/src/main/res/drawable-xxhdpi/baseline_email_24px.png b/app/src/main/res/drawable-xxhdpi/baseline_email_24px.png new file mode 100644 index 0000000..03189df Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/baseline_email_24px.png differ diff --git a/app/src/main/res/drawable-xxhdpi/blue_blood.png b/app/src/main/res/drawable-xxhdpi/blue_blood.png new file mode 100644 index 0000000..9e27799 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/blue_blood.png differ diff --git a/app/src/main/res/drawable-xxhdpi/capsule.png b/app/src/main/res/drawable-xxhdpi/capsule.png new file mode 100644 index 0000000..510e773 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/capsule.png differ diff --git a/app/src/main/res/drawable-xxhdpi/clock_96px.png b/app/src/main/res/drawable-xxhdpi/clock_96px.png new file mode 100644 index 0000000..60fc343 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/clock_96px.png differ diff --git a/app/src/main/res/drawable-xxhdpi/component_1___1.png b/app/src/main/res/drawable-xxhdpi/component_1___1.png new file mode 100644 index 0000000..8d6ac02 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/component_1___1.png differ diff --git a/app/src/main/res/drawable-xxhdpi/content.png b/app/src/main/res/drawable-xxhdpi/content.png new file mode 100644 index 0000000..59e7c1e Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/content.png differ diff --git a/app/src/main/res/drawable-xxhdpi/diary.png b/app/src/main/res/drawable-xxhdpi/diary.png new file mode 100644 index 0000000..24b8d38 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/diary.png differ diff --git a/app/src/main/res/drawable-xxhdpi/diary_pic.png b/app/src/main/res/drawable-xxhdpi/diary_pic.png new file mode 100644 index 0000000..576b3c8 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/diary_pic.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ellipse_31.png b/app/src/main/res/drawable-xxhdpi/ellipse_31.png new file mode 100644 index 0000000..f26bcd6 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ellipse_31.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ellipse__1.png b/app/src/main/res/drawable-xxhdpi/ellipse__1.png new file mode 100644 index 0000000..f26bcd6 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ellipse__1.png differ diff --git a/app/src/main/res/drawable-xxhdpi/email_textview.png b/app/src/main/res/drawable-xxhdpi/email_textview.png new file mode 100644 index 0000000..31a6533 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/email_textview.png differ diff --git a/app/src/main/res/drawable-xxhdpi/emergency.png b/app/src/main/res/drawable-xxhdpi/emergency.png new file mode 100644 index 0000000..a5af265 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/emergency.png differ diff --git a/app/src/main/res/drawable-xxhdpi/gender_blue.png b/app/src/main/res/drawable-xxhdpi/gender_blue.png new file mode 100644 index 0000000..a206314 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/gender_blue.png differ diff --git a/app/src/main/res/drawable-xxhdpi/google.png b/app/src/main/res/drawable-xxhdpi/google.png new file mode 100644 index 0000000..a95ec69 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/google.png differ diff --git a/app/src/main/res/drawable-xxhdpi/green.png b/app/src/main/res/drawable-xxhdpi/green.png new file mode 100644 index 0000000..b0f181b Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/green.png differ diff --git a/app/src/main/res/drawable-xxhdpi/heart_blue.png b/app/src/main/res/drawable-xxhdpi/heart_blue.png new file mode 100644 index 0000000..10a3ca8 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/heart_blue.png differ diff --git a/app/src/main/res/drawable-xxhdpi/hospital.png b/app/src/main/res/drawable-xxhdpi/hospital.png new file mode 100644 index 0000000..a518219 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/hospital.png differ diff --git a/app/src/main/res/drawable-xxhdpi/hospital_3_96px.png b/app/src/main/res/drawable-xxhdpi/hospital_3_96px.png new file mode 100644 index 0000000..e16e390 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/hospital_3_96px.png differ diff --git a/app/src/main/res/drawable-xxhdpi/icon_material_mail_outline.png b/app/src/main/res/drawable-xxhdpi/icon_material_mail_outline.png new file mode 100644 index 0000000..147564d Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/icon_material_mail_outline.png differ diff --git a/app/src/main/res/drawable-xxhdpi/icons8_family_96.png b/app/src/main/res/drawable-xxhdpi/icons8_family_96.png new file mode 100644 index 0000000..c3e178d Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/icons8_family_96.png differ diff --git a/app/src/main/res/drawable-xxhdpi/icons8_glucometer_30.png b/app/src/main/res/drawable-xxhdpi/icons8_glucometer_30.png new file mode 100644 index 0000000..fce465b Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/icons8_glucometer_30.png differ diff --git a/app/src/main/res/drawable-xxhdpi/icons8_height_96.png b/app/src/main/res/drawable-xxhdpi/icons8_height_96.png new file mode 100644 index 0000000..366bb59 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/icons8_height_96.png differ diff --git a/app/src/main/res/drawable-xxhdpi/icons8_medical_history_96.png b/app/src/main/res/drawable-xxhdpi/icons8_medical_history_96.png new file mode 100644 index 0000000..aefd566 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/icons8_medical_history_96.png differ diff --git a/app/src/main/res/drawable-xxhdpi/icons8_multicultural_people_100.png b/app/src/main/res/drawable-xxhdpi/icons8_multicultural_people_100.png new file mode 100644 index 0000000..8414009 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/icons8_multicultural_people_100.png differ diff --git a/app/src/main/res/drawable-xxhdpi/icons8_no_food_96.png b/app/src/main/res/drawable-xxhdpi/icons8_no_food_96.png new file mode 100644 index 0000000..651e648 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/icons8_no_food_96.png differ diff --git a/app/src/main/res/drawable-xxhdpi/icons8_pressure_30.png b/app/src/main/res/drawable-xxhdpi/icons8_pressure_30.png new file mode 100644 index 0000000..03a94b6 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/icons8_pressure_30.png differ diff --git a/app/src/main/res/drawable-xxhdpi/icons8_scale_64.png b/app/src/main/res/drawable-xxhdpi/icons8_scale_64.png new file mode 100644 index 0000000..3cf765b Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/icons8_scale_64.png differ diff --git a/app/src/main/res/drawable-xxhdpi/icons8_sneeze_96.png b/app/src/main/res/drawable-xxhdpi/icons8_sneeze_96.png new file mode 100644 index 0000000..bc1b2f7 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/icons8_sneeze_96.png differ diff --git a/app/src/main/res/drawable-xxhdpi/inhaler.png b/app/src/main/res/drawable-xxhdpi/inhaler.png new file mode 100644 index 0000000..fdb5e85 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/inhaler.png differ diff --git a/app/src/main/res/drawable-xxhdpi/injection.png b/app/src/main/res/drawable-xxhdpi/injection.png new file mode 100644 index 0000000..35b42d4 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/injection.png differ diff --git a/app/src/main/res/drawable-xxhdpi/lines.png b/app/src/main/res/drawable-xxhdpi/lines.png new file mode 100644 index 0000000..d3e943c Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/lines.png differ diff --git a/app/src/main/res/drawable-xxhdpi/liquid.png b/app/src/main/res/drawable-xxhdpi/liquid.png new file mode 100644 index 0000000..b54a2c2 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/liquid.png differ diff --git a/app/src/main/res/drawable-xxhdpi/lock.png b/app/src/main/res/drawable-xxhdpi/lock.png new file mode 100644 index 0000000..88fff96 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/lock.png differ diff --git a/app/src/main/res/drawable-xxhdpi/logo_plus.png b/app/src/main/res/drawable-xxhdpi/logo_plus.png new file mode 100644 index 0000000..c751df9 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/logo_plus.png differ diff --git a/app/src/main/res/drawable-xxhdpi/mainpicture.png b/app/src/main/res/drawable-xxhdpi/mainpicture.png new file mode 100644 index 0000000..764dbec Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/mainpicture.png differ diff --git a/app/src/main/res/drawable-xxhdpi/medicalid.png b/app/src/main/res/drawable-xxhdpi/medicalid.png new file mode 100644 index 0000000..539184a Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/medicalid.png differ diff --git a/app/src/main/res/drawable-xxhdpi/medication_blank.png b/app/src/main/res/drawable-xxhdpi/medication_blank.png new file mode 100644 index 0000000..874dbf1 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/medication_blank.png differ diff --git a/app/src/main/res/drawable-xxhdpi/menu_book_24px.png b/app/src/main/res/drawable-xxhdpi/menu_book_24px.png new file mode 100644 index 0000000..d95ddf3 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/menu_book_24px.png differ diff --git a/app/src/main/res/drawable-xxhdpi/museum_24px.png b/app/src/main/res/drawable-xxhdpi/museum_24px.png new file mode 100644 index 0000000..6eccb36 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/museum_24px.png differ diff --git a/app/src/main/res/drawable-xxhdpi/note_96px.png b/app/src/main/res/drawable-xxhdpi/note_96px.png new file mode 100644 index 0000000..c95653c Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/note_96px.png differ diff --git a/app/src/main/res/drawable-xxhdpi/or.png b/app/src/main/res/drawable-xxhdpi/or.png new file mode 100644 index 0000000..9257a0a Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/or.png differ diff --git a/app/src/main/res/drawable-xxhdpi/path_2145.png b/app/src/main/res/drawable-xxhdpi/path_2145.png new file mode 100644 index 0000000..00e823b Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/path_2145.png differ diff --git a/app/src/main/res/drawable-xxhdpi/path__1.png b/app/src/main/res/drawable-xxhdpi/path__1.png new file mode 100644 index 0000000..00e823b Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/path__1.png differ diff --git a/app/src/main/res/drawable-xxhdpi/phone.png b/app/src/main/res/drawable-xxhdpi/phone.png new file mode 100644 index 0000000..bee3180 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/phone.png differ diff --git a/app/src/main/res/drawable-xxhdpi/phone_96px.png b/app/src/main/res/drawable-xxhdpi/phone_96px.png new file mode 100644 index 0000000..d729d6d Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/phone_96px.png differ diff --git a/app/src/main/res/drawable-xxhdpi/pill.png b/app/src/main/res/drawable-xxhdpi/pill.png new file mode 100644 index 0000000..e6355ef Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/pill.png differ diff --git a/app/src/main/res/drawable-xxhdpi/pill_96px.png b/app/src/main/res/drawable-xxhdpi/pill_96px.png new file mode 100644 index 0000000..9c2cd50 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/pill_96px.png differ diff --git a/app/src/main/res/drawable-xxhdpi/pill_hand.png b/app/src/main/res/drawable-xxhdpi/pill_hand.png new file mode 100644 index 0000000..f16f930 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/pill_hand.png differ diff --git a/app/src/main/res/drawable-xxhdpi/pocdoc.png b/app/src/main/res/drawable-xxhdpi/pocdoc.png new file mode 100644 index 0000000..2f9a383 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/pocdoc.png differ diff --git a/app/src/main/res/drawable-xxhdpi/prescription.png b/app/src/main/res/drawable-xxhdpi/prescription.png new file mode 100644 index 0000000..2cd8e50 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/prescription.png differ diff --git a/app/src/main/res/drawable-xxhdpi/red.png b/app/src/main/res/drawable-xxhdpi/red.png new file mode 100644 index 0000000..fa0afa1 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/red.png differ diff --git a/app/src/main/res/drawable-xxhdpi/reminder.png b/app/src/main/res/drawable-xxhdpi/reminder.png new file mode 100644 index 0000000..514a49d Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/reminder.png differ diff --git a/app/src/main/res/drawable-xxhdpi/reminder_pic.png b/app/src/main/res/drawable-xxhdpi/reminder_pic.png new file mode 100644 index 0000000..bc64e34 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/reminder_pic.png differ diff --git a/app/src/main/res/drawable-xxhdpi/separator.png b/app/src/main/res/drawable-xxhdpi/separator.png new file mode 100644 index 0000000..4002a7a Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/separator.png differ diff --git a/app/src/main/res/drawable-xxhdpi/settings.png b/app/src/main/res/drawable-xxhdpi/settings.png new file mode 100644 index 0000000..8b7db08 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/settings.png differ diff --git a/app/src/main/res/drawable-xxhdpi/settings_96px.png b/app/src/main/res/drawable-xxhdpi/settings_96px.png new file mode 100644 index 0000000..18fe750 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/settings_96px.png differ diff --git a/app/src/main/res/drawable-xxhdpi/sign_in_button.png b/app/src/main/res/drawable-xxhdpi/sign_in_button.png new file mode 100644 index 0000000..3e0afb1 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/sign_in_button.png differ diff --git a/app/src/main/res/drawable-xxhdpi/subtraction_2.png b/app/src/main/res/drawable-xxhdpi/subtraction_2.png new file mode 100644 index 0000000..c041574 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/subtraction_2.png differ diff --git a/app/src/main/res/drawable-xxhdpi/subtraction__1.png b/app/src/main/res/drawable-xxhdpi/subtraction__1.png new file mode 100644 index 0000000..c041574 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/subtraction__1.png differ diff --git a/app/src/main/res/drawable-xxhdpi/symptom_pic.png b/app/src/main/res/drawable-xxhdpi/symptom_pic.png new file mode 100644 index 0000000..27288db Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/symptom_pic.png differ diff --git a/app/src/main/res/drawable-xxhdpi/symptoms.png b/app/src/main/res/drawable-xxhdpi/symptoms.png new file mode 100644 index 0000000..abfea62 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/symptoms.png differ diff --git a/app/src/main/res/drawable-xxhdpi/tablet.png b/app/src/main/res/drawable-xxhdpi/tablet.png new file mode 100644 index 0000000..032f0b7 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/tablet.png differ diff --git a/app/src/main/res/drawable-xxhdpi/thermometer_96px.png b/app/src/main/res/drawable-xxhdpi/thermometer_96px.png new file mode 100644 index 0000000..25ddeb3 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/thermometer_96px.png differ diff --git a/app/src/main/res/drawable-xxhdpi/welcome_pic.png b/app/src/main/res/drawable-xxhdpi/welcome_pic.png new file mode 100644 index 0000000..e6c4112 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/welcome_pic.png differ diff --git a/app/src/main/res/drawable-xxhdpi/yellow.png b/app/src/main/res/drawable-xxhdpi/yellow.png new file mode 100644 index 0000000..4a9ee5a Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/yellow.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/background_login.png b/app/src/main/res/drawable-xxxhdpi/background_login.png new file mode 100644 index 0000000..179bf57 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/background_login.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/background_registration.png b/app/src/main/res/drawable-xxxhdpi/background_registration.png new file mode 100644 index 0000000..21cdbc8 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/background_registration.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/baseline_email_24px.png b/app/src/main/res/drawable-xxxhdpi/baseline_email_24px.png new file mode 100644 index 0000000..d25b453 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/baseline_email_24px.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/blue_blood.png b/app/src/main/res/drawable-xxxhdpi/blue_blood.png new file mode 100644 index 0000000..50f4d07 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/blue_blood.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/capsule.png b/app/src/main/res/drawable-xxxhdpi/capsule.png new file mode 100644 index 0000000..7bdfb92 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/capsule.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/clock_96px.png b/app/src/main/res/drawable-xxxhdpi/clock_96px.png new file mode 100644 index 0000000..d872c0e Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/clock_96px.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/component_1___1.png b/app/src/main/res/drawable-xxxhdpi/component_1___1.png new file mode 100644 index 0000000..56ed723 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/component_1___1.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/content.png b/app/src/main/res/drawable-xxxhdpi/content.png new file mode 100644 index 0000000..b708404 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/content.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/diary.png b/app/src/main/res/drawable-xxxhdpi/diary.png new file mode 100644 index 0000000..3731462 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/diary.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/diary_pic.png b/app/src/main/res/drawable-xxxhdpi/diary_pic.png new file mode 100644 index 0000000..5b72781 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/diary_pic.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ellipse_31.png b/app/src/main/res/drawable-xxxhdpi/ellipse_31.png new file mode 100644 index 0000000..c275429 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ellipse_31.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ellipse__1.png b/app/src/main/res/drawable-xxxhdpi/ellipse__1.png new file mode 100644 index 0000000..c275429 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ellipse__1.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/email_textview.png b/app/src/main/res/drawable-xxxhdpi/email_textview.png new file mode 100644 index 0000000..4fd5c19 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/email_textview.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/emergency.png b/app/src/main/res/drawable-xxxhdpi/emergency.png new file mode 100644 index 0000000..ff47277 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/emergency.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/gender_blue.png b/app/src/main/res/drawable-xxxhdpi/gender_blue.png new file mode 100644 index 0000000..b0528bc Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/gender_blue.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/google.png b/app/src/main/res/drawable-xxxhdpi/google.png new file mode 100644 index 0000000..a50af39 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/google.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/green.png b/app/src/main/res/drawable-xxxhdpi/green.png new file mode 100644 index 0000000..194123b Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/green.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/heart_blue.png b/app/src/main/res/drawable-xxxhdpi/heart_blue.png new file mode 100644 index 0000000..57f6029 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/heart_blue.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/hospital.png b/app/src/main/res/drawable-xxxhdpi/hospital.png new file mode 100644 index 0000000..c8665c6 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/hospital.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/hospital_3_96px.png b/app/src/main/res/drawable-xxxhdpi/hospital_3_96px.png new file mode 100644 index 0000000..0381858 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/hospital_3_96px.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/icon_material_mail_outline.png b/app/src/main/res/drawable-xxxhdpi/icon_material_mail_outline.png new file mode 100644 index 0000000..6e4f48c Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/icon_material_mail_outline.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/icons8_family_96.png b/app/src/main/res/drawable-xxxhdpi/icons8_family_96.png new file mode 100644 index 0000000..22da098 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/icons8_family_96.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/icons8_glucometer_30.png b/app/src/main/res/drawable-xxxhdpi/icons8_glucometer_30.png new file mode 100644 index 0000000..ebd0d26 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/icons8_glucometer_30.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/icons8_height_96.png b/app/src/main/res/drawable-xxxhdpi/icons8_height_96.png new file mode 100644 index 0000000..cbf9ea3 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/icons8_height_96.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/icons8_medical_history_96.png b/app/src/main/res/drawable-xxxhdpi/icons8_medical_history_96.png new file mode 100644 index 0000000..9a478e1 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/icons8_medical_history_96.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/icons8_multicultural_people_100.png b/app/src/main/res/drawable-xxxhdpi/icons8_multicultural_people_100.png new file mode 100644 index 0000000..586b3a3 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/icons8_multicultural_people_100.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/icons8_no_food_96.png b/app/src/main/res/drawable-xxxhdpi/icons8_no_food_96.png new file mode 100644 index 0000000..1ff7cd5 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/icons8_no_food_96.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/icons8_pressure_30.png b/app/src/main/res/drawable-xxxhdpi/icons8_pressure_30.png new file mode 100644 index 0000000..915e71c Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/icons8_pressure_30.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/icons8_scale_64.png b/app/src/main/res/drawable-xxxhdpi/icons8_scale_64.png new file mode 100644 index 0000000..3f3a1bd Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/icons8_scale_64.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/icons8_sneeze_96.png b/app/src/main/res/drawable-xxxhdpi/icons8_sneeze_96.png new file mode 100644 index 0000000..370b045 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/icons8_sneeze_96.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/inhaler.png b/app/src/main/res/drawable-xxxhdpi/inhaler.png new file mode 100644 index 0000000..ce96242 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/inhaler.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/injection.png b/app/src/main/res/drawable-xxxhdpi/injection.png new file mode 100644 index 0000000..d9c7397 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/injection.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/lines.png b/app/src/main/res/drawable-xxxhdpi/lines.png new file mode 100644 index 0000000..a52b30c Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/lines.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/liquid.png b/app/src/main/res/drawable-xxxhdpi/liquid.png new file mode 100644 index 0000000..4bc219f Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/liquid.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/lock.png b/app/src/main/res/drawable-xxxhdpi/lock.png new file mode 100644 index 0000000..665bbd0 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/lock.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/logo_plus.png b/app/src/main/res/drawable-xxxhdpi/logo_plus.png new file mode 100644 index 0000000..04c3226 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/logo_plus.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/mainpicture.png b/app/src/main/res/drawable-xxxhdpi/mainpicture.png new file mode 100644 index 0000000..eb15f15 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/mainpicture.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/medicalid.png b/app/src/main/res/drawable-xxxhdpi/medicalid.png new file mode 100644 index 0000000..da86f8b Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/medicalid.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/medication_blank.png b/app/src/main/res/drawable-xxxhdpi/medication_blank.png new file mode 100644 index 0000000..553c350 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/medication_blank.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/menu_book_24px.png b/app/src/main/res/drawable-xxxhdpi/menu_book_24px.png new file mode 100644 index 0000000..00f38f9 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/menu_book_24px.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/museum_24px.png b/app/src/main/res/drawable-xxxhdpi/museum_24px.png new file mode 100644 index 0000000..b28ec32 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/museum_24px.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/note_96px.png b/app/src/main/res/drawable-xxxhdpi/note_96px.png new file mode 100644 index 0000000..bd48758 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/note_96px.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/or.png b/app/src/main/res/drawable-xxxhdpi/or.png new file mode 100644 index 0000000..c58ecca Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/or.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/path_2145.png b/app/src/main/res/drawable-xxxhdpi/path_2145.png new file mode 100644 index 0000000..59edfda Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/path_2145.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/path__1.png b/app/src/main/res/drawable-xxxhdpi/path__1.png new file mode 100644 index 0000000..59edfda Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/path__1.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/phone.png b/app/src/main/res/drawable-xxxhdpi/phone.png new file mode 100644 index 0000000..efc0e7d Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/phone.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/phone_96px.png b/app/src/main/res/drawable-xxxhdpi/phone_96px.png new file mode 100644 index 0000000..dc86bae Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/phone_96px.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/pill.png b/app/src/main/res/drawable-xxxhdpi/pill.png new file mode 100644 index 0000000..3d51578 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/pill.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/pill_96px.png b/app/src/main/res/drawable-xxxhdpi/pill_96px.png new file mode 100644 index 0000000..979c77c Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/pill_96px.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/pill_hand.png b/app/src/main/res/drawable-xxxhdpi/pill_hand.png new file mode 100644 index 0000000..df746d6 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/pill_hand.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/pocdoc.png b/app/src/main/res/drawable-xxxhdpi/pocdoc.png new file mode 100644 index 0000000..0382bc0 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/pocdoc.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/prescription.png b/app/src/main/res/drawable-xxxhdpi/prescription.png new file mode 100644 index 0000000..c2cad77 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/prescription.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/red.png b/app/src/main/res/drawable-xxxhdpi/red.png new file mode 100644 index 0000000..cecdb22 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/red.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/reminder.png b/app/src/main/res/drawable-xxxhdpi/reminder.png new file mode 100644 index 0000000..1169481 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/reminder.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/reminder_pic.png b/app/src/main/res/drawable-xxxhdpi/reminder_pic.png new file mode 100644 index 0000000..5c1a193 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/reminder_pic.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/separator.png b/app/src/main/res/drawable-xxxhdpi/separator.png new file mode 100644 index 0000000..d9e54f0 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/separator.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/settings.png b/app/src/main/res/drawable-xxxhdpi/settings.png new file mode 100644 index 0000000..3743f17 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/settings.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/settings_96px.png b/app/src/main/res/drawable-xxxhdpi/settings_96px.png new file mode 100644 index 0000000..5ffcce4 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/settings_96px.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/sign_in_button.png b/app/src/main/res/drawable-xxxhdpi/sign_in_button.png new file mode 100644 index 0000000..69e4413 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/sign_in_button.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/subtraction_2.png b/app/src/main/res/drawable-xxxhdpi/subtraction_2.png new file mode 100644 index 0000000..220ae05 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/subtraction_2.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/subtraction__1.png b/app/src/main/res/drawable-xxxhdpi/subtraction__1.png new file mode 100644 index 0000000..220ae05 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/subtraction__1.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/symptom_pic.png b/app/src/main/res/drawable-xxxhdpi/symptom_pic.png new file mode 100644 index 0000000..49df765 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/symptom_pic.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/symptoms.png b/app/src/main/res/drawable-xxxhdpi/symptoms.png new file mode 100644 index 0000000..31952a3 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/symptoms.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/tablet.png b/app/src/main/res/drawable-xxxhdpi/tablet.png new file mode 100644 index 0000000..e5f5171 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/tablet.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/thermometer_96px.png b/app/src/main/res/drawable-xxxhdpi/thermometer_96px.png new file mode 100644 index 0000000..1ce9721 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/thermometer_96px.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/welcome_pic.png b/app/src/main/res/drawable-xxxhdpi/welcome_pic.png new file mode 100644 index 0000000..87bb101 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/welcome_pic.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/yellow.png b/app/src/main/res/drawable-xxxhdpi/yellow.png new file mode 100644 index 0000000..a0e89f8 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/yellow.png differ diff --git a/app/src/main/res/drawable/card_bg_med.xml b/app/src/main/res/drawable/card_bg_med.xml new file mode 100644 index 0000000..89402ab --- /dev/null +++ b/app/src/main/res/drawable/card_bg_med.xml @@ -0,0 +1,14 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/card_recyclerview_bg.xml b/app/src/main/res/drawable/card_recyclerview_bg.xml new file mode 100644 index 0000000..c31c215 --- /dev/null +++ b/app/src/main/res/drawable/card_recyclerview_bg.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/diagnosis_button.xml b/app/src/main/res/drawable/diagnosis_button.xml new file mode 100644 index 0000000..8a89993 --- /dev/null +++ b/app/src/main/res/drawable/diagnosis_button.xml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/diagnosis_item.xml b/app/src/main/res/drawable/diagnosis_item.xml new file mode 100644 index 0000000..58f0978 --- /dev/null +++ b/app/src/main/res/drawable/diagnosis_item.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/gradient.xml b/app/src/main/res/drawable/gradient.xml new file mode 100644 index 0000000..0f35d2a --- /dev/null +++ b/app/src/main/res/drawable/gradient.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/gradient_button.xml b/app/src/main/res/drawable/gradient_button.xml new file mode 100644 index 0000000..d2c825c --- /dev/null +++ b/app/src/main/res/drawable/gradient_button.xml @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_baseline_add_24.xml b/app/src/main/res/drawable/ic_baseline_add_24.xml new file mode 100644 index 0000000..eb23254 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_add_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_baseline_alarm_24.xml b/app/src/main/res/drawable/ic_baseline_alarm_24.xml new file mode 100644 index 0000000..5c0154b --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_alarm_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_baseline_check_24.xml b/app/src/main/res/drawable/ic_baseline_check_24.xml new file mode 100644 index 0000000..0432fa6 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_check_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_baseline_delete_forever_24.xml b/app/src/main/res/drawable/ic_baseline_delete_forever_24.xml new file mode 100644 index 0000000..b0b1d8d --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_delete_forever_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_baseline_edit_24.xml b/app/src/main/res/drawable/ic_baseline_edit_24.xml new file mode 100644 index 0000000..2844baf --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_edit_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_baseline_home_24.xml b/app/src/main/res/drawable/ic_baseline_home_24.xml new file mode 100644 index 0000000..3a4c7da --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_home_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_baseline_note_add_24.xml b/app/src/main/res/drawable/ic_baseline_note_add_24.xml new file mode 100644 index 0000000..4465cfe --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_note_add_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_baseline_search_24.xml b/app/src/main/res/drawable/ic_baseline_search_24.xml new file mode 100644 index 0000000..0a25038 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_search_24.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/ic_baseline_title_24.xml b/app/src/main/res/drawable/ic_baseline_title_24.xml new file mode 100644 index 0000000..0837365 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_title_24.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/app/src/main/res/drawable/ic_icon_simple_circle.xml b/app/src/main/res/drawable/ic_icon_simple_circle.xml new file mode 100644 index 0000000..4668fcf --- /dev/null +++ b/app/src/main/res/drawable/ic_icon_simple_circle.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/ic_outline_credit_card_24.xml b/app/src/main/res/drawable/ic_outline_credit_card_24.xml new file mode 100644 index 0000000..9c0fb1f --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_credit_card_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_edit_24.xml b/app/src/main/res/drawable/ic_outline_edit_24.xml new file mode 100644 index 0000000..47ea705 --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_edit_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_email_24.xml b/app/src/main/res/drawable/ic_outline_email_24.xml new file mode 100644 index 0000000..1846c51 --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_email_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_help_outline_24.xml b/app/src/main/res/drawable/ic_outline_help_outline_24.xml new file mode 100644 index 0000000..1f5cba5 --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_help_outline_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_home_24.xml b/app/src/main/res/drawable/ic_outline_home_24.xml new file mode 100644 index 0000000..11b964a --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_home_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_info_24.xml b/app/src/main/res/drawable/ic_outline_info_24.xml new file mode 100644 index 0000000..35f7f5f --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_info_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_local_hospital_24.xml b/app/src/main/res/drawable/ic_outline_local_hospital_24.xml new file mode 100644 index 0000000..7270f45 --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_local_hospital_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_pin_drop_24.xml b/app/src/main/res/drawable/ic_outline_pin_drop_24.xml new file mode 100644 index 0000000..9722f2f --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_pin_drop_24.xml @@ -0,0 +1,13 @@ + + + + diff --git a/app/src/main/res/drawable/ic_outline_settings_24.xml b/app/src/main/res/drawable/ic_outline_settings_24.xml new file mode 100644 index 0000000..0d7a0a6 --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_settings_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_verified_user_24.xml b/app/src/main/res/drawable/ic_outline_verified_user_24.xml new file mode 100644 index 0000000..601a72b --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_verified_user_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_undraw_add_tasks_mxew.xml b/app/src/main/res/drawable/ic_undraw_add_tasks_mxew.xml new file mode 100644 index 0000000..5d0a9e4 --- /dev/null +++ b/app/src/main/res/drawable/ic_undraw_add_tasks_mxew.xml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/questionaire_bg.xml b/app/src/main/res/drawable/questionaire_bg.xml new file mode 100644 index 0000000..5267055 --- /dev/null +++ b/app/src/main/res/drawable/questionaire_bg.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/roundedshape.xml b/app/src/main/res/drawable/roundedshape.xml new file mode 100644 index 0000000..70da21b --- /dev/null +++ b/app/src/main/res/drawable/roundedshape.xml @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/search_input_style_diary.xml b/app/src/main/res/drawable/search_input_style_diary.xml new file mode 100644 index 0000000..34b5db4 --- /dev/null +++ b/app/src/main/res/drawable/search_input_style_diary.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/font/pacifico.ttf b/app/src/main/res/font/pacifico.ttf new file mode 100644 index 0000000..ccbe0f3 Binary files /dev/null and b/app/src/main/res/font/pacifico.ttf differ diff --git a/app/src/main/res/font/roboto.xml b/app/src/main/res/font/roboto.xml new file mode 100644 index 0000000..2641caf --- /dev/null +++ b/app/src/main/res/font/roboto.xml @@ -0,0 +1,7 @@ + + + diff --git a/app/src/main/res/font/roboto_thin.xml b/app/src/main/res/font/roboto_thin.xml new file mode 100644 index 0000000..7acfbd3 --- /dev/null +++ b/app/src/main/res/font/roboto_thin.xml @@ -0,0 +1,7 @@ + + + diff --git a/app/src/main/res/font/rubik_medium.ttf b/app/src/main/res/font/rubik_medium.ttf new file mode 100644 index 0000000..c0b7965 Binary files /dev/null and b/app/src/main/res/font/rubik_medium.ttf differ diff --git a/app/src/main/res/font/ubuntu.ttf b/app/src/main/res/font/ubuntu.ttf new file mode 100644 index 0000000..d748728 Binary files /dev/null and b/app/src/main/res/font/ubuntu.ttf differ diff --git a/app/src/main/res/font/ubuntu_bold.ttf b/app/src/main/res/font/ubuntu_bold.ttf new file mode 100644 index 0000000..b173da2 Binary files /dev/null and b/app/src/main/res/font/ubuntu_bold.ttf differ diff --git a/app/src/main/res/layout/activity_add_diary.xml b/app/src/main/res/layout/activity_add_diary.xml new file mode 100644 index 0000000..a6fcf1a --- /dev/null +++ b/app/src/main/res/layout/activity_add_diary.xml @@ -0,0 +1,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +