diff --git a/.gradle/7.5/checksums/checksums.lock b/.gradle/7.5/checksums/checksums.lock
new file mode 100644
index 0000000..9841d38
Binary files /dev/null and b/.gradle/7.5/checksums/checksums.lock differ
diff --git a/.gradle/7.5/checksums/md5-checksums.bin b/.gradle/7.5/checksums/md5-checksums.bin
new file mode 100644
index 0000000..e26d58a
Binary files /dev/null and b/.gradle/7.5/checksums/md5-checksums.bin differ
diff --git a/.gradle/7.5/checksums/sha1-checksums.bin b/.gradle/7.5/checksums/sha1-checksums.bin
new file mode 100644
index 0000000..ae37888
Binary files /dev/null and b/.gradle/7.5/checksums/sha1-checksums.bin differ
diff --git a/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock b/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock
new file mode 100644
index 0000000..6d3031d
Binary files /dev/null and b/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock differ
diff --git a/.gradle/7.5/dependencies-accessors/gc.properties b/.gradle/7.5/dependencies-accessors/gc.properties
new file mode 100644
index 0000000..e69de29
diff --git a/.gradle/7.5/executionHistory/executionHistory.bin b/.gradle/7.5/executionHistory/executionHistory.bin
new file mode 100644
index 0000000..be155e7
Binary files /dev/null and b/.gradle/7.5/executionHistory/executionHistory.bin differ
diff --git a/.gradle/7.5/executionHistory/executionHistory.lock b/.gradle/7.5/executionHistory/executionHistory.lock
new file mode 100644
index 0000000..01447d4
Binary files /dev/null and b/.gradle/7.5/executionHistory/executionHistory.lock differ
diff --git a/.gradle/7.5/fileChanges/last-build.bin b/.gradle/7.5/fileChanges/last-build.bin
new file mode 100644
index 0000000..f76dd23
Binary files /dev/null and b/.gradle/7.5/fileChanges/last-build.bin differ
diff --git a/.gradle/7.5/fileHashes/fileHashes.bin b/.gradle/7.5/fileHashes/fileHashes.bin
new file mode 100644
index 0000000..6de0be7
Binary files /dev/null and b/.gradle/7.5/fileHashes/fileHashes.bin differ
diff --git a/.gradle/7.5/fileHashes/fileHashes.lock b/.gradle/7.5/fileHashes/fileHashes.lock
new file mode 100644
index 0000000..a802f76
Binary files /dev/null and b/.gradle/7.5/fileHashes/fileHashes.lock differ
diff --git a/.gradle/7.5/fileHashes/resourceHashesCache.bin b/.gradle/7.5/fileHashes/resourceHashesCache.bin
new file mode 100644
index 0000000..3f84017
Binary files /dev/null and b/.gradle/7.5/fileHashes/resourceHashesCache.bin differ
diff --git a/.gradle/7.5/gc.properties b/.gradle/7.5/gc.properties
new file mode 100644
index 0000000..e69de29
diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock
new file mode 100644
index 0000000..bcc045c
Binary files /dev/null and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ
diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties
new file mode 100644
index 0000000..1340cd9
--- /dev/null
+++ b/.gradle/buildOutputCleanup/cache.properties
@@ -0,0 +1,2 @@
+#Wed May 31 02:42:33 CST 2023
+gradle.version=7.5
diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin
new file mode 100644
index 0000000..d696ed0
Binary files /dev/null and b/.gradle/buildOutputCleanup/outputFiles.bin differ
diff --git a/.gradle/file-system.probe b/.gradle/file-system.probe
new file mode 100644
index 0000000..bc544db
Binary files /dev/null and b/.gradle/file-system.probe differ
diff --git a/.gradle/vcs-1/gc.properties b/.gradle/vcs-1/gc.properties
new file mode 100644
index 0000000..e69de29
diff --git a/.idea/dbnavigator.xml b/.idea/dbnavigator.xml
new file mode 100644
index 0000000..70f212e
--- /dev/null
+++ b/.idea/dbnavigator.xml
@@ -0,0 +1,414 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..a2d7c21
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..a5f05cd
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..953c1ab
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..86af2ca
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1685472083366
+
+
+ 1685472083366
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..261eeb9
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/Schedule.plantuml b/Schedule.plantuml
new file mode 100644
index 0000000..9c98f00
--- /dev/null
+++ b/Schedule.plantuml
@@ -0,0 +1,31 @@
+@startuml
+
+title __SCHEDULE's Component Diagram__\n
+
+ component "Schedule.app.unitTest" {
+ [Schedule.app.main]
+ component "Schedule.app.main" {
+ [Schedule.app.androidTest]
+ component "Schedule.app.androidTest" {
+ [Schedule.app]
+ }
+
+
+ }
+
+
+ }
+
+
+ [Schedule.app.androidTest] --> [Schedule.app.main]
+ [Schedule.app.unitTest] --> [Schedule.app.main]
+
+
+right footer
+
+
+PlantUML diagram generated by SketchIt! (https://bitbucket.org/pmesmeur/sketch.it)
+For more information about this tool, please contact philippe.mesmeur@gmail.com
+endfooter
+
+@enduml
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/app/build.gradle b/app/build.gradle
new file mode 100644
index 0000000..9911f87
--- /dev/null
+++ b/app/build.gradle
@@ -0,0 +1,33 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 26
+ defaultConfig {
+ applicationId "com.example.yzbkaka.things"
+ minSdkVersion 15
+ targetSdkVersion 26
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
+ implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
+ implementation 'com.android.support.constraint:constraint-layout:1.0.2'
+ testImplementation 'junit:junit:4.12'
+ androidTestImplementation 'com.android.support.test:runner:0.5'
+ androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
+ implementation 'com.android.support:design:26.1.0'
+ implementation 'com.android.support:recyclerview-v7:26.1.0'
+ implementation 'com.android.support:cardview-v7:26.1.0'
+ implementation 'org.litepal.android:java:3.0.0'
+ implementation 'com.prolificinteractive:material-calendarview:1.4.3'
+}
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..f1b4245
--- /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
diff --git a/app/release/output.json b/app/release/output.json
new file mode 100644
index 0000000..329172d
--- /dev/null
+++ b/app/release/output.json
@@ -0,0 +1 @@
+[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1},"path":"app-release.apk","properties":{"packageId":"com.example.yzbkaka.things","split":"","minSdkVersion":"15"}}]
\ No newline at end of file
diff --git a/app/src/androidTest/java/com/example/yzbkaka/things/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/example/yzbkaka/things/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..8823b60
--- /dev/null
+++ b/app/src/androidTest/java/com/example/yzbkaka/things/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.example.yzbkaka.things;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.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() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("com.example.yzbkaka.things", appContext.getPackageName());
+ }
+}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..b8aa198
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/assets/Litepal.xml b/app/src/main/assets/Litepal.xml
new file mode 100644
index 0000000..6a24fb0
--- /dev/null
+++ b/app/src/main/assets/Litepal.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/java/com/example/yzbkaka/things/ActivityCollector.java b/app/src/main/java/com/example/yzbkaka/things/ActivityCollector.java
new file mode 100644
index 0000000..9953029
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/ActivityCollector.java
@@ -0,0 +1,26 @@
+package com.example.yzbkaka.things;
+
+import android.app.Activity;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class ActivityCollector {
+ public static List activities = new ArrayList<>();
+
+ public static void addActivity(Activity activity){
+ activities.add(activity);
+ }
+
+ public static void removeActivity(Activity activity){
+ activities.remove(activity);
+ }
+
+ public static void finishAll(){
+ for(Activity activity : activities){
+ if(!activity.isFinishing()){
+ activity.finish();
+ }
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Adapter/HistoryAdapter.java b/app/src/main/java/com/example/yzbkaka/things/Adapter/HistoryAdapter.java
new file mode 100644
index 0000000..3653eaf
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Adapter/HistoryAdapter.java
@@ -0,0 +1,58 @@
+package com.example.yzbkaka.things.Adapter;
+
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.db.Plan;
+
+import java.util.List;
+
+
+public class HistoryAdapter extends RecyclerView.Adapter {
+ private List mDataList;
+
+ static class ViewHolder extends RecyclerView.ViewHolder{
+ TextView history;
+ ImageView right;
+ TextView time;
+
+
+ public ViewHolder(View view){
+ super(view);
+ history = (TextView)view.findViewById(R.id.history_plan);
+ right = (ImageView)view.findViewById(R.id.right_kuang);
+ time = (TextView)view.findViewById(R.id.time);
+ }
+ }
+
+ public HistoryAdapter(List dataList){
+ mDataList = dataList;
+ }
+
+
+ @Override
+ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType){
+ View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.history_item,parent,false); //加载子项布局
+ final ViewHolder holder = new ViewHolder(view);
+ return holder;
+ }
+
+
+ @Override
+ public void onBindViewHolder(ViewHolder holder , final int position){
+ Plan plan = mDataList.get(position);
+ holder.time.setText(plan.getMonth() + "月" + plan.getDay() + "日");
+ holder.history.setText(plan.getWritePlan());
+ }
+
+
+ @Override
+ public int getItemCount(){
+ return mDataList.size();
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Adapter/LogAdapter.java b/app/src/main/java/com/example/yzbkaka/things/Adapter/LogAdapter.java
new file mode 100644
index 0000000..1f8c9b0
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Adapter/LogAdapter.java
@@ -0,0 +1,100 @@
+package com.example.yzbkaka.things.Adapter;
+
+import android.content.Intent;
+import android.support.v7.widget.CardView;
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.Button;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.example.yzbkaka.things.Log.AlterLogActivity;
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.db.Log;
+
+import org.litepal.LitePal;
+
+import java.util.List;
+
+import static com.example.yzbkaka.things.Log.LogActivity.logAdapter;
+
+
+public class LogAdapter extends RecyclerView.Adapter {
+ private List mLogList;
+
+
+ static class ViewHolder extends RecyclerView.ViewHolder{
+ View logView;
+ CardView cardView;
+ TextView logText;
+ ImageView imageView;
+ Button deleteLog;
+
+ public ViewHolder(View view){
+ super(view);
+ logView = view;
+ cardView = (CardView)view;
+ logText = (TextView)view.findViewById(R.id.log);
+ imageView = (ImageView)view.findViewById(R.id.image_view);
+ deleteLog = (Button)view.findViewById(R.id.delete_log);
+ }
+ }
+
+ public LogAdapter(List logList){
+ mLogList = logList;
+ }
+
+
+ @Override
+ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType){
+ View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.log_item,parent,false); //加载子项布局
+ final ViewHolder holder = new ViewHolder(view);
+ return new ViewHolder(view);
+ }
+
+
+ @Override
+ public void onBindViewHolder(final ViewHolder holder, final int position){
+ String writeLog = mLogList.get(position);
+ holder.logText.setText(writeLog);
+ holder.logView.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ String writeLog = mLogList.get(position);
+ Intent intent = new Intent(view.getContext(),AlterLogActivity.class); //自动获取上下文
+ intent.putExtra("log",writeLog); //传输log内容
+ view.getContext().startActivity(intent); //自动获取上下文后才能够启动活动
+ }
+ });
+
+ holder.logView.setOnLongClickListener(new View.OnLongClickListener() { //设置长按按钮功能
+ @Override
+ public boolean onLongClick(View view) {
+ holder.deleteLog.setVisibility(View.VISIBLE); //将该按钮显示出来
+ return true;
+ }
+ });
+
+ holder.deleteLog.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ int deleteLogPosition = holder.getAdapterPosition();
+ String deleteLogWrite = mLogList.get(deleteLogPosition); //获得到该位置的内容
+ mLogList.remove(deleteLogPosition);
+ holder.deleteLog.setVisibility(View.INVISIBLE); //再次隐藏按钮
+ logAdapter.notifyDataSetChanged(); //更新适配器
+ LitePal.deleteAll(Log.class,"logWrite = ?",deleteLogWrite); //从数据库中删除
+
+ }
+ });
+ }
+
+
+
+ @Override
+ public int getItemCount(){
+ return mLogList.size();
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Adapter/ScheduleAdapter.java b/app/src/main/java/com/example/yzbkaka/things/Adapter/ScheduleAdapter.java
new file mode 100644
index 0000000..bccd804
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Adapter/ScheduleAdapter.java
@@ -0,0 +1,105 @@
+package com.example.yzbkaka.things.Adapter;
+
+import android.content.Intent;
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.Button;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.Schedule.AlterScheduleActivity;
+import com.example.yzbkaka.things.Today.AlterTodayActivity;
+import com.example.yzbkaka.things.db.Plan;
+
+import org.litepal.LitePal;
+
+import java.util.List;
+
+import static com.example.yzbkaka.things.Schedule.ScheduleViewActivity.scheduleAdapter;
+
+
+public class ScheduleAdapter extends RecyclerView.Adapter {
+ private List mDataList;
+
+ static class ViewHolder extends RecyclerView.ViewHolder{
+ View scheduleView;
+ TextView schedule;
+ ImageView kuang;
+ TextView time;
+ Button delete;
+
+
+ public ViewHolder(View view){
+ super(view);
+ scheduleView = view;
+ schedule = (TextView)view.findViewById(R.id.schedule_plan);
+ kuang = (ImageView)view.findViewById(R.id.kuang);
+ time = (TextView)view.findViewById(R.id.schedule_time);
+ delete = (Button)view.findViewById(R.id.delete_schedule);
+ }
+ }
+
+
+ public ScheduleAdapter(List dataList){
+ mDataList = dataList;
+ }
+
+
+ @Override
+ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType){
+ View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.schedule_item,parent,false); //加载子项布局
+ final ViewHolder holder = new ViewHolder(view);
+ return holder;
+ }
+
+
+ @Override
+ public void onBindViewHolder(final ViewHolder holder , final int position){
+ Plan plan = mDataList.get(position);
+ holder.time.setText(plan.getMonth() + "月" + plan.getDay() + "日");
+ holder.schedule.setText(plan.getWritePlan());
+
+ holder.scheduleView.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ int writePosition = holder.getAdapterPosition();
+ Plan viewPlan = mDataList.get(writePosition);
+ String writeToday = viewPlan.getWritePlan();
+ Intent intent = new Intent(view.getContext(),AlterScheduleActivity.class);
+ intent.putExtra("write",writeToday);
+ view.getContext().startActivity(intent);
+ }
+ });
+
+ holder.scheduleView.setOnLongClickListener(new View.OnLongClickListener() {
+ @Override
+ public boolean onLongClick(View view) {
+ holder.delete.setVisibility(View.VISIBLE);
+ return true;
+ }
+ });
+
+
+ holder.delete.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ int scheduleDeletePosition = holder.getAdapterPosition();
+ Plan scheduleDeletePlan = mDataList.get(scheduleDeletePosition);
+ String scheduleDeletePlanWrite = scheduleDeletePlan.getWritePlan();
+ mDataList.remove(scheduleDeletePosition);
+ scheduleAdapter.notifyDataSetChanged();
+ LitePal.deleteAll(Plan.class,"writePlan = ?",scheduleDeletePlanWrite);
+ holder.delete.setVisibility(View.INVISIBLE);
+ }
+ });
+ }
+
+
+ @Override
+ public int getItemCount(){
+ return mDataList.size();
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Adapter/TodayAdapter.java b/app/src/main/java/com/example/yzbkaka/things/Adapter/TodayAdapter.java
new file mode 100644
index 0000000..33e636c
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Adapter/TodayAdapter.java
@@ -0,0 +1,176 @@
+package com.example.yzbkaka.things.Adapter;
+
+import android.content.Intent;
+import android.os.Message;
+import android.provider.AlarmClock;
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.view.animation.Animation;
+import android.view.animation.AnimationUtils;
+import android.widget.Button;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.example.yzbkaka.things.DoubleClickListener;
+import com.example.yzbkaka.things.MainActivity;
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.Today.AlterTodayActivity;
+import com.example.yzbkaka.things.Today.NoteActivity;
+import com.example.yzbkaka.things.db.Plan;
+
+
+import java.util.List;
+import java.util.Timer;
+import java.util.TimerTask;
+
+import android.os.Handler;
+
+import org.litepal.LitePal;
+
+import static com.example.yzbkaka.things.MainActivity.todayCount;
+import static com.example.yzbkaka.things.Today.NoteActivity.todayAdapter;
+
+
+public class TodayAdapter extends RecyclerView.Adapter {
+ private List mDataList;
+ private static int imagePosition; //将点击前面框框顺序的位置设置为静态变量
+
+ static class ViewHolder extends RecyclerView.ViewHolder{
+ View todayView;
+ ImageView imageView;
+ TextView todayText;
+ Button delete;
+
+ public ViewHolder(View view){
+ super(view);
+ todayView = view;
+ imageView = (ImageView)view.findViewById(R.id.no_finish);
+ todayText = (TextView)view.findViewById(R.id.today_plan);
+ delete = (Button)view.findViewById(R.id.delete);
+ }
+ }
+
+
+ public TodayAdapter(List dataList){
+ mDataList = dataList;
+ }
+
+ @Override
+ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType){
+ View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.today_item,parent,false); //加载子项布局
+ final ViewHolder holder = new ViewHolder(view);
+ return holder;
+ }
+
+
+ @Override
+ public void onBindViewHolder(final ViewHolder holder , final int i){
+ final Plan plan = mDataList.get(i);
+ holder.todayText.setText(plan.getWritePlan());
+
+ final Handler handler = new Handler() { //异步消息处理机制来在非主线程中来修改UI
+
+ public void handleMessage(Message msg){
+ switch (msg.what){
+ case 1:
+ mDataList.remove(imagePosition); //将该Plan从列表中移除(此时数据库中的没有移除)
+ todayAdapter.notifyDataSetChanged(); //更新适配器以达到更新列表的效果
+ holder.imageView.setImageResource(R.drawable.no); //将前面的框框换回成灰色
+ break;
+
+ default:
+ break;
+ }
+ }
+ };
+
+ holder.todayView.setOnClickListener(new View.OnClickListener() { //当点击文字时会进入修改activity
+ @Override
+ public void onClick(View view) {
+ int writePosition = holder.getAdapterPosition();
+ Plan viewPlan = mDataList.get(writePosition);
+ String writeToday = viewPlan.getWritePlan();
+ Intent intent = new Intent(view.getContext(),AlterTodayActivity.class);
+ intent.putExtra("write",writeToday);
+ view.getContext().startActivity(intent);
+ }
+ });
+
+
+ holder.imageView.setOnClickListener(new View.OnClickListener() { //当点击前面的勾选框时会改变勾选框的图片
+ @Override
+ public void onClick(View view) {
+ imagePosition = holder.getAdapterPosition();
+ Plan ImagePlan = mDataList.get(imagePosition);
+ holder.imageView.setImageResource(R.drawable.yes); //切换图片
+ ImagePlan.setStatus(true); //状态设置为完成
+ ImagePlan.save(); //保存该状态
+ todayCount--; //移除之后数量减1
+
+ TimerTask task1 = new TimerTask() { //设置定时任务
+ public void run() {
+ Message message = new Message();
+ message.what = 1;
+ handler.sendMessage(message); //发送异步Message
+ }
+ };
+ Timer timer = new Timer();
+ timer.schedule(task1, 800); //设置延时的时间,单位是毫秒
+
+ Animation animation = AnimationUtils.loadAnimation(view.getContext(),R.anim.today_anim); //设置动画
+ holder.todayView.startAnimation(animation);
+ }
+ });
+
+
+ holder.todayView.setOnLongClickListener(new View.OnLongClickListener() { //长按机制
+ @Override
+ public boolean onLongClick(View view) { //长按效果
+ holder.delete.setVisibility(View.VISIBLE); //将删除按钮显示出来
+
+
+ return true;
+ }
+ });
+
+ holder.todayView.setOnClickListener(new DoubleClickListener() { //双击事件
+ @Override
+ public void onDoubleClick(View view) {
+ Intent alarmsIntent = new Intent(AlarmClock.ACTION_SET_ALARM); //调用系统闹钟
+ view.getContext().startActivity(alarmsIntent);
+ }
+ });
+
+ holder.delete.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ int deletePosition = holder.getAdapterPosition(); //得到点击的顺序
+ Plan deletePlan = mDataList.get(deletePosition);
+ String deletePlanWrite = deletePlan.getWritePlan();
+ mDataList.remove(deletePosition);
+ todayCount--; //数量减少
+ todayAdapter.notifyDataSetChanged(); //更新适配器
+ LitePal.deleteAll(Plan.class,"writePlan = ?",deletePlanWrite); //将该条today删除
+
+
+ TimerTask deleteTask = new TimerTask() {
+ @Override
+ public void run() {
+ holder.delete.setVisibility(View.INVISIBLE);
+ }
+ };
+ Timer deleteTimer = new Timer();
+ deleteTimer.schedule(deleteTask,0); //一秒钟之后自动隐藏删除按钮
+ }
+ });
+ }
+
+
+
+ @Override
+ public int getItemCount(){
+ return mDataList.size();
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/DoubleClickListener.java b/app/src/main/java/com/example/yzbkaka/things/DoubleClickListener.java
new file mode 100644
index 0000000..6573c93
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/DoubleClickListener.java
@@ -0,0 +1,21 @@
+package com.example.yzbkaka.things;
+
+import android.view.View;
+
+
+
+public abstract class DoubleClickListener implements View.OnClickListener {
+ private static final long DOUBLE_TIME = 1000;
+ private static long lastClickTime = 0;
+
+ @Override
+ public void onClick(View v) {
+ long currentTimeMillis = System.currentTimeMillis();
+ if (currentTimeMillis - lastClickTime < DOUBLE_TIME) {
+ onDoubleClick(v);
+ }
+ lastClickTime = currentTimeMillis;
+ }
+ public abstract void onDoubleClick(View v);
+}
+
diff --git a/app/src/main/java/com/example/yzbkaka/things/History/HistoryActivity.java b/app/src/main/java/com/example/yzbkaka/things/History/HistoryActivity.java
new file mode 100644
index 0000000..57537e0
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/History/HistoryActivity.java
@@ -0,0 +1,77 @@
+package com.example.yzbkaka.things.History;
+
+import android.os.Build;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.support.v7.widget.LinearLayoutManager;
+import android.support.v7.widget.RecyclerView;
+import android.view.View;
+import android.widget.Button;
+import android.widget.Toast;
+
+import com.example.yzbkaka.things.Adapter.HistoryAdapter;
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.db.Plan;
+
+import org.litepal.LitePal;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class HistoryActivity extends AppCompatActivity {
+ private Button back;
+ private RecyclerView historyView;
+ private Button clear;
+ private List historyList = new ArrayList<>();
+ private List dataList = new ArrayList<>();
+ private HistoryAdapter myAdapter;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_history);
+ back = (Button)findViewById(R.id.back);
+ historyView = (RecyclerView)findViewById(R.id.history_view);
+ clear = (Button)findViewById(R.id.clear);
+ dataList = LitePal.findAll(Plan.class);
+
+ LinearLayoutManager manager = new LinearLayoutManager(this);
+ historyView.setLayoutManager(manager);
+
+ back.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ finish();
+ }
+ });
+
+ clear.setOnClickListener(new View.OnClickListener() { //点击之后会清空列表
+ @Override
+ public void onClick(View view) {
+ Toast.makeText(HistoryActivity.this, "清空!", Toast.LENGTH_SHORT).show();
+ historyList.clear();
+ myAdapter.notifyDataSetChanged(); //适配器在每一次list更新的时候都需要进行一次更新
+ LitePal.deleteAll(Plan.class,"status = ?","1"); //删除所有status为true的plan
+ }
+ });
+
+ if(dataList.size() > 0){
+ historyList.clear();
+ for(Plan plan : dataList){
+ if(plan.getStatus() == true){ //如果状态是完成,则加入到历史列表当中
+ historyList.add(plan);
+ }
+ }
+ }
+ myAdapter = new HistoryAdapter(historyList);
+ historyView.setAdapter(myAdapter);
+ setLightMode();
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Log/AlterLogActivity.java b/app/src/main/java/com/example/yzbkaka/things/Log/AlterLogActivity.java
new file mode 100644
index 0000000..b1345af
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Log/AlterLogActivity.java
@@ -0,0 +1,68 @@
+package com.example.yzbkaka.things.Log;
+
+import android.content.Intent;
+import android.os.Build;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.Toast;
+
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.db.Log;
+
+import org.litepal.LitePal;
+
+public class AlterLogActivity extends AppCompatActivity {
+ private Button back;
+ private Button save;
+ private EditText editText;
+ private String oldLog;
+ Log log = new Log();
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_alter_log);
+
+ back = (Button)findViewById(R.id.back);
+ save = (Button)findViewById(R.id.save);
+ editText = (EditText)findViewById(R.id.edit_text);
+ Intent intent = getIntent();
+ oldLog = intent.getStringExtra("log"); //获得之前的log内容
+ editText.setText(oldLog);
+
+ back.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ finish();
+ }
+ });
+
+ save.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ String newLog = editText.getText().toString();
+ if(newLog.isEmpty()){
+ LitePal.deleteAll(Log.class,"logWrite = ?",oldLog);
+ }
+ else{
+ log.setLogWrite(newLog);
+ log.updateAll("logWrite = ?",oldLog); //不能使用save的方法
+ Toast.makeText(AlterLogActivity.this, "修改成功", Toast.LENGTH_SHORT).show();
+ }
+ finish();
+ }
+ });
+
+ setLightMode();
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Log/LogActivity.java b/app/src/main/java/com/example/yzbkaka/things/Log/LogActivity.java
new file mode 100644
index 0000000..5057b65
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Log/LogActivity.java
@@ -0,0 +1,87 @@
+package com.example.yzbkaka.things.Log;
+
+import android.content.Intent;
+import android.os.Build;
+import android.support.design.widget.FloatingActionButton;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.support.v7.widget.RecyclerView;
+import android.support.v7.widget.StaggeredGridLayoutManager;
+import android.view.View;
+import android.widget.Button;
+
+import com.example.yzbkaka.things.Adapter.LogAdapter;
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.db.Log;
+
+import org.litepal.LitePal;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LogActivity extends AppCompatActivity {
+ private Button back; //返回
+ private RecyclerView logView; //显示日志的View
+ private List logList = new ArrayList<>(); //log的列表
+ private List dataList = new ArrayList<>(); //获得数据库中的Log
+ private FloatingActionButton create; //创建按钮
+ public static LogAdapter logAdapter; //适配器
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_log);
+ back = (Button)findViewById(R.id.back);
+ logView = (RecyclerView) findViewById(R.id.log_list);
+ create = (FloatingActionButton)findViewById(R.id.create);
+
+ logView.setAdapter(logAdapter);
+
+
+ back.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ finish();
+ }
+ });
+
+ create.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent intent = new Intent(LogActivity.this,LogCreateActivity.class);
+ startActivity(intent);
+ }
+ });
+
+ setLightMode();
+ }
+
+
+ @Override
+ public void onStart(){
+ super.onStart();
+ StaggeredGridLayoutManager layoutManager = new StaggeredGridLayoutManager(2,StaggeredGridLayoutManager.VERTICAL); //设置为瀑布式布局
+ logView.setLayoutManager(layoutManager);
+ logAdapter = new LogAdapter(logList);
+
+ dataList = LitePal.findAll(Log.class);
+ if(dataList.size() > 0){
+ logList.clear();
+ for(Log log : dataList){
+ logList.add(log.getLogWrite());
+ }
+ }
+ else{
+ logList.clear();
+ }
+ logView.setAdapter(logAdapter);
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Log/LogCreateActivity.java b/app/src/main/java/com/example/yzbkaka/things/Log/LogCreateActivity.java
new file mode 100644
index 0000000..5b49c22
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Log/LogCreateActivity.java
@@ -0,0 +1,57 @@
+package com.example.yzbkaka.things.Log;
+
+import android.os.Build;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.db.Log;
+
+public class LogCreateActivity extends AppCompatActivity {
+ private Button back;
+ private EditText editText;
+ private Button save;
+ private String write;
+ Log log = new Log();
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_log_create);
+ back = (Button)findViewById(R.id.back);
+ editText = (EditText)findViewById(R.id.edit_text);
+ save = (Button)findViewById(R.id.save);
+
+ back.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ finish();
+ }
+ });
+
+ save.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ write = editText.getText().toString();
+ if(!write.isEmpty()){
+ log.setLogWrite(write);
+ log.save();
+ }
+ finish();
+ }
+ });
+
+ setLightMode();
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/MainActivity.java b/app/src/main/java/com/example/yzbkaka/things/MainActivity.java
new file mode 100644
index 0000000..72d27b2
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/MainActivity.java
@@ -0,0 +1,109 @@
+package com.example.yzbkaka.things;
+
+
+import android.content.Intent;
+import android.os.Build;
+import android.support.v4.view.GravityCompat;
+import android.support.v4.widget.DrawerLayout;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+
+
+import com.example.yzbkaka.things.History.HistoryActivity;
+import com.example.yzbkaka.things.Log.LogActivity;
+import com.example.yzbkaka.things.Schedule.ScheduleViewActivity;
+import com.example.yzbkaka.things.Setting.SettingActivity;
+import com.example.yzbkaka.things.Today.NoteActivity;
+
+
+public class MainActivity extends AppCompatActivity {
+ private Button today;
+ private Button schedule;
+ private Button log;
+ private Button history;
+ private Button openDrawer;
+ private Button setting;
+ DrawerLayout mDrawerLayout;
+ public static int todayCount = 0; //全局变量,统计today中显示的数量
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ ActivityCollector.addActivity(this);
+ today = (Button)findViewById(R.id.select_today);
+ schedule = (Button)findViewById(R.id.select_plan);
+ log = (Button)findViewById(R.id.select_log);
+ history = (Button)findViewById(R.id.select_history);
+ openDrawer = (Button)findViewById(R.id.open_drawer);
+ setting = (Button)findViewById(R.id.setting);
+ mDrawerLayout = (DrawerLayout)findViewById(R.id.draw_layout);
+
+
+
+ today.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent intent = new Intent(MainActivity.this,NoteActivity.class);
+ startActivity(intent);
+ }
+ });
+
+ schedule.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent intent = new Intent(MainActivity.this, ScheduleViewActivity.class);
+ startActivity(intent);
+ }
+ });
+
+ log.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent intent = new Intent(MainActivity.this,LogActivity.class);
+ startActivity(intent);
+ }
+ });
+
+ history.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent intent = new Intent(MainActivity.this,HistoryActivity.class);
+ startActivity(intent);
+ }
+ });
+
+ openDrawer.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ mDrawerLayout.openDrawer(GravityCompat.START);
+ }
+ });
+
+ setting.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent intent = new Intent(MainActivity.this, SettingActivity.class);
+ startActivity(intent);
+ }
+ });
+
+
+ setLightMode();
+ }
+
+ @Override
+ protected void onDestroy(){
+ super.onDestroy();
+ ActivityCollector.removeActivity(this);
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Schedule/AlterScheduleActivity.java b/app/src/main/java/com/example/yzbkaka/things/Schedule/AlterScheduleActivity.java
new file mode 100644
index 0000000..ae33f1d
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Schedule/AlterScheduleActivity.java
@@ -0,0 +1,64 @@
+package com.example.yzbkaka.things.Schedule;
+
+import android.content.Intent;
+import android.os.Build;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.Toast;
+
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.Today.AlterTodayActivity;
+import com.example.yzbkaka.things.db.Plan;
+
+import org.litepal.LitePal;
+
+import static com.example.yzbkaka.things.MainActivity.todayCount;
+
+public class AlterScheduleActivity extends AppCompatActivity {
+ private EditText editText;
+ private Button finish;
+ Plan plan = new Plan();
+ String oldWrite;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_alter_schedule);
+
+ editText = (EditText) findViewById(R.id.old_text);
+ finish = (Button)findViewById(R.id.finish);
+ Intent intent = getIntent();
+ oldWrite = intent.getStringExtra("write"); //得到之前的数据
+ editText.setText(oldWrite); //将之前的数据显示在EditText上
+
+ finish.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ String newWrite = editText.getText().toString(); //得到用户修改之后的新数据
+ if(newWrite.isEmpty()){
+ LitePal.deleteAll(Plan.class,"writePlan = ?",oldWrite); //如果修改之后为空则自动删除
+ }
+ else{
+ plan.setWritePlan(newWrite); //LitePal语法,先设置新的内容,再寻找条件更新
+ plan.updateAll("writePlan = ?",oldWrite);
+ Toast.makeText(AlterScheduleActivity.this, "修改成功", Toast.LENGTH_SHORT).show();
+ }
+ finish();
+
+ }
+ });
+
+ setLightMode();
+
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Schedule/ScheduleActivity.java b/app/src/main/java/com/example/yzbkaka/things/Schedule/ScheduleActivity.java
new file mode 100644
index 0000000..aa6a577
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Schedule/ScheduleActivity.java
@@ -0,0 +1,77 @@
+package com.example.yzbkaka.things.Schedule;
+
+import android.content.Intent;
+import android.os.Build;
+import android.support.annotation.NonNull;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.Toast;
+
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.Today.TodayCreateActivitty;
+import com.prolificinteractive.materialcalendarview.CalendarDay;
+import com.prolificinteractive.materialcalendarview.MaterialCalendarView;
+import com.prolificinteractive.materialcalendarview.OnDateSelectedListener;
+
+import java.util.Calendar;
+import java.util.TimeZone;
+
+
+public class ScheduleActivity extends AppCompatActivity {
+ private Button back;
+ private MaterialCalendarView calendarView;
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_schedule);
+ back = (Button)findViewById(R.id.back);
+ calendarView = (MaterialCalendarView)findViewById(R.id.calendarView);
+
+ Calendar calendar = Calendar.getInstance(); //得到今天的时间
+ calendar.setTimeZone(TimeZone.getTimeZone("GMT+8:00"));
+ final String todayYear = String.valueOf(calendar.get(Calendar.YEAR));
+ final String todayMonth = String.valueOf(calendar.get(Calendar.MONTH)+1);
+ final String todayDay = String.valueOf(calendar.get(Calendar.DATE));
+
+ back.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ finish();
+ }
+ });
+
+ calendarView.setOnDateChangedListener(new OnDateSelectedListener() {
+ @Override
+ public void onDateSelected(@NonNull MaterialCalendarView widget, @NonNull CalendarDay date, boolean selected) {
+ String year = String.valueOf(date.getYear()); //得到选中的时间
+ String month = String.valueOf(date.getMonth()+1);
+ String day = String.valueOf(date.getDay());
+
+ if(((year.equals(todayYear) && month.equals(todayMonth) && Integer.parseInt(day) < Integer.parseInt(todayDay))) || (year.equals(todayYear) && Integer.parseInt(month) < Integer.parseInt(todayMonth)) || (Integer.parseInt(year) < Integer.parseInt(todayYear))){ //如果选中的是今天,则会创建失败
+ Toast.makeText(ScheduleActivity.this, "请选择未来的时间点哦", Toast.LENGTH_SHORT).show();
+ }
+ else {
+ Intent intent = new Intent(ScheduleActivity.this, ScheduleCreateActivity.class);
+ intent.putExtra("year",year);
+ intent.putExtra("month",month);
+ intent.putExtra("day",day);
+ startActivity(intent);
+ }
+
+ }
+ });
+
+ setLightMode();
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Schedule/ScheduleCreateActivity.java b/app/src/main/java/com/example/yzbkaka/things/Schedule/ScheduleCreateActivity.java
new file mode 100644
index 0000000..0c5dde1
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Schedule/ScheduleCreateActivity.java
@@ -0,0 +1,57 @@
+package com.example.yzbkaka.things.Schedule;
+
+import android.content.Intent;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.Toast;
+
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.db.Plan;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.TimeZone;
+
+public class ScheduleCreateActivity extends AppCompatActivity {
+ private Button finish;
+ private EditText editText;
+ String write;
+ Plan plan = new Plan();
+ Date date;
+ Calendar calendar = Calendar.getInstance();
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_schedule_create);
+ finish = (Button)findViewById(R.id.finish);
+ editText = (EditText)findViewById(R.id.edit_text);
+ calendar.setTimeZone(TimeZone.getTimeZone("GMT+8:00")); //设置为中国区的时间
+
+ Intent intent = getIntent();
+ final String scheduleYear = intent.getStringExtra("year");
+ final String scheduleMonth = intent.getStringExtra("month");
+ final String scheduleDay = intent.getStringExtra("day");
+
+ finish.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ write = editText.getText().toString();
+ if(!write.isEmpty()){
+ plan.setWritePlan(write);
+ plan.setYear(scheduleYear);
+ plan.setMonth(scheduleMonth);
+ plan.setDay(scheduleDay);
+ date = new Date(calendar.get(Calendar.YEAR),calendar.get(Calendar.MONTH)+1,calendar.get(Calendar.DATE));
+ plan.save();
+ Toast.makeText(ScheduleCreateActivity.this, "创建成功,记得要完成哦", Toast.LENGTH_SHORT).show();
+ }
+ finish();
+ }
+
+ });
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Schedule/ScheduleViewActivity.java b/app/src/main/java/com/example/yzbkaka/things/Schedule/ScheduleViewActivity.java
new file mode 100644
index 0000000..907ff50
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Schedule/ScheduleViewActivity.java
@@ -0,0 +1,100 @@
+package com.example.yzbkaka.things.Schedule;
+
+import android.content.Intent;
+import android.os.Build;
+import android.support.design.widget.FloatingActionButton;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.support.v7.widget.LinearLayoutManager;
+import android.support.v7.widget.RecyclerView;
+import android.view.View;
+import android.widget.Button;
+
+import com.example.yzbkaka.things.Adapter.ScheduleAdapter;
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.db.Plan;
+
+import org.litepal.LitePal;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.List;
+import java.util.TimeZone;
+
+public class ScheduleViewActivity extends AppCompatActivity {
+ private Button back;
+ private RecyclerView scheduleView;
+ private List dataList = new ArrayList<>();
+ private List scheduleList = new ArrayList<>();
+ public static ScheduleAdapter scheduleAdapter;
+ private FloatingActionButton create;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_schedule_view);
+ back = (Button)findViewById(R.id.back);
+ scheduleView = (RecyclerView)findViewById(R.id.schedule_view);
+ create = (FloatingActionButton)findViewById(R.id.create);
+
+ LinearLayoutManager manager = new LinearLayoutManager(this);
+ scheduleView.setLayoutManager(manager);
+
+ back.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ finish();
+ }
+ });
+
+ create.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent intent = new Intent(ScheduleViewActivity.this,ScheduleActivity.class);
+ startActivity(intent);
+ }
+ });
+
+ setLightMode();
+ }
+
+
+ @Override
+ public void onResume(){
+ super.onResume();
+ dataList = LitePal.findAll(Plan.class);
+ create.setVisibility(View.VISIBLE);
+
+
+ Calendar calendar = Calendar.getInstance(); //获取到今天的时间
+ calendar.setTimeZone(TimeZone.getTimeZone("GMT+8:00"));
+ String year = String.valueOf(calendar.get(Calendar.YEAR));
+ String month = String.valueOf(calendar.get(Calendar.MONTH)+1);
+ String day = String.valueOf(calendar.get(Calendar.DATE));
+
+ if (dataList.size() > 0){
+ scheduleList.clear();
+ for(Plan plan : dataList){
+ if((plan.getYear().equals(year) && plan.getMonth().equals(month) && Integer.parseInt(plan.getDay()) > Integer.parseInt(day) ) || ( plan.getYear().equals(year) && Integer.parseInt(plan.getMonth()) > Integer.parseInt(month) ) || (Integer.parseInt(plan.getYear()) > Integer.parseInt(year)) ){ //只要不是今天的就会显示在计划列表当中
+ scheduleList.add(plan);
+ //排序
+ }
+ }
+ }
+ scheduleAdapter = new ScheduleAdapter(scheduleList);
+ scheduleView.setAdapter(scheduleAdapter);
+ }
+
+ @Override
+ public void onPause(){
+ super.onPause();
+ create.setVisibility(View.GONE);
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Service/SendMessage.java b/app/src/main/java/com/example/yzbkaka/things/Service/SendMessage.java
new file mode 100644
index 0000000..0acd8dd
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Service/SendMessage.java
@@ -0,0 +1,88 @@
+package com.example.yzbkaka.things.Service;
+
+import android.app.AlarmManager;
+import android.app.Notification;
+import android.app.NotificationChannel;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.app.Service;
+import android.content.Intent;
+import android.graphics.BitmapFactory;
+import android.os.Build;
+import android.os.IBinder;
+import android.os.SystemClock;
+import android.support.v4.app.NotificationCompat;
+
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.Today.NoteActivity;
+
+import static com.example.yzbkaka.things.MainActivity.todayCount;
+import static com.example.yzbkaka.things.Setting.SettingActivity.count;
+
+public class SendMessage extends Service {
+ public SendMessage() {
+ }
+
+ @Override
+ public IBinder onBind(Intent intent) {
+ return null;
+ }
+
+ @Override
+ public int onStartCommand(Intent intent,int flags,int startId){
+ new Thread(new Runnable() {
+ @Override
+ public void run() {
+ if(count%2 == 0){ //根据次数来切换图片
+ Intent notificationIntent = new Intent(SendMessage.this,NoteActivity.class); //开始设置通知效果
+ PendingIntent pendingIntent = PendingIntent.getActivity(SendMessage.this,0, notificationIntent,0); //设置PendingIntent
+ NotificationManager manager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
+
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){ //判断系统是否大于8.0
+ NotificationChannel notificationChannel = new NotificationChannel("channel","channel",NotificationManager.IMPORTANCE_HIGH);
+ manager.createNotificationChannel(notificationChannel);
+ Notification notification = new NotificationCompat.Builder(SendMessage.this,"channel")
+ .setContentTitle("任务清单已送达")
+ .setContentText("小主,今天还有" + todayCount + "件任务要完成哦!")
+ .setWhen(System.currentTimeMillis()) //发送通知的时间
+ .setLargeIcon(BitmapFactory.decodeResource(getResources(),R.drawable.logo144)) //设置大图标
+ .setContentIntent(pendingIntent) //设置通知的点击效果
+ .setAutoCancel(true) //设置点击之后自动关闭通知
+ .build();
+
+ if(todayCount > 0){
+ manager.notify(1,notification); //显示通知
+ }
+ }
+
+ else{
+ Notification notification = new NotificationCompat.Builder(SendMessage.this)
+ .setContentTitle("今天的任务清单")
+ .setContentText("小主今天还有" + todayCount + "件计划要完成哦!")
+ .setWhen(System.currentTimeMillis()) //发送通知的时间
+ .setLargeIcon(BitmapFactory.decodeResource(getResources(),R.drawable.logo144)) //设置大图标
+ .setContentIntent(pendingIntent) //设置通知的点击效果
+ .setAutoCancel(true) //设置点击之后自动关闭通知
+ .build();
+
+ if(todayCount > 0){
+ manager.notify(1,notification); //显示通知
+ }
+ }
+ }
+
+ else{
+ }
+
+ }
+ }).start();
+
+ AlarmManager manager = (AlarmManager)getSystemService(ALARM_SERVICE); //设置定时服务
+ int fourHour = 4*60*60*1000; //单位是毫秒(4小时)
+ long time = SystemClock.elapsedRealtime() + fourHour;
+ Intent i = new Intent(this,SendMessage.class);
+ PendingIntent pi = PendingIntent.getService(this,0,i,0);
+ manager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,time,pi);
+ return super.onStartCommand(intent,flags,startId);
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Setting/AboutActivity.java b/app/src/main/java/com/example/yzbkaka/things/Setting/AboutActivity.java
new file mode 100644
index 0000000..2e435b8
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Setting/AboutActivity.java
@@ -0,0 +1,31 @@
+package com.example.yzbkaka.things.Setting;
+
+import android.os.Build;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.webkit.WebView;
+import android.webkit.WebViewClient;
+
+import com.example.yzbkaka.things.R;
+
+public class AboutActivity extends AppCompatActivity {
+ private WebView webView;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_about);
+ webView = (WebView)findViewById(R.id.webview);
+ webView.getSettings().setJavaScriptEnabled(true);
+ webView.setWebViewClient(new WebViewClient());
+ webView.loadUrl("https://github.com/yzbkaka/Schedule");
+ setLightMode();
+ }
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Setting/ExplainActivity.java b/app/src/main/java/com/example/yzbkaka/things/Setting/ExplainActivity.java
new file mode 100644
index 0000000..9063969
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Setting/ExplainActivity.java
@@ -0,0 +1,183 @@
+package com.example.yzbkaka.things.Setting;
+
+import android.os.Build;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.view.animation.Animation;
+import android.view.animation.AnimationUtils;
+import android.widget.Button;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+
+import com.example.yzbkaka.things.R;
+
+import java.util.Timer;
+import java.util.TimerTask;
+
+public class ExplainActivity extends AppCompatActivity {
+ private Button back;
+ private LinearLayout explain1;
+ private LinearLayout explain2;
+ private LinearLayout explain3;
+ private LinearLayout explain4;
+ private LinearLayout explain5;
+ private ImageView img1;
+ private ImageView img2;
+ private ImageView img3;
+ private ImageView img4;
+ private ImageView img5;
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_explain);
+ back = (Button)findViewById(R.id.back);
+ explain1 = (LinearLayout)findViewById(R.id.explain_one);
+ explain2 = (LinearLayout)findViewById(R.id.explain_two);
+ explain3 = (LinearLayout)findViewById(R.id.explain_three);
+ explain4 = (LinearLayout)findViewById(R.id.explain_four);
+ explain5 = (LinearLayout)findViewById(R.id.explain_five);
+ img1 = (ImageView)findViewById(R.id.explain_button_one);
+ img2 = (ImageView)findViewById(R.id.explain_button_two);
+ img3 = (ImageView)findViewById(R.id.explain_button_three);
+ img4 = (ImageView)findViewById(R.id.explain_button_four);
+ img5 = (ImageView)findViewById(R.id.explain_button_five);
+
+
+
+ back.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ finish();
+ }
+ });
+
+ img1.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ img1.setImageResource(R.drawable.yes);
+ final Animation animation = AnimationUtils.loadAnimation(ExplainActivity.this,R.anim.today_anim); //设置动画
+ explain1.startAnimation(animation);
+ TimerTask task = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ explain1.setVisibility(View.GONE);
+ }
+ });
+ }
+ };
+ Timer timer = new Timer();
+ timer.schedule(task, 800);
+
+ }
+ });
+
+ img2.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ img2.setImageResource(R.drawable.yes);
+ Animation animation = AnimationUtils.loadAnimation(ExplainActivity.this,R.anim.today_anim); //设置动画
+ explain2.startAnimation(animation);
+
+ TimerTask task = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ explain2.setVisibility(View.GONE);
+ }
+ });
+ }
+ };
+ Timer timer = new Timer();
+ timer.schedule(task,800);
+
+
+ }
+ });
+
+ img3.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ img3.setImageResource(R.drawable.yes);
+ Animation animation = AnimationUtils.loadAnimation(ExplainActivity.this,R.anim.today_anim); //设置动画
+ explain3.startAnimation(animation);
+ TimerTask task = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ explain3.setVisibility(View.GONE);
+ }
+ });
+ }
+ };
+ Timer timer = new Timer();
+ timer.schedule(task,800);
+
+ }
+ });
+
+ img4.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ img4.setImageResource(R.drawable.yes);
+ Animation animation = AnimationUtils.loadAnimation(ExplainActivity.this,R.anim.today_anim); //设置动画
+ explain4.startAnimation(animation);
+ TimerTask task = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ explain4.setVisibility(View.GONE);
+ }
+ });
+ }
+ };
+ Timer timer = new Timer();
+ timer.schedule(task,800);
+
+ }
+ });
+
+ img5.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ img5.setImageResource(R.drawable.yes);
+ Animation animation = AnimationUtils.loadAnimation(ExplainActivity.this,R.anim.today_anim); //设置动画
+ explain5.startAnimation(animation);
+ TimerTask task = new TimerTask() {
+ @Override
+ public void run() {
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ explain5.setVisibility(View.GONE);
+ }
+ });
+ }
+ };
+ Timer timer = new Timer();
+ timer.schedule(task,800);
+ }
+ });
+
+ setLightMode();
+
+
+ }
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Setting/SettingActivity.java b/app/src/main/java/com/example/yzbkaka/things/Setting/SettingActivity.java
new file mode 100644
index 0000000..c0d6d3b
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Setting/SettingActivity.java
@@ -0,0 +1,106 @@
+package com.example.yzbkaka.things.Setting;
+
+
+import android.content.Intent;
+import android.os.Build;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.LinearLayout;
+
+import com.example.yzbkaka.things.ActivityCollector;
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.Service.SendMessage;
+import com.prolificinteractive.materialcalendarview.WeekView;
+
+public class SettingActivity extends AppCompatActivity {
+ private Button checkSendMessage;
+ private Button back;
+ private LinearLayout explain;
+ private LinearLayout about;
+ private LinearLayout exit;
+ public static int count = 0;
+ private Button dark;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_setting);
+ ActivityCollector.addActivity(this);
+ checkSendMessage = (Button) findViewById(R.id.check_send);
+ back = (Button)findViewById(R.id.back);
+ explain = (LinearLayout)findViewById(R.id.how_to_use);
+ about = (LinearLayout)findViewById(R.id.about);
+ exit = (LinearLayout)findViewById(R.id.exit);
+
+ if(count%2 == 0){
+ checkSendMessage.setBackgroundResource(R.drawable.checkno);
+ }
+ else{
+ checkSendMessage.setBackgroundResource(R.drawable.checkyes);
+ }
+
+ checkSendMessage.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ if(count%2 == 0){ //同意开启发送通知
+ count++;
+ checkSendMessage.setBackgroundResource(R.drawable.checkyes);
+ Intent intent = new Intent(SettingActivity.this, SendMessage.class);
+ startService(intent); //启动服务
+ }
+ else{ //拒绝发送通知
+ count++;
+ checkSendMessage.setBackgroundResource(R.drawable.checkno);
+ }
+ }
+ });
+
+ explain.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent explainIntent = new Intent(SettingActivity.this,ExplainActivity.class);
+ startActivity(explainIntent);
+ }
+ });
+
+ about.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent aboutIntent = new Intent(SettingActivity.this,AboutActivity.class);
+ startActivity(aboutIntent);
+ }
+ });
+
+ exit.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ ActivityCollector.finishAll();
+ }
+ });
+
+
+ back.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ finish();
+ }
+ });
+
+ setLightMode();
+ }
+
+ @Override
+ protected void onDestroy(){
+ super.onDestroy();
+ ActivityCollector.removeActivity(this);
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/StartActivity.java b/app/src/main/java/com/example/yzbkaka/things/StartActivity.java
new file mode 100644
index 0000000..5ea50d2
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/StartActivity.java
@@ -0,0 +1,31 @@
+package com.example.yzbkaka.things;
+
+import android.content.Intent;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.widget.ImageView;
+
+import java.util.Timer;
+import java.util.TimerTask;
+
+public class StartActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_start);
+
+
+ TimerTask task = new TimerTask() { //设置开启app的动画
+ @Override
+ public void run() {
+ Intent intent = new Intent(StartActivity.this,MainActivity.class);
+ startActivity(intent);
+ finish();
+ }
+ };
+
+ Timer timer = new Timer();
+ timer.schedule(task,1000);
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Today/AlterTodayActivity.java b/app/src/main/java/com/example/yzbkaka/things/Today/AlterTodayActivity.java
new file mode 100644
index 0000000..1153b89
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Today/AlterTodayActivity.java
@@ -0,0 +1,66 @@
+package com.example.yzbkaka.things.Today;
+
+import android.content.Intent;
+import android.os.Build;
+import android.support.design.widget.FloatingActionButton;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.Toast;
+
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.db.Plan;
+
+import org.litepal.LitePal;
+
+import static com.example.yzbkaka.things.MainActivity.todayCount;
+
+public class AlterTodayActivity extends AppCompatActivity {
+ private EditText editText;
+ private Button finish;
+ Plan plan = new Plan();
+ String oldWrite;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_alter_today);
+
+ editText = (EditText) findViewById(R.id.old_text);
+ finish = (Button)findViewById(R.id.finish);
+ Intent intent = getIntent();
+ oldWrite = intent.getStringExtra("write"); //得到之前的数据
+ editText.setText(oldWrite); //将之前的数据显示在EditText上
+
+ finish.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ String newWrite = editText.getText().toString(); //得到用户修改之后的新数据
+ if(newWrite.isEmpty()){
+ LitePal.deleteAll(Plan.class,"writePlan = ?",oldWrite); //如果修改之后为空则自动删除
+ todayCount--; //删除之后则统计数量减1
+ }
+ else{
+ plan.setWritePlan(newWrite); //LitePal语法,先设置新的内容,再寻找条件更新
+ plan.updateAll("writePlan = ?",oldWrite);
+ Toast.makeText(AlterTodayActivity.this, "修改成功", Toast.LENGTH_SHORT).show();
+ }
+ finish();
+
+ }
+ });
+
+ setLightMode();
+
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Today/NoteActivity.java b/app/src/main/java/com/example/yzbkaka/things/Today/NoteActivity.java
new file mode 100644
index 0000000..af96057
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Today/NoteActivity.java
@@ -0,0 +1,118 @@
+package com.example.yzbkaka.things.Today;
+
+
+import android.content.Intent;
+import android.os.Build;
+import android.support.design.widget.FloatingActionButton;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.support.v7.widget.LinearLayoutManager;
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.Button;
+import android.widget.CheckBox;
+import android.widget.CompoundButton;
+import android.widget.TextView;
+
+
+import com.example.yzbkaka.things.Adapter.TodayAdapter;
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.db.Plan;
+
+import org.litepal.LitePal;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.List;
+import java.util.TimeZone;
+
+import static com.example.yzbkaka.things.MainActivity.todayCount;
+
+
+public class NoteActivity extends AppCompatActivity {
+ private Button back; //后退键
+ private RecyclerView todayView; //显示今天所有任务的ListView
+ private List todayList = new ArrayList<>(); //今天任务的列表
+ private List dataList = new ArrayList<>(); //获得Plan数据库的列表
+ private FloatingActionButton create; //创建新任务的按钮
+ public static TodayAdapter todayAdapter; //适配器
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_note);
+ back = (Button)findViewById(R.id.back);
+ todayView = (RecyclerView) findViewById(R.id.today_list);
+ create = (FloatingActionButton) findViewById(R.id.create);
+
+
+ LinearLayoutManager layoutManager = new LinearLayoutManager(this); //一定要为RecyclerView设置布局管理器
+ todayView.setLayoutManager(layoutManager);
+
+ back.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ finish();
+ }
+ });
+
+ create.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent intent = new Intent(NoteActivity.this, TodayCreateActivitty.class);
+ create.setVisibility(View.GONE);
+ startActivity(intent);
+ }
+ });
+
+ todayAdapter = new TodayAdapter(todayList);
+ todayView.setAdapter(todayAdapter);
+
+ setLightMode();
+ }
+
+
+ @Override
+ public void onResume() {
+ super.onResume();
+ create.setVisibility(View.VISIBLE); //右下角的创建按钮显示出来
+ dataList = LitePal.findAll(Plan.class);
+
+ Calendar calendar = Calendar.getInstance(); //获得今天的时间
+ calendar.setTimeZone(TimeZone.getTimeZone("GMT+8:00"));
+ String year = String.valueOf(calendar.get(Calendar.YEAR));
+ String month = String.valueOf(calendar.get(Calendar.MONTH)+1);
+ String day = String.valueOf(calendar.get(Calendar.DATE));
+
+
+ if(dataList.size() > 0){
+ todayList.clear();
+ for(Plan plan:dataList){
+ if(plan.getYear().equals(year) && plan.getMonth().equals(month) && plan.getDay().equals(day) && plan.getStatus()== false){
+ todayList.add(plan);
+ //todayCount++; //today统计数量加1
+ }
+ }
+ }
+ else{
+ todayList.clear();
+ }
+ }
+
+
+ @Override
+ public void onPause(){
+ super.onPause();
+ create.setVisibility(View.GONE);
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/Today/TodayCreateActivitty.java b/app/src/main/java/com/example/yzbkaka/things/Today/TodayCreateActivitty.java
new file mode 100644
index 0000000..2d01491
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/Today/TodayCreateActivitty.java
@@ -0,0 +1,66 @@
+package com.example.yzbkaka.things.Today;
+
+import android.os.Build;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+
+
+import com.example.yzbkaka.things.R;
+import com.example.yzbkaka.things.db.Plan;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.TimeZone;
+
+import static com.example.yzbkaka.things.MainActivity.todayCount;
+
+
+public class TodayCreateActivitty extends AppCompatActivity {
+ private EditText editText; //写下的计划
+ private Button finish; //完成后的按钮
+ private String write; //输入的内容
+ private Calendar calendar; //获得时间
+ Date date;
+ Plan plan = new Plan();
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_today_create_activitty);
+ editText = (EditText)findViewById(R.id.edit_text);
+ finish = (Button)findViewById(R.id.finish);
+
+ calendar = Calendar.getInstance(); //获得实例
+ calendar.setTimeZone(TimeZone.getTimeZone("GMT+8:00")); //设置为中国区的时间
+
+ finish.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ write = String.valueOf(editText.getText()); //获得输入的内容
+ if(!write.isEmpty()){
+ plan.setWritePlan(write);
+ plan.setYear(String.valueOf(calendar.get(Calendar.YEAR))); //设置写下的时间,年
+ plan.setMonth(String.valueOf(calendar.get(Calendar.MONTH)+1)); //设置月份(系统中是从0开始的)
+ plan.setDay(String.valueOf(calendar.get(Calendar.DATE))); //设置日期
+ date = new Date(calendar.get(Calendar.YEAR),calendar.get(Calendar.MONTH)+1,calendar.get(Calendar.DATE)); //设置plan中的date
+ plan.setCreateTime(date);
+ todayCount++; //today统计数量加1
+ plan.save();
+ }
+ finish();
+ }
+ });
+
+ setLightMode();
+ }
+
+
+ private void setLightMode(){
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/db/Log.java b/app/src/main/java/com/example/yzbkaka/things/db/Log.java
new file mode 100644
index 0000000..ab1cdd6
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/db/Log.java
@@ -0,0 +1,27 @@
+package com.example.yzbkaka.things.db;
+
+import org.litepal.crud.LitePalSupport;
+
+public class Log extends LitePalSupport {
+ int id;
+ String logWrite;
+
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public void setLogWrite(String logWrite) {
+ this.logWrite = logWrite;
+ }
+
+
+ public int getId() {
+ return id;
+ }
+
+ public String getLogWrite() {
+ return logWrite;
+ }
+
+}
diff --git a/app/src/main/java/com/example/yzbkaka/things/db/Plan.java b/app/src/main/java/com/example/yzbkaka/things/db/Plan.java
new file mode 100644
index 0000000..8074350
--- /dev/null
+++ b/app/src/main/java/com/example/yzbkaka/things/db/Plan.java
@@ -0,0 +1,74 @@
+package com.example.yzbkaka.things.db;
+
+import org.litepal.crud.LitePalSupport;
+
+import java.util.Date;
+
+
+public class Plan extends LitePalSupport {
+ int id;
+ String writePlan;
+ String year;
+ String month;
+ String day;
+ boolean status; //默认值为false
+ Date createTime; //创建的时间
+
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getWritePlan() {
+ return writePlan;
+ }
+
+ public void setWritePlan(String writePlan) {
+ this.writePlan = writePlan;
+ }
+
+ public String getYear() {
+ return year;
+ }
+
+ public void setYear(String year) {
+ this.year = year;
+ }
+
+ public String getMonth() {
+ return month;
+ }
+
+ public void setMonth(String month) {
+ this.month = month;
+ }
+
+ public String getDay() {
+ return day;
+ }
+
+ public void setDay(String day) {
+ this.day = day;
+ }
+
+ public boolean getStatus() {
+ return status;
+ }
+
+ public void setStatus(boolean status) {
+ this.status = status;
+ }
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+}
diff --git a/app/src/main/res/anim/today_anim.xml b/app/src/main/res/anim/today_anim.xml
new file mode 100644
index 0000000..3ec4986
--- /dev/null
+++ b/app/src/main/res/anim/today_anim.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
\ No newline at end of file
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..c7bd21d
--- /dev/null
+++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/about.png b/app/src/main/res/drawable/about.png
new file mode 100644
index 0000000..55cf558
Binary files /dev/null and b/app/src/main/res/drawable/about.png differ
diff --git a/app/src/main/res/drawable/add.png b/app/src/main/res/drawable/add.png
new file mode 100644
index 0000000..9b41c9a
Binary files /dev/null and b/app/src/main/res/drawable/add.png differ
diff --git a/app/src/main/res/drawable/back.png b/app/src/main/res/drawable/back.png
new file mode 100644
index 0000000..58ec376
Binary files /dev/null and b/app/src/main/res/drawable/back.png differ
diff --git a/app/src/main/res/drawable/backblank.png b/app/src/main/res/drawable/backblank.png
new file mode 100644
index 0000000..b5684e4
Binary files /dev/null and b/app/src/main/res/drawable/backblank.png differ
diff --git a/app/src/main/res/drawable/background.png b/app/src/main/res/drawable/background.png
new file mode 100644
index 0000000..e1adcd4
Binary files /dev/null and b/app/src/main/res/drawable/background.png differ
diff --git a/app/src/main/res/drawable/bazi.png b/app/src/main/res/drawable/bazi.png
new file mode 100644
index 0000000..5d1465a
Binary files /dev/null and b/app/src/main/res/drawable/bazi.png differ
diff --git a/app/src/main/res/drawable/blank.png b/app/src/main/res/drawable/blank.png
new file mode 100644
index 0000000..72299a1
Binary files /dev/null and b/app/src/main/res/drawable/blank.png differ
diff --git a/app/src/main/res/drawable/button.png b/app/src/main/res/drawable/button.png
new file mode 100644
index 0000000..46875e7
Binary files /dev/null and b/app/src/main/res/drawable/button.png differ
diff --git a/app/src/main/res/drawable/checkno.png b/app/src/main/res/drawable/checkno.png
new file mode 100644
index 0000000..757e78a
Binary files /dev/null and b/app/src/main/res/drawable/checkno.png differ
diff --git a/app/src/main/res/drawable/checkyes.png b/app/src/main/res/drawable/checkyes.png
new file mode 100644
index 0000000..149d3f2
Binary files /dev/null and b/app/src/main/res/drawable/checkyes.png differ
diff --git a/app/src/main/res/drawable/clear.png b/app/src/main/res/drawable/clear.png
new file mode 100644
index 0000000..d758105
Binary files /dev/null and b/app/src/main/res/drawable/clear.png differ
diff --git a/app/src/main/res/drawable/date.png b/app/src/main/res/drawable/date.png
new file mode 100644
index 0000000..0bad2be
Binary files /dev/null and b/app/src/main/res/drawable/date.png differ
diff --git a/app/src/main/res/drawable/delete.png b/app/src/main/res/drawable/delete.png
new file mode 100644
index 0000000..3b6cf00
Binary files /dev/null and b/app/src/main/res/drawable/delete.png differ
diff --git a/app/src/main/res/drawable/delete_kuang.png b/app/src/main/res/drawable/delete_kuang.png
new file mode 100644
index 0000000..b37b5c5
Binary files /dev/null and b/app/src/main/res/drawable/delete_kuang.png differ
diff --git a/app/src/main/res/drawable/enter.png b/app/src/main/res/drawable/enter.png
new file mode 100644
index 0000000..c8ad7af
Binary files /dev/null and b/app/src/main/res/drawable/enter.png differ
diff --git a/app/src/main/res/drawable/exit.png b/app/src/main/res/drawable/exit.png
new file mode 100644
index 0000000..a4618a0
Binary files /dev/null and b/app/src/main/res/drawable/exit.png differ
diff --git a/app/src/main/res/drawable/explain.png b/app/src/main/res/drawable/explain.png
new file mode 100644
index 0000000..b807240
Binary files /dev/null and b/app/src/main/res/drawable/explain.png differ
diff --git a/app/src/main/res/drawable/finish.png b/app/src/main/res/drawable/finish.png
new file mode 100644
index 0000000..d5522b8
Binary files /dev/null and b/app/src/main/res/drawable/finish.png differ
diff --git a/app/src/main/res/drawable/fold.png b/app/src/main/res/drawable/fold.png
new file mode 100644
index 0000000..c2dfca9
Binary files /dev/null and b/app/src/main/res/drawable/fold.png differ
diff --git a/app/src/main/res/drawable/history.png b/app/src/main/res/drawable/history.png
new file mode 100644
index 0000000..3ca9cec
Binary files /dev/null and b/app/src/main/res/drawable/history.png differ
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..d5fccc5
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/img.png b/app/src/main/res/drawable/img.png
new file mode 100644
index 0000000..3f14987
Binary files /dev/null and b/app/src/main/res/drawable/img.png differ
diff --git a/app/src/main/res/drawable/kuang.png b/app/src/main/res/drawable/kuang.png
new file mode 100644
index 0000000..8d2b9e1
Binary files /dev/null and b/app/src/main/res/drawable/kuang.png differ
diff --git a/app/src/main/res/drawable/log.png b/app/src/main/res/drawable/log.png
new file mode 100644
index 0000000..d130dbc
Binary files /dev/null and b/app/src/main/res/drawable/log.png differ
diff --git a/app/src/main/res/drawable/logo144.png b/app/src/main/res/drawable/logo144.png
new file mode 100644
index 0000000..afb0a64
Binary files /dev/null and b/app/src/main/res/drawable/logo144.png differ
diff --git a/app/src/main/res/drawable/menu.png b/app/src/main/res/drawable/menu.png
new file mode 100644
index 0000000..5427489
Binary files /dev/null and b/app/src/main/res/drawable/menu.png differ
diff --git a/app/src/main/res/drawable/no.png b/app/src/main/res/drawable/no.png
new file mode 100644
index 0000000..06cf1fb
Binary files /dev/null and b/app/src/main/res/drawable/no.png differ
diff --git a/app/src/main/res/drawable/right.png b/app/src/main/res/drawable/right.png
new file mode 100644
index 0000000..2e81b4c
Binary files /dev/null and b/app/src/main/res/drawable/right.png differ
diff --git a/app/src/main/res/drawable/rightkuang.png b/app/src/main/res/drawable/rightkuang.png
new file mode 100644
index 0000000..79d6cdb
Binary files /dev/null and b/app/src/main/res/drawable/rightkuang.png differ
diff --git a/app/src/main/res/drawable/setting.png b/app/src/main/res/drawable/setting.png
new file mode 100644
index 0000000..d9298b1
Binary files /dev/null and b/app/src/main/res/drawable/setting.png differ
diff --git a/app/src/main/res/drawable/today.png b/app/src/main/res/drawable/today.png
new file mode 100644
index 0000000..45e38c1
Binary files /dev/null and b/app/src/main/res/drawable/today.png differ
diff --git a/app/src/main/res/drawable/tu.png b/app/src/main/res/drawable/tu.png
new file mode 100644
index 0000000..16ce88e
Binary files /dev/null and b/app/src/main/res/drawable/tu.png differ
diff --git a/app/src/main/res/drawable/yes.png b/app/src/main/res/drawable/yes.png
new file mode 100644
index 0000000..21c350c
Binary files /dev/null and b/app/src/main/res/drawable/yes.png differ
diff --git a/app/src/main/res/drawable/yes2.png b/app/src/main/res/drawable/yes2.png
new file mode 100644
index 0000000..df89993
Binary files /dev/null and b/app/src/main/res/drawable/yes2.png differ
diff --git a/app/src/main/res/drawable/yes3.png b/app/src/main/res/drawable/yes3.png
new file mode 100644
index 0000000..91b5cc9
Binary files /dev/null and b/app/src/main/res/drawable/yes3.png differ
diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml
new file mode 100644
index 0000000..45065c1
--- /dev/null
+++ b/app/src/main/res/layout/activity_about.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_alter_log.xml b/app/src/main/res/layout/activity_alter_log.xml
new file mode 100644
index 0000000..179498b
--- /dev/null
+++ b/app/src/main/res/layout/activity_alter_log.xml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_alter_schedule.xml b/app/src/main/res/layout/activity_alter_schedule.xml
new file mode 100644
index 0000000..83a0f89
--- /dev/null
+++ b/app/src/main/res/layout/activity_alter_schedule.xml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_alter_today.xml b/app/src/main/res/layout/activity_alter_today.xml
new file mode 100644
index 0000000..3c748a5
--- /dev/null
+++ b/app/src/main/res/layout/activity_alter_today.xml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_explain.xml b/app/src/main/res/layout/activity_explain.xml
new file mode 100644
index 0000000..b0efd22
--- /dev/null
+++ b/app/src/main/res/layout/activity_explain.xml
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_history.xml b/app/src/main/res/layout/activity_history.xml
new file mode 100644
index 0000000..fe29d0f
--- /dev/null
+++ b/app/src/main/res/layout/activity_history.xml
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_log.xml b/app/src/main/res/layout/activity_log.xml
new file mode 100644
index 0000000..5fd3233
--- /dev/null
+++ b/app/src/main/res/layout/activity_log.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_log_create.xml b/app/src/main/res/layout/activity_log_create.xml
new file mode 100644
index 0000000..b1252e2
--- /dev/null
+++ b/app/src/main/res/layout/activity_log_create.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..a2e4b86
--- /dev/null
+++ b/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_note.xml b/app/src/main/res/layout/activity_note.xml
new file mode 100644
index 0000000..26cec11
--- /dev/null
+++ b/app/src/main/res/layout/activity_note.xml
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_schedule.xml b/app/src/main/res/layout/activity_schedule.xml
new file mode 100644
index 0000000..b309015
--- /dev/null
+++ b/app/src/main/res/layout/activity_schedule.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_schedule_create.xml b/app/src/main/res/layout/activity_schedule_create.xml
new file mode 100644
index 0000000..e549350
--- /dev/null
+++ b/app/src/main/res/layout/activity_schedule_create.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_schedule_view.xml b/app/src/main/res/layout/activity_schedule_view.xml
new file mode 100644
index 0000000..fb97011
--- /dev/null
+++ b/app/src/main/res/layout/activity_schedule_view.xml
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_setting.xml b/app/src/main/res/layout/activity_setting.xml
new file mode 100644
index 0000000..3a6d537
--- /dev/null
+++ b/app/src/main/res/layout/activity_setting.xml
@@ -0,0 +1,206 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_start.xml b/app/src/main/res/layout/activity_start.xml
new file mode 100644
index 0000000..8d2379c
--- /dev/null
+++ b/app/src/main/res/layout/activity_start.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_today_create_activitty.xml b/app/src/main/res/layout/activity_today_create_activitty.xml
new file mode 100644
index 0000000..2c8fef7
--- /dev/null
+++ b/app/src/main/res/layout/activity_today_create_activitty.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/history_item.xml b/app/src/main/res/layout/history_item.xml
new file mode 100644
index 0000000..5d825da
--- /dev/null
+++ b/app/src/main/res/layout/history_item.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/log_item.xml b/app/src/main/res/layout/log_item.xml
new file mode 100644
index 0000000..524d419
--- /dev/null
+++ b/app/src/main/res/layout/log_item.xml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/schedule_item.xml b/app/src/main/res/layout/schedule_item.xml
new file mode 100644
index 0000000..76b3242
--- /dev/null
+++ b/app/src/main/res/layout/schedule_item.xml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/today_item.xml b/app/src/main/res/layout/today_item.xml
new file mode 100644
index 0000000..4301e4b
--- /dev/null
+++ b/app/src/main/res/layout/today_item.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/logo.png b/app/src/main/res/mipmap-anydpi-v26/logo.png
new file mode 100644
index 0000000..bbf8e95
Binary files /dev/null and b/app/src/main/res/mipmap-anydpi-v26/logo.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..a2f5908
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..1b52399
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-hdpi/logo.png b/app/src/main/res/mipmap-hdpi/logo.png
new file mode 100644
index 0000000..3426b76
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/logo.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..ff10afd
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..115a4c7
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/logo.png b/app/src/main/res/mipmap-mdpi/logo.png
new file mode 100644
index 0000000..4a8dec8
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/logo.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..dcd3cd8
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..459ca60
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/logo.png b/app/src/main/res/mipmap-xhdpi/logo.png
new file mode 100644
index 0000000..afb0a64
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/logo.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..8ca12fe
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..8e19b41
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..b824ebd
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..4c19a13
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/rpz.png b/app/src/main/res/mipmap-xxxhdpi/rpz.png
new file mode 100644
index 0000000..8c231e6
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/rpz.png differ
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..3972b25
--- /dev/null
+++ b/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #fff
+ #fff
+ #fff
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..dbd7cd3
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ Schedule
+
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..876ed58
--- /dev/null
+++ b/app/src/main/res/values/styles.xml
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/test/java/com/example/yzbkaka/things/ExampleUnitTest.java b/app/src/test/java/com/example/yzbkaka/things/ExampleUnitTest.java
new file mode 100644
index 0000000..9f6faab
--- /dev/null
+++ b/app/src/test/java/com/example/yzbkaka/things/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.example.yzbkaka.things;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..47a8534
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,27 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+
+ repositories {
+ google()
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:7.4.2'
+
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..aac7c9b
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,17 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..13372ae
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..0b70043
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed May 31 02:42:24 CST 2023
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/gradlew b/gradlew
new file mode 100644
index 0000000..9d82f78
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/local.properties b/local.properties
new file mode 100644
index 0000000..1f5d215
--- /dev/null
+++ b/local.properties
@@ -0,0 +1,8 @@
+## This file must *NOT* be checked into Version Control Systems,
+# as it contains information specific to your local configuration.
+#
+# Location of the SDK. This is only used by Gradle.
+# For customization when using a Version Control System, please read the
+# header note.
+#Wed May 31 02:41:28 CST 2023
+sdk.dir=C\:\\Users\\Mind\\AppData\\Local\\Android\\Sdk
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
+include ':app'