diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6e86314
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,53 @@
+
+*.lock
+*.bin
+.idea/libraries/Gradle__com_daimajia_androidanimations_library_1_1_3_aar.xml
+.idea/libraries/Gradle__com_daimajia_androidanimations_library_1_1_3_aar.xml
+.idea/libraries/Gradle__com_daimajia_androidanimations_library_1_1_3_aar.xml
+.idea/libraries/Gradle__com_daimajia_easing_library_1_0_1_aar.xml
+.idea/libraries/Gradle__com_github_amlcurran_showcaseview_library_5_4_3_aar.xml
+.idea/libraries/Gradle__com_github_clans_fab_1_6_4_aar.xml
+.idea/libraries/Gradle__com_github_florent37_materialtextfield_1_0_7_aar.xml
+.idea/libraries/Gradle__com_github_johnpersano_supertoasts_2_0_aar.xml
+.idea/libraries/Gradle__com_github_jorgecastilloprz_fillableloaders_1_02_aar.xml
+.idea/libraries/Gradle__com_github_ozodrukh_CircularReveal_1_1_1_aar.xml
+.idea/libraries/Gradle__com_github_ViksaaSkool_AwesomeSplash_v1_0_0_aar.xml
+.idea/libraries/Gradle__com_google_android_gms_play_services_base_17_0_0_aar.xml
+.idea/libraries/Gradle__com_google_android_gms_play_services_basement_17_0_0_aar.xml
+.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_17_0_0_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_auth_interop_18_0_0_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_common_19_3_1_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_components_16_0_0_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_database_19_5_0_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_database_collection_17_0_1_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_storage_19_2_0_aar.xml
+.idea/libraries/Gradle__com_majeur_cling_cling_1_1_aar.xml
+.idea/libraries/Gradle__com_ogaclejapan_smarttablayout_library_1_6_1_aar.xml
+.idea/libraries/Gradle__com_ogaclejapan_smarttablayout_utils_v4_1_6_1_aar.xml
+.idea/libraries/Gradle__com_yarolegovich_lovely_dialog_1_0_7_aar.xml
+.idea/libraries/Gradle__com_daimajia_androidanimations_library_1_1_3_aar.xml
+.idea/libraries/Gradle__com_daimajia_easing_library_1_0_1_aar.xml
+.idea/libraries/Gradle__com_github_amlcurran_showcaseview_library_5_4_3_aar.xml
+.idea/libraries/Gradle__com_github_clans_fab_1_6_4_aar.xml
+.idea/libraries/Gradle__com_github_florent37_materialtextfield_1_0_7_aar.xml
+.idea/libraries/Gradle__com_github_johnpersano_supertoasts_2_0_aar.xml
+.idea/libraries/Gradle__com_github_jorgecastilloprz_fillableloaders_1_02_aar.xml
+.idea/libraries/Gradle__com_github_ozodrukh_CircularReveal_1_1_1_aar.xml
+.idea/libraries/Gradle__com_github_ViksaaSkool_AwesomeSplash_v1_0_0_aar.xml
+.idea/libraries/Gradle__com_google_android_gms_play_services_base_17_0_0_aar.xml
+.idea/libraries/Gradle__com_google_android_gms_play_services_basement_17_0_0_aar.xml
+.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_17_0_0_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_auth_interop_18_0_0_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_common_19_3_1_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_components_16_0_0_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_database_19_5_0_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_database_collection_17_0_1_aar.xml
+.idea/libraries/Gradle__com_google_firebase_firebase_storage_19_2_0_aar.xml
+.idea/libraries/Gradle__com_majeur_cling_cling_1_1_aar.xml
+.idea/libraries/Gradle__com_ogaclejapan_smarttablayout_library_1_6_1_aar.xml
+.idea/libraries/Gradle__com_ogaclejapan_smarttablayout_utils_v4_1_6_1_aar.xml
+.idea/libraries/Gradle__com_yarolegovich_lovely_dialog_1_0_7_aar.xml
+.idea/caches/build_file_checksums.ser
+.idea/gradle.xml
+.idea/modules/app/app.iml
+.idea/workspace.xml
diff --git a/.gradle/6.1.1/gc.properties b/.gradle/6.1.1/gc.properties
new file mode 100644
index 0000000..e69de29
diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties
new file mode 100644
index 0000000..1b6adc3
--- /dev/null
+++ b/.gradle/buildOutputCleanup/cache.properties
@@ -0,0 +1,2 @@
+#Tue Oct 27 10:10:15 IST 2020
+gradle.version=6.1.1
diff --git a/.gradle/vcs-1/gc.properties b/.gradle/vcs-1/gc.properties
new file mode 100644
index 0000000..e69de29
diff --git a/.gradle/vcsWorkingDirs/gc.properties b/.gradle/vcsWorkingDirs/gc.properties
new file mode 100644
index 0000000..e69de29
diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser
new file mode 100644
index 0000000..61b7313
Binary files /dev/null and b/.idea/caches/build_file_checksums.ser differ
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..0d15693
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ xmlns:android
+
+ ^$
+
+
+
+
+
+
+
+
+ xmlns:.*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*:id
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ .*:name
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ name
+
+ ^$
+
+
+
+
+
+
+
+
+ style
+
+ ^$
+
+
+
+
+
+
+
+
+ .*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*
+
+ http://schemas.android.com/apk/res/android
+
+
+ ANDROID_ATTRIBUTE_ORDER
+
+
+
+
+
+
+ .*
+
+ .*
+
+
+ BY_NAME
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..77af071
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..4fd937a
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_annotation_annotation_1_1_0_jar.xml b/.idea/libraries/Gradle__androidx_annotation_annotation_1_1_0_jar.xml
new file mode 100644
index 0000000..5b17db6
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_annotation_annotation_1_1_0_jar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_0_0_aar.xml
new file mode 100644
index 0000000..2c9d0df
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_0_0_aar.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_arch_core_core_common_2_0_0_jar.xml b/.idea/libraries/Gradle__androidx_arch_core_core_common_2_0_0_jar.xml
new file mode 100644
index 0000000..83e1a45
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_arch_core_core_common_2_0_0_jar.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_0_0_aar.xml b/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_0_0_aar.xml
new file mode 100644
index 0000000..18417de
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml
new file mode 100644
index 0000000..fad6df1
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_collection_collection_1_1_0_jar.xml b/.idea/libraries/Gradle__androidx_collection_collection_1_1_0_jar.xml
new file mode 100644
index 0000000..ecb16c3
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_collection_collection_1_1_0_jar.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_1_1_3_aar.xml b/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_1_1_3_aar.xml
new file mode 100644
index 0000000..b17eef8
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_1_1_3_aar.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_solver_1_1_3_jar.xml b/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_solver_1_1_3_jar.xml
new file mode 100644
index 0000000..f92fb42
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_solver_1_1_3_jar.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml
new file mode 100644
index 0000000..bd8b724
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_core_core_1_3_0_aar.xml b/.idea/libraries/Gradle__androidx_core_core_1_3_0_aar.xml
new file mode 100644
index 0000000..fdbbebf
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_core_core_1_3_0_aar.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml
new file mode 100644
index 0000000..8048b97
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_customview_customview_1_1_0_aar.xml b/.idea/libraries/Gradle__androidx_customview_customview_1_1_0_aar.xml
new file mode 100644
index 0000000..e63dfd2
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_customview_customview_1_1_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml
new file mode 100644
index 0000000..b2657fb
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_1_1_aar.xml b/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_1_1_aar.xml
new file mode 100644
index 0000000..db7e25a
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_1_1_aar.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_fragment_fragment_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_fragment_fragment_1_0_0_aar.xml
new file mode 100644
index 0000000..07ed5b3
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_fragment_fragment_1_0_0_aar.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml
new file mode 100644
index 0000000..19109b3
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml
new file mode 100644
index 0000000..463e8b5
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml
new file mode 100644
index 0000000..44f00ac
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_legacy_legacy_support_v4_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_legacy_legacy_support_v4_1_0_0_aar.xml
new file mode 100644
index 0000000..b950337
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_legacy_legacy_support_v4_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_0_0_jar.xml b/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_0_0_jar.xml
new file mode 100644
index 0000000..f2e418b
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_0_0_jar.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml b/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml
new file mode 100644
index 0000000..fa10656
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml b/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml
new file mode 100644
index 0000000..19c4590
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_0_0_aar.xml b/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_0_0_aar.xml
new file mode 100644
index 0000000..291cb74
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_0_0_aar.xml b/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_0_0_aar.xml
new file mode 100644
index 0000000..4228cba
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml
new file mode 100644
index 0000000..d75c487
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml
new file mode 100644
index 0000000..0e4afc5
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_media_media_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_media_media_1_0_0_aar.xml
new file mode 100644
index 0000000..1aa2fc3
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_media_media_1_0_0_aar.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml
new file mode 100644
index 0000000..9d465d8
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml
new file mode 100644
index 0000000..273b7bb
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_swiperefreshlayout_swiperefreshlayout_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_swiperefreshlayout_swiperefreshlayout_1_0_0_aar.xml
new file mode 100644
index 0000000..731ceef
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_swiperefreshlayout_swiperefreshlayout_1_0_0_aar.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_test_espresso_espresso_core_3_1_0_alpha3_aar.xml b/.idea/libraries/Gradle__androidx_test_espresso_espresso_core_3_1_0_alpha3_aar.xml
new file mode 100644
index 0000000..b78c775
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_test_espresso_espresso_core_3_1_0_alpha3_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_test_espresso_espresso_idling_resource_3_1_0_alpha3_aar.xml b/.idea/libraries/Gradle__androidx_test_espresso_espresso_idling_resource_3_1_0_alpha3_aar.xml
new file mode 100644
index 0000000..5bb6152
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_test_espresso_espresso_idling_resource_3_1_0_alpha3_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_test_monitor_1_1_0_alpha3_aar.xml b/.idea/libraries/Gradle__androidx_test_monitor_1_1_0_alpha3_aar.xml
new file mode 100644
index 0000000..cad891d
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_test_monitor_1_1_0_alpha3_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_test_runner_1_1_0_alpha3_aar.xml b/.idea/libraries/Gradle__androidx_test_runner_1_1_0_alpha3_aar.xml
new file mode 100644
index 0000000..d065cce
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_test_runner_1_1_0_alpha3_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_0_0_aar.xml
new file mode 100644
index 0000000..b0b2f72
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_0_0_aar.xml
new file mode 100644
index 0000000..8b00c7f
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_0_aar.xml b/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_0_aar.xml
new file mode 100644
index 0000000..11d5d20
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml b/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml
new file mode 100644
index 0000000..e29d8df
--- /dev/null
+++ b/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_daimajia_androidanimations_library_1_1_3_aar.xml b/.idea/libraries/Gradle__com_daimajia_androidanimations_library_1_1_3_aar.xml
new file mode 100644
index 0000000..215bef0
--- /dev/null
+++ b/.idea/libraries/Gradle__com_daimajia_androidanimations_library_1_1_3_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_daimajia_easing_library_1_0_1_aar.xml b/.idea/libraries/Gradle__com_daimajia_easing_library_1_0_1_aar.xml
new file mode 100644
index 0000000..74200aa
--- /dev/null
+++ b/.idea/libraries/Gradle__com_daimajia_easing_library_1_0_1_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_github_ViksaaSkool_AwesomeSplash_v1_0_0_aar.xml b/.idea/libraries/Gradle__com_github_ViksaaSkool_AwesomeSplash_v1_0_0_aar.xml
new file mode 100644
index 0000000..2fdc3f8
--- /dev/null
+++ b/.idea/libraries/Gradle__com_github_ViksaaSkool_AwesomeSplash_v1_0_0_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_github_amlcurran_showcaseview_library_5_4_3_aar.xml b/.idea/libraries/Gradle__com_github_amlcurran_showcaseview_library_5_4_3_aar.xml
new file mode 100644
index 0000000..21b08c5
--- /dev/null
+++ b/.idea/libraries/Gradle__com_github_amlcurran_showcaseview_library_5_4_3_aar.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_github_clans_fab_1_6_4_aar.xml b/.idea/libraries/Gradle__com_github_clans_fab_1_6_4_aar.xml
new file mode 100644
index 0000000..936f9d2
--- /dev/null
+++ b/.idea/libraries/Gradle__com_github_clans_fab_1_6_4_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_github_florent37_materialtextfield_1_0_7_aar.xml b/.idea/libraries/Gradle__com_github_florent37_materialtextfield_1_0_7_aar.xml
new file mode 100644
index 0000000..fa6e106
--- /dev/null
+++ b/.idea/libraries/Gradle__com_github_florent37_materialtextfield_1_0_7_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_github_johnpersano_supertoasts_2_0_aar.xml b/.idea/libraries/Gradle__com_github_johnpersano_supertoasts_2_0_aar.xml
new file mode 100644
index 0000000..5348e35
--- /dev/null
+++ b/.idea/libraries/Gradle__com_github_johnpersano_supertoasts_2_0_aar.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_github_jorgecastilloprz_fillableloaders_1_02_aar.xml b/.idea/libraries/Gradle__com_github_jorgecastilloprz_fillableloaders_1_02_aar.xml
new file mode 100644
index 0000000..b574a86
--- /dev/null
+++ b/.idea/libraries/Gradle__com_github_jorgecastilloprz_fillableloaders_1_02_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_github_ozodrukh_CircularReveal_1_1_1_aar.xml b/.idea/libraries/Gradle__com_github_ozodrukh_CircularReveal_1_1_1_aar.xml
new file mode 100644
index 0000000..6d9e7a9
--- /dev/null
+++ b/.idea/libraries/Gradle__com_github_ozodrukh_CircularReveal_1_1_1_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_google_android_gms_play_services_base_17_0_0_aar.xml b/.idea/libraries/Gradle__com_google_android_gms_play_services_base_17_0_0_aar.xml
new file mode 100644
index 0000000..ea5f256
--- /dev/null
+++ b/.idea/libraries/Gradle__com_google_android_gms_play_services_base_17_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_google_android_gms_play_services_basement_17_0_0_aar.xml b/.idea/libraries/Gradle__com_google_android_gms_play_services_basement_17_0_0_aar.xml
new file mode 100644
index 0000000..c3cb460
--- /dev/null
+++ b/.idea/libraries/Gradle__com_google_android_gms_play_services_basement_17_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_17_0_0_aar.xml b/.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_17_0_0_aar.xml
new file mode 100644
index 0000000..426d7a6
--- /dev/null
+++ b/.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_17_0_0_aar.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml b/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml
new file mode 100644
index 0000000..947e251
--- /dev/null
+++ b/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_google_firebase_firebase_auth_interop_18_0_0_aar.xml b/.idea/libraries/Gradle__com_google_firebase_firebase_auth_interop_18_0_0_aar.xml
new file mode 100644
index 0000000..cb12bcf
--- /dev/null
+++ b/.idea/libraries/Gradle__com_google_firebase_firebase_auth_interop_18_0_0_aar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_google_firebase_firebase_common_19_3_1_aar.xml b/.idea/libraries/Gradle__com_google_firebase_firebase_common_19_3_1_aar.xml
new file mode 100644
index 0000000..335a9bf
--- /dev/null
+++ b/.idea/libraries/Gradle__com_google_firebase_firebase_common_19_3_1_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_google_firebase_firebase_components_16_0_0_aar.xml b/.idea/libraries/Gradle__com_google_firebase_firebase_components_16_0_0_aar.xml
new file mode 100644
index 0000000..8c5f883
--- /dev/null
+++ b/.idea/libraries/Gradle__com_google_firebase_firebase_components_16_0_0_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_google_firebase_firebase_database_19_5_0_aar.xml b/.idea/libraries/Gradle__com_google_firebase_firebase_database_19_5_0_aar.xml
new file mode 100644
index 0000000..95d44e5
--- /dev/null
+++ b/.idea/libraries/Gradle__com_google_firebase_firebase_database_19_5_0_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_google_firebase_firebase_database_collection_17_0_1_aar.xml b/.idea/libraries/Gradle__com_google_firebase_firebase_database_collection_17_0_1_aar.xml
new file mode 100644
index 0000000..7962729
--- /dev/null
+++ b/.idea/libraries/Gradle__com_google_firebase_firebase_database_collection_17_0_1_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_google_firebase_firebase_storage_19_2_0_aar.xml b/.idea/libraries/Gradle__com_google_firebase_firebase_storage_19_2_0_aar.xml
new file mode 100644
index 0000000..1e22423
--- /dev/null
+++ b/.idea/libraries/Gradle__com_google_firebase_firebase_storage_19_2_0_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_majeur_cling_cling_1_1_aar.xml b/.idea/libraries/Gradle__com_majeur_cling_cling_1_1_aar.xml
new file mode 100644
index 0000000..838bf99
--- /dev/null
+++ b/.idea/libraries/Gradle__com_majeur_cling_cling_1_1_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0_jar.xml b/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0_jar.xml
new file mode 100644
index 0000000..e60968f
--- /dev/null
+++ b/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0_jar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_ogaclejapan_smarttablayout_library_1_6_1_aar.xml b/.idea/libraries/Gradle__com_ogaclejapan_smarttablayout_library_1_6_1_aar.xml
new file mode 100644
index 0000000..d4fde41
--- /dev/null
+++ b/.idea/libraries/Gradle__com_ogaclejapan_smarttablayout_library_1_6_1_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_ogaclejapan_smarttablayout_utils_v4_1_6_1_aar.xml b/.idea/libraries/Gradle__com_ogaclejapan_smarttablayout_utils_v4_1_6_1_aar.xml
new file mode 100644
index 0000000..427579d
--- /dev/null
+++ b/.idea/libraries/Gradle__com_ogaclejapan_smarttablayout_utils_v4_1_6_1_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_squareup_javawriter_2_1_1_jar.xml b/.idea/libraries/Gradle__com_squareup_javawriter_2_1_1_jar.xml
new file mode 100644
index 0000000..f97c138
--- /dev/null
+++ b/.idea/libraries/Gradle__com_squareup_javawriter_2_1_1_jar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__com_yarolegovich_lovely_dialog_1_0_7_aar.xml b/.idea/libraries/Gradle__com_yarolegovich_lovely_dialog_1_0_7_aar.xml
new file mode 100644
index 0000000..3da4ab5
--- /dev/null
+++ b/.idea/libraries/Gradle__com_yarolegovich_lovely_dialog_1_0_7_aar.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__javax_inject_javax_inject_1_jar.xml b/.idea/libraries/Gradle__javax_inject_javax_inject_1_jar.xml
new file mode 100644
index 0000000..5ac7d7b
--- /dev/null
+++ b/.idea/libraries/Gradle__javax_inject_javax_inject_1_jar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__junit_junit_4_12_jar.xml b/.idea/libraries/Gradle__junit_junit_4_12_jar.xml
new file mode 100644
index 0000000..24e5b72
--- /dev/null
+++ b/.idea/libraries/Gradle__junit_junit_4_12_jar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__junit_junit_4_13_jar.xml b/.idea/libraries/Gradle__junit_junit_4_13_jar.xml
new file mode 100644
index 0000000..bf50f62
--- /dev/null
+++ b/.idea/libraries/Gradle__junit_junit_4_13_jar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml b/.idea/libraries/Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml
new file mode 100644
index 0000000..ddd2635
--- /dev/null
+++ b/.idea/libraries/Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml b/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml
new file mode 100644
index 0000000..6b1e2e7
--- /dev/null
+++ b/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml b/.idea/libraries/Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml
new file mode 100644
index 0000000..a8015c9
--- /dev/null
+++ b/.idea/libraries/Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml b/.idea/libraries/Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml
new file mode 100644
index 0000000..00bb125
--- /dev/null
+++ b/.idea/libraries/Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..beb6ec3
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..99992f2
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules/app/app.iml b/.idea/modules/app/app.iml
new file mode 100644
index 0000000..bc2456f
--- /dev/null
+++ b/.idea/modules/app/app.iml
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ generateDebugSources
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules/timetable.iml b/.idea/modules/timetable.iml
new file mode 100644
index 0000000..cd90489
--- /dev/null
+++ b/.idea/modules/timetable.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /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..a78765c
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1603773058189
+
+
+ 1603773058189
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 0f8f0fc..8d9ac7a 100755
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'
android {
- compileSdkVersion 25
- buildToolsVersion "25.0.3"
+ compileSdkVersion 30
+ buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.example.kalyan.timetable"
minSdkVersion 18
- targetSdkVersion 25
+ targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -26,32 +26,32 @@ repositories {
url "https://maven.google.com"
}
}
-ext{
+ext {
playServices = '9.6.1'
}
dependencies {
- compile fileTree(dir: 'libs', include: ['*.jar'])
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
+ implementation 'androidx.drawerlayout:drawerlayout:1.1.1'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
- compile 'com.majeur.cling:cling:1.1'
- compile 'com.github.florent37:materialtextfield:1.0.7'
- compile 'com.ogaclejapan.smarttablayout:library:1.6.1@aar'
- compile 'com.ogaclejapan.smarttablayout:utils-v4:1.6.1@aar'
- compile 'com.ogaclejapan.smarttablayout:utils-v13:1.6.1@aar'
- compile 'com.github.clans:fab:1.6.4'
- compile 'com.android.support:appcompat-v7:25.3.1'
- compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
- compile 'com.majeur.cling:cling:1.1'
- compile 'com.github.ViksaaSkool:AwesomeSplash:v1.0.0'
- compile 'com.yarolegovich:lovely-dialog:1.0.7'
- compile 'com.github.johnpersano:supertoasts:2.0'
- compile "com.google.firebase:firebase-database:$playServices"
- compile "com.google.firebase:firebase-storage:$playServices"
+ implementation 'com.majeur.cling:cling:1.1'
+ implementation 'com.github.florent37:materialtextfield:1.0.7'
+ implementation 'com.ogaclejapan.smarttablayout:library:1.6.1@aar'
+ implementation 'com.ogaclejapan.smarttablayout:utils-v4:1.6.1@aar'
+ implementation 'com.github.clans:fab:1.6.4'
+ implementation 'com.android.support:appcompat-v7:25.4.0'
+ implementation 'com.android.support.constraint:constraint-layout:2.0.2'
+ implementation 'com.majeur.cling:cling:1.1'
+ implementation 'com.github.ViksaaSkool:AwesomeSplash:v1.0.0'
+ implementation 'com.yarolegovich:lovely-dialog:1.0.7'
+ implementation 'com.github.johnpersano:supertoasts:2.0'
+ implementation 'com.google.firebase:firebase-database:19.5.0'
+ implementation 'com.google.firebase:firebase-storage:19.2.0'
- compile 'com.github.amlcurran.showcaseview:library:5.4.3'
- testCompile 'junit:junit:4.12'
+ implementation 'com.github.amlcurran.showcaseview:library:5.4.3'
+ testImplementation 'junit:junit:4.13'
}
apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
diff --git a/app/src/androidTest/java/com/example/kalyan/timetable/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/example/kalyan/timetable/ExampleInstrumentedTest.java
index c848972..095d2dc 100755
--- a/app/src/androidTest/java/com/example/kalyan/timetable/ExampleInstrumentedTest.java
+++ b/app/src/androidTest/java/com/example/kalyan/timetable/ExampleInstrumentedTest.java
@@ -7,7 +7,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
/**
* Instrumentation test, which will execute on an Android device.
@@ -15,9 +15,11 @@
* @see Testing documentation
*/
@RunWith(AndroidJUnit4.class)
-public class ExampleInstrumentedTest {
+public class ExampleInstrumentedTest
+{
@Test
- public void useAppContext() throws Exception {
+ public void useAppContext() throws Exception
+ {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 050d06f..066f215 100755
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -86,19 +86,19 @@
-
+
-
-
+
+
diff --git a/app/src/main/java/com/example/kalyan/timetable/AboutActivity.java b/app/src/main/java/com/example/kalyan/timetable/AboutActivity.java
index a6c10f5..58a8533 100755
--- a/app/src/main/java/com/example/kalyan/timetable/AboutActivity.java
+++ b/app/src/main/java/com/example/kalyan/timetable/AboutActivity.java
@@ -1,23 +1,19 @@
package com.example.kalyan.timetable;
import android.content.Intent;
-import android.net.Uri;
-import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
-import android.view.Window;
import android.widget.ImageView;
import android.widget.Toast;
-import com.github.amlcurran.showcaseview.ShowcaseView;
-import com.github.amlcurran.showcaseview.targets.ActionViewTarget;
-import com.github.amlcurran.showcaseview.targets.Target;
-import com.github.amlcurran.showcaseview.targets.ViewTarget;
+import androidx.appcompat.app.AppCompatActivity;
-public class AboutActivity extends AppCompatActivity {
+public class AboutActivity extends AppCompatActivity
+{
@Override
- protected void onCreate(Bundle savedInstanceState) {
+ protected void onCreate(Bundle savedInstanceState)
+ {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about);
setTitle("About us");
@@ -27,57 +23,77 @@ protected void onCreate(Bundle savedInstanceState) {
ImageView shreyas = (ImageView) findViewById(R.id.shreyas_phone);
ImageView priyanshu = (ImageView) findViewById(R.id.priyanshu_phone);
- ayush.setOnClickListener(new View.OnClickListener() {
+ ayush.setOnClickListener(new View.OnClickListener()
+ {
@Override
- public void onClick(View v) {
+ public void onClick(View v)
+ {
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("message/rfc822");
- i.putExtra(Intent.EXTRA_EMAIL , new String[]{"ayushgupta@gmail.com"});
- try {
+ i.putExtra(Intent.EXTRA_EMAIL, new String[]{"ayushgupta@gmail.com"});
+ try
+ {
startActivity(Intent.createChooser(i, "Send mail..."));
- } catch (android.content.ActivityNotFoundException ex) {
- Toast.makeText(AboutActivity.this,"There are no email clients installed.", Toast.LENGTH_SHORT).show();
+ }
+ catch (android.content.ActivityNotFoundException ex)
+ {
+ Toast.makeText(AboutActivity.this, "There are no email clients installed.", Toast.LENGTH_SHORT).show();
}
}
});
- kalyan.setOnClickListener(new View.OnClickListener() {
+ kalyan.setOnClickListener(new View.OnClickListener()
+ {
@Override
- public void onClick(View v) {
+ public void onClick(View v)
+ {
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("message/rfc822");
- i.putExtra(Intent.EXTRA_EMAIL , new String[]{"kalyanprusty@gmail.com"});
- try {
+ i.putExtra(Intent.EXTRA_EMAIL, new String[]{"kalyanprusty@gmail.com"});
+ try
+ {
startActivity(Intent.createChooser(i, "Send mail..."));
- } catch (android.content.ActivityNotFoundException ex) {
- Toast.makeText(AboutActivity.this,"There are no email clients installed.", Toast.LENGTH_SHORT).show();
+ }
+ catch (android.content.ActivityNotFoundException ex)
+ {
+ Toast.makeText(AboutActivity.this, "There are no email clients installed.", Toast.LENGTH_SHORT).show();
}
}
});
- shreyas.setOnClickListener(new View.OnClickListener() {
+ shreyas.setOnClickListener(new View.OnClickListener()
+ {
@Override
- public void onClick(View v) {
+ public void onClick(View v)
+ {
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("message/rfc822");
- i.putExtra(Intent.EXTRA_EMAIL , new String[]{"shreyasdobhal@gmail.com"});
- try {
+ i.putExtra(Intent.EXTRA_EMAIL, new String[]{"shreyasdobhal@gmail.com"});
+ try
+ {
startActivity(Intent.createChooser(i, "Send mail..."));
- } catch (android.content.ActivityNotFoundException ex) {
- Toast.makeText(AboutActivity.this,"There are no email clients installed.", Toast.LENGTH_SHORT).show();
+ }
+ catch (android.content.ActivityNotFoundException ex)
+ {
+ Toast.makeText(AboutActivity.this, "There are no email clients installed.", Toast.LENGTH_SHORT).show();
}
}
});
- priyanshu.setOnClickListener(new View.OnClickListener() {
+ priyanshu.setOnClickListener(new View.OnClickListener()
+ {
@Override
- public void onClick(View v) {
+ public void onClick(View v)
+ {
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("message/rfc822");
- i.putExtra(Intent.EXTRA_EMAIL , new String[]{"priyanshusingh@gmail.com"});
- try {
+ i.putExtra(Intent.EXTRA_EMAIL, new String[]{"priyanshusingh@gmail.com"});
+ try
+ {
startActivity(Intent.createChooser(i, "Send mail..."));
- } catch (android.content.ActivityNotFoundException ex) {
- Toast.makeText(AboutActivity.this,"There are no email clients installed.", Toast.LENGTH_SHORT).show();
+ }
+ catch (android.content.ActivityNotFoundException ex)
+ {
+ Toast.makeText(AboutActivity.this, "There are no email clients installed.", Toast.LENGTH_SHORT).show();
}
}
});
diff --git a/app/src/main/java/com/example/kalyan/timetable/AttendenceActivity.java b/app/src/main/java/com/example/kalyan/timetable/AttendenceActivity.java
index c5c60e9..2754c63 100755
--- a/app/src/main/java/com/example/kalyan/timetable/AttendenceActivity.java
+++ b/app/src/main/java/com/example/kalyan/timetable/AttendenceActivity.java
@@ -2,14 +2,11 @@
import android.content.ContentValues;
import android.content.Context;
-import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.icu.util.Calendar;
import android.os.Build;
-import android.support.annotation.RequiresApi;
-import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
@@ -20,10 +17,11 @@
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.CompoundButton;
-import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
-import android.widget.Toast;
+
+import androidx.annotation.RequiresApi;
+import androidx.appcompat.app.AppCompatActivity;
import java.util.ArrayList;
import java.util.Hashtable;
@@ -32,20 +30,21 @@
import static android.content.Context.MODE_PRIVATE;
import static android.database.sqlite.SQLiteDatabase.openOrCreateDatabase;
-public class AttendenceActivity extends AppCompatActivity {
+public class AttendenceActivity extends AppCompatActivity
+{
+ static String tSQL[];
+ static Hashtable databaseData = new Hashtable<>();
+ static Hashtable edittedData = new Hashtable<>();
Cursor mCursor;
ListView listView;
SQLiteDatabase mysubdatabase = null;
- static String tSQL[];
MyattAdapter adapter;
- static Hashtable databaseData = new Hashtable<>();
- static Hashtable edittedData = new Hashtable<>();
-
@RequiresApi(api = Build.VERSION_CODES.N)
@Override
- protected void onCreate(Bundle savedInstanceState) {
+ protected void onCreate(Bundle savedInstanceState)
+ {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_attendence);
@@ -53,15 +52,18 @@ protected void onCreate(Bundle savedInstanceState) {
String day = Utility.Day(c.getTime().toString().split(" ")[0]);
- Log.e("day",day);
+ Log.e("day", day);
listView = (ListView) findViewById(R.id.attendance_list);
String selectQuery = "SELECT * FROM " + Contract.Entry.TABLE_NAME + " WHERE "
- + Contract.Entry.COLUMN_DAY + " = " + "\""+day+"\"";
+ + Contract.Entry.COLUMN_DAY + " = " + "\"" + day + "\"";
Helper helper = (new Helper(MainActivity.getContext()));
- try {
+ try
+ {
mCursor = helper.getReadableDatabase().rawQuery(selectQuery, null);
- }catch (SQLiteException e){
+ }
+ catch (SQLiteException e)
+ {
}
@@ -69,94 +71,110 @@ protected void onCreate(Bundle savedInstanceState) {
tSQL = MainActivity.getContext().getResources().getStringArray(R.array.TimeSQL);
int position = 0;
ArrayList titles = new ArrayList<>();
- if(mCursor.moveToFirst()){
+ if (mCursor.moveToFirst())
+ {
String tempSt;
- do {
+ do
+ {
tempSt = mCursor.getString(mCursor.getColumnIndex(tSQL[position]));
- if(tempSt != null && !tempSt.equals("") && !tempSt.equals("null") && !tempSt.contains("null")){
- Log.e("tempSt",tempSt);
+ if (tempSt != null && !tempSt.equals("") && !tempSt.equals("null") && !tempSt.contains("null"))
+ {
+ Log.e("tempSt", tempSt);
titles.add(tempSt.split("-")[0]);
}
position++;
- }while (position != mCursor.getColumnCount()-2);
+ } while (position != mCursor.getColumnCount() - 2);
}
- if(titles.size()>0) {
- Log.e("titleSize",titles.size()+"");
+ if (titles.size() > 0)
+ {
+ Log.e("titleSize", titles.size() + "");
double[] percentage = new double[titles.size()];
- for(int i = 0;i keys = edittedData.keySet();
- for (String key:keys) {
+ for (String key : keys)
+ {
//String updateQuery1 = "UPDATE subject SET attended = "+edittedData.get(key).split(",")[0]+" WHERE subjects = \"" + key+"\";";
//String updateQuery2 = "UPDATE subject SET total = "+edittedData.get(key).split(",")[1]+" WHERE subjects = \"" + key+"\";";
ContentValues values = new ContentValues();
- values.put("attended",edittedData.get(key).split(",")[0]);
- values.put("total",edittedData.get(key).split(",")[1]);
- mysubdatabase.update("subject",values,"subjects = ?",new String[]{key});
+ values.put("attended", edittedData.get(key).split(",")[0]);
+ values.put("total", edittedData.get(key).split(",")[1]);
+ mysubdatabase.update("subject", values, "subjects = ?", new String[]{key});
//mysubdatabase.rawQuery(updateQuery2,null);
}
finish();
}
+
@Override
- public boolean onCreateOptionsMenu(Menu menu) {
+ public boolean onCreateOptionsMenu(Menu menu)
+ {
getMenuInflater().inflate(R.menu.menu, menu);
return true;
}
@Override
- public boolean onOptionsItemSelected(MenuItem item) {
- switch (item.getItemId()) {
+ public boolean onOptionsItemSelected(MenuItem item)
+ {
+ switch (item.getItemId())
+ {
case R.id.action_save:
savetoDatabase();
}
@@ -165,31 +183,37 @@ public boolean onOptionsItemSelected(MenuItem item) {
}
- class MyattAdapter extends BaseAdapter {
+class MyattAdapter extends BaseAdapter
+{
+ Hashtable changed;
+ Hashtable databaseData;
private Context context;
private String[] titles;
private int[] images;
private String[] percentage;
private LayoutInflater inflater;
- Hashtable changed;
- Hashtable databaseData;
- public MyattAdapter(Context context, String[] titles,double[] percentage,Hashtable datab) {
+ public MyattAdapter(Context context, String[] titles, double[] percentage, Hashtable datab)
+ {
this.context = context;
- this.databaseData=datab;
+ this.databaseData = datab;
this.titles = titles;
- changed=new Hashtable<>();
- for (int i=0;i();
+ for (int i = 0; i < this.titles.length; i++)
+ {
+ changed.put(this.titles[i], false);
}
- this.percentage=new String[percentage.length];
- if (percentage==null) {
- Log.e("Error ","null array");
+ this.percentage = new String[percentage.length];
+ if (percentage == null)
+ {
+ Log.e("Error ", "null array");
}
- else {
- for (int i=0;i getHashTable() {
- Set keys=changed.keySet();
- for (String key:keys) {
- if (!changed.get(key)) {
- databaseData.put(key,databaseData.get(key).split(",")[0]+","+(Integer.valueOf(databaseData.get(key).split(",")[1])+1));
+ public Hashtable getHashTable()
+ {
+ Set keys = changed.keySet();
+ for (String key : keys)
+ {
+ if (!changed.get(key))
+ {
+ databaseData.put(key, databaseData.get(key).split(",")[0] + "," + (Integer.valueOf(databaseData.get(key).split(",")[1]) + 1));
}
}
return databaseData;
}
- private class ViewHolder {
+ private class ViewHolder
+ {
CheckBox tvTitle;
TextView per_tv;
}
diff --git a/app/src/main/java/com/example/kalyan/timetable/Contract.java b/app/src/main/java/com/example/kalyan/timetable/Contract.java
index 0ed15cc..fb51ce1 100755
--- a/app/src/main/java/com/example/kalyan/timetable/Contract.java
+++ b/app/src/main/java/com/example/kalyan/timetable/Contract.java
@@ -7,13 +7,16 @@
* Created by KALYAN on 26-08-2017.
*/
-public class Contract {
+public class Contract
+{
- private Contract() {
+ private Contract()
+ {
}
/* Inner class that defines the table contents */
- public static class Entry implements BaseColumns {/*here we are writing the single table becoz
+ public static class Entry implements BaseColumns
+ {/*here we are writing the single table becoz
there is only one table i.e pets table so.... */
public static final String AUTHORITY = "com.example.kalyan.timetable";
diff --git a/app/src/main/java/com/example/kalyan/timetable/EditorActivity.java b/app/src/main/java/com/example/kalyan/timetable/EditorActivity.java
index 7caa317..971f033 100755
--- a/app/src/main/java/com/example/kalyan/timetable/EditorActivity.java
+++ b/app/src/main/java/com/example/kalyan/timetable/EditorActivity.java
@@ -1,23 +1,21 @@
package com.example.kalyan.timetable;
-import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
-import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
-import android.view.inputmethod.InputMethodManager;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.EditText;
import android.widget.Spinner;
-import android.widget.Toast;
+
+import androidx.appcompat.app.AppCompatActivity;
import com.github.johnpersano.supertoasts.library.Style;
import com.github.johnpersano.supertoasts.library.SuperActivityToast;
@@ -26,21 +24,23 @@
import java.util.HashSet;
import java.util.Set;
-public class EditorActivity extends AppCompatActivity {
+public class EditorActivity extends AppCompatActivity
+{
Spinner spinner;
- int page,selectedPos;
+ int page, selectedPos;
String selection;
String sqlArray[];
EditText room;
SQLiteDatabase mysubdatabase;
AutoCompleteTextView subjet;
- private String name[];
Cursor cursor;
- boolean isFirstEntry=false;
-
+ boolean isFirstEntry = false;
Set subjects = new HashSet<>();
+ private String name[];
+
@Override
- protected void onCreate(Bundle savedInstanceState) {
+ protected void onCreate(Bundle savedInstanceState)
+ {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_editor);
@@ -58,35 +58,41 @@ protected void onCreate(Bundle savedInstanceState) {
"subject(_id INTEGER PRIMARY KEY AUTOINCREMENT,subjects TEXT,attended INTEGER DEFAULT 0,total INTEGER DEFAULT 0);");
String attQuery = "SELECT * FROM subject";
- Cursor subjectCursor = mysubdatabase.rawQuery(attQuery,null);
+ Cursor subjectCursor = mysubdatabase.rawQuery(attQuery, null);
Utility.getResults(subjectCursor);
- if(subjectCursor.getCount()>0) {
- try {
+ if (subjectCursor.getCount() > 0)
+ {
+ try
+ {
subjectCursor.moveToFirst();
String currSub = subjectCursor.getString(subjectCursor.getColumnIndex("subjects"));
Log.e(currSub, "Current Subject");
subjects.add(currSub);
- while (subjectCursor.moveToNext()) {
+ while (subjectCursor.moveToNext())
+ {
currSub = subjectCursor.getString(subjectCursor.getColumnIndex("subjects"));
Log.e(currSub, "Current Subject");
subjects.add(currSub);
}
- } catch (Exception e) {
+ }
+ catch (Exception e)
+ {
// Table empty
isFirstEntry = true;
}
}
- String suggest[]=new String[subjects.size()];
- int i=0;
- for (String sub:subjects) {
- suggest[i++]=sub;
- Log.e(sub,"Set element");
+ String suggest[] = new String[subjects.size()];
+ int i = 0;
+ for (String sub : subjects)
+ {
+ suggest[i++] = sub;
+ Log.e(sub, "Set element");
}
- ArrayAdapter adapter = new ArrayAdapter(this,android.R.layout.simple_list_item_1,suggest);
+ ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, suggest);
subjet.setAdapter(adapter);
room = (EditText) findViewById(R.id.room);
sqlArray = getResources().getStringArray(R.array.TimeSQL);
@@ -94,64 +100,79 @@ protected void onCreate(Bundle savedInstanceState) {
setupspinner();
- if(getIntent() != null){
- String subjectSt= getIntent().getStringExtra("subject")+"";
- String roomSt = getIntent().getStringExtra("room")+"";
- if(subjectSt !=null && roomSt != null && !subjectSt.equals("====")&&!roomSt.equals("====")&&
- !subjectSt.equals("null")&&!roomSt.equals("null") ) {
+ if (getIntent() != null)
+ {
+ String subjectSt = getIntent().getStringExtra("subject") + "";
+ String roomSt = getIntent().getStringExtra("room") + "";
+ if (subjectSt != null && roomSt != null && !subjectSt.equals("====") && !roomSt.equals("====") &&
+ !subjectSt.equals("null") && !roomSt.equals("null"))
+ {
subjet.setText(subjectSt);
room.setText(roomSt);
}
//Toast.makeText(getApplicationContext(),getIntent().getIntExtra("position",0)+"",Toast.LENGTH_SHORT).show();
- spinner.setSelection(getIntent().getIntExtra("position",0),true);
+ spinner.setSelection(getIntent().getIntExtra("position", 0), true);
}
}
+
@Override
- public boolean onCreateOptionsMenu(Menu menu) {
+ public boolean onCreateOptionsMenu(Menu menu)
+ {
getMenuInflater().inflate(R.menu.menu, menu);
return true;
}
@Override
- public boolean onOptionsItemSelected(MenuItem item) {
- switch (item.getItemId()) {
+ public boolean onOptionsItemSelected(MenuItem item)
+ {
+ switch (item.getItemId())
+ {
case R.id.action_save:
boolean done = save();
- if(done) {
+ if (done)
+ {
item.setIcon(R.drawable.ic_action_name);
- Intent intent = new Intent(this,MainActivity.class);
- intent.putExtra("page",page);
+ Intent intent = new Intent(this, MainActivity.class);
+ intent.putExtra("page", page);
startActivity(intent);
}
else
+ {
item.setIcon(R.drawable.ic_notdone);
+ }
break;
}
return super.onOptionsItemSelected(item);
}
- private void addNewSubj() {
+ private void addNewSubj()
+ {
if (isFirstEntry)
- Log.e("First","First");
- String newSub=subjet.getText().toString();
+ {
+ Log.e("First", "First");
+ }
+ String newSub = subjet.getText().toString();
subjects.add(newSub);
ContentValues values = new ContentValues();
- values.put("subjects",newSub);
- mysubdatabase.insert("subject",null,values);
- // Toast.makeText(getApplicationContext(),"Enter Data",Toast.LENGTH_SHORT).show();
+ values.put("subjects", newSub);
+ mysubdatabase.insert("subject", null, values);
+ // Toast.makeText(getApplicationContext(),"Enter Data",Toast.LENGTH_SHORT).show();
//TODO Make a dialog for enterring data
}
- private boolean save(){
+ private boolean save()
+ {
String selectQuery = "SELECT * FROM " + Contract.Entry.TABLE_NAME + " WHERE "
- + Contract.Entry.COLUMN_DAY + " = " + "\""+name[page].toLowerCase()+"\"";
+ + Contract.Entry.COLUMN_DAY + " = " + "\"" + name[page].toLowerCase() + "\"";
- if (isFirstEntry) {
+ if (isFirstEntry)
+ {
addNewSubj();
}
String currSub = subjet.getText().toString();
- if (!subjects.contains(currSub)) {
+ if (!subjects.contains(currSub))
+ {
addNewSubj();
}
@@ -159,24 +180,27 @@ private boolean save(){
Cursor cursor = helper.getReadableDatabase().rawQuery(selectQuery, null);
ContentValues values = new ContentValues();
boolean done = false;
- if(cursor != null && cursor.moveToFirst()){
+ if (cursor != null && cursor.moveToFirst())
+ {
int tempColumnIndex = cursor.getColumnIndex(sqlArray[selectedPos]);
String tempString = cursor.getString(tempColumnIndex);
String arg[] = {name[page]};
String subjectSt = subjet.getText().toString().trim();
String roomSt = room.getText().toString().trim();
- if(subjectSt !=null && roomSt != null && !subjectSt.equals("")&&!roomSt.equals("")&&
- !subjectSt.contains("null")&&!roomSt.contains("null") ) {
- values.put(sqlArray[selectedPos], subjectSt+ "-" + roomSt);
+ if (subjectSt != null && roomSt != null && !subjectSt.equals("") && !roomSt.equals("") &&
+ !subjectSt.contains("null") && !roomSt.contains("null"))
+ {
+ values.put(sqlArray[selectedPos], subjectSt + "-" + roomSt);
getContentResolver().update(Contract.Entry.CONTENT_URI, values, "day = ?", arg);
done = true;
- // Toast.makeText(getApplicationContext(), "1st", Toast.LENGTH_SHORT).show();
+ // Toast.makeText(getApplicationContext(), "1st", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);
}
- else{
+ else
+ {
SuperActivityToast.create(this, new Style(), Style.TYPE_STANDARD)
.setText("Enter Valid Data")
.setDuration(Style.DURATION_LONG)
@@ -185,17 +209,21 @@ private boolean save(){
.setAnimations(Style.ANIMATIONS_POP).show();
}
}
- else {
+ else
+ {
values.put(Contract.Entry.COLUMN_DAY, name[page]);
String subjectSt = subjet.getText().toString().trim();
String roomSt = room.getText().toString().trim();
- if(subjectSt !=null && roomSt != null && !subjectSt.equals("")&&!roomSt.equals("")&&
- !subjectSt.contains("null")&&!roomSt.contains("null") ) {
+ if (subjectSt != null && roomSt != null && !subjectSt.equals("") && !roomSt.equals("") &&
+ !subjectSt.contains("null") && !roomSt.contains("null"))
+ {
values.put(sqlArray[selectedPos], subjet.getText().toString() + "-" + room.getText().toString());
getContentResolver().insert(Contract.Entry.CONTENT_URI, values);
done = true;
- // Toast.makeText(getApplicationContext(), "insert", Toast.LENGTH_SHORT).show();
- }else{
+ // Toast.makeText(getApplicationContext(), "insert", Toast.LENGTH_SHORT).show();
+ }
+ else
+ {
SuperActivityToast.create(this, new Style(), Style.TYPE_STANDARD)
.setText("Enter Valid Data")
.setDuration(Style.DURATION_LONG)
@@ -208,7 +236,8 @@ private boolean save(){
return done;
}
- private void setupspinner() {
+ private void setupspinner()
+ {
ArrayAdapter SpinnerAdapter = ArrayAdapter.createFromResource(this,
R.array.Time, android.R.layout.simple_spinner_item);
@@ -216,14 +245,18 @@ private void setupspinner() {
spinner.setAdapter(SpinnerAdapter);
- spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+ spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener()
+ {
@Override
- public void onItemSelected(AdapterView> parent, View view, int position, long id) {
+ public void onItemSelected(AdapterView> parent, View view, int position, long id)
+ {
selection = (String) parent.getItemAtPosition(position);
selectedPos = position;
}
+
@Override
- public void onNothingSelected(AdapterView> parent) {
+ public void onNothingSelected(AdapterView> parent)
+ {
selection = "8AM TO 9AM";
}
});
diff --git a/app/src/main/java/com/example/kalyan/timetable/Friday.java b/app/src/main/java/com/example/kalyan/timetable/Friday.java
index 3bd4365..befc571 100755
--- a/app/src/main/java/com/example/kalyan/timetable/Friday.java
+++ b/app/src/main/java/com/example/kalyan/timetable/Friday.java
@@ -1,49 +1,51 @@
package com.example.kalyan.timetable;
-import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteException;
-import android.support.annotation.Nullable;
-import android.support.v4.app.Fragment;
-import android.support.v4.app.LoaderManager;
-import android.support.v4.content.CursorLoader;
-import android.support.v4.content.Loader;
-import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
-import android.view.ContextMenu;
import android.view.LayoutInflater;
-import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.TextView;
-public class Friday extends Fragment implements LoaderManager.LoaderCallbacks{
- Cursor mCursor;
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+import androidx.loader.app.LoaderManager;
+import androidx.loader.content.CursorLoader;
+import androidx.loader.content.Loader;
+
+public class Friday extends Fragment implements LoaderManager.LoaderCallbacks
+{
final int LOADER_CODE = 5;
+ Cursor mCursor;
View view = null;
String sqlArray[];
ListView list4 = null;
String tSQL[];
+
@Nullable
@Override
- public View onCreateView(final LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
- view = inflater.inflate(R.layout.activity_friday,container,false);
+ public View onCreateView(final LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState)
+ {
+ view = inflater.inflate(R.layout.activity_friday, container, false);
list4 = (ListView) view.findViewById(R.id.list_view5);
registerForContextMenu(list4);
sqlArray = getResources().getStringArray(R.array.TimeSQL);
- Log.e("init","LoADER");
- getActivity().getSupportLoaderManager().initLoader(LOADER_CODE,null,this);
- list4.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
+ Log.e("init", "LoADER");
+ getActivity().getSupportLoaderManager().initLoader(LOADER_CODE, null, this);
+ list4.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener()
+ {
@Override
- public boolean onItemLongClick(AdapterView> parent, View view, int position, long id){
- Intent intent = new Intent(MainActivity.getContext(),EditorActivity.class);
- intent.putExtra("subject",((TextView)view.findViewById(R.id.subject)).getText().toString());
- intent.putExtra("room",((TextView)view.findViewById(R.id.room)).getText().toString());
- intent.putExtra("position",position);
+ public boolean onItemLongClick(AdapterView> parent, View view, int position, long id)
+ {
+ Intent intent = new Intent(MainActivity.getContext(), EditorActivity.class);
+ intent.putExtra("subject", ((TextView) view.findViewById(R.id.subject)).getText().toString());
+ intent.putExtra("room", ((TextView) view.findViewById(R.id.room)).getText().toString());
+ intent.putExtra("position", position);
startActivity(intent);
return true;
}
@@ -54,41 +56,50 @@ public boolean onItemLongClick(AdapterView> parent, View view, int position, l
}
- public void setView(Cursor cursor){
+ public void setView(Cursor cursor)
+ {
tSQL = MainActivity.getContext().getResources().getStringArray(R.array.TimeSQL);
-
- if( cursor != null && cursor.moveToFirst() ) {
- MyAdapter adapter = new MyAdapter(MainActivity.getContext(),cursor,tSQL);
+ if (cursor != null && cursor.moveToFirst())
+ {
+ MyAdapter adapter = new MyAdapter(MainActivity.getContext(), cursor, tSQL);
list4.setAdapter(adapter);
}
}
+
@Override
- public Loader onCreateLoader(int id, Bundle args) {
+ public Loader onCreateLoader(int id, Bundle args)
+ {
String selectQuery = "SELECT * FROM " + Contract.Entry.TABLE_NAME + " WHERE "
+ Contract.Entry.COLUMN_DAY + " = " + "\"friday\"";
Helper helper = (new Helper(MainActivity.getContext()));
- try {
+ try
+ {
mCursor = helper.getReadableDatabase().rawQuery(selectQuery, null);
- }catch (SQLiteException e){
+ }
+ catch (SQLiteException e)
+ {
}
- Log.e("onCreate",""+mCursor);
+ Log.e("onCreate", "" + mCursor);
//Toast.makeText(getContext(),mCursor+"",Toast.LENGTH_LONG).show();
- return new CursorLoader(getContext(),Contract.Entry.CONTENT_URI,
- null,null,null,null);
+ return new CursorLoader(getContext(), Contract.Entry.CONTENT_URI,
+ null, null, null, null);
}
@Override
- public void onLoadFinished(Loader loader, Cursor data) {
+ public void onLoadFinished(Loader loader, Cursor data)
+ {
}
+
@Override
- public void onLoaderReset(Loader loader) {
+ public void onLoaderReset(Loader loader)
+ {
}
}
diff --git a/app/src/main/java/com/example/kalyan/timetable/Helper.java b/app/src/main/java/com/example/kalyan/timetable/Helper.java
index 0a163fe..ac196bc 100755
--- a/app/src/main/java/com/example/kalyan/timetable/Helper.java
+++ b/app/src/main/java/com/example/kalyan/timetable/Helper.java
@@ -8,17 +8,20 @@
* Created by KALYAN on 26-08-2017.
*/
-public class Helper extends SQLiteOpenHelper {
+public class Helper extends SQLiteOpenHelper
+{
private static final int DATABASE_VERSION = 1;
private static final String DATABASE_NAME = "timetable.db";
- public Helper(Context context) {
+ public Helper(Context context)
+ {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
@Override
- public void onCreate(SQLiteDatabase db) {
+ public void onCreate(SQLiteDatabase db)
+ {
final String SQL_CREAT_TABLE = "CREATE TABLE " + Contract.Entry.TABLE_NAME + "("
+ Contract.Entry.COLUMN_ID + " INTEGER PRIMARY KEY AUTOINCREMENT ," +
Contract.Entry.COLUMN_DAY + " TEXT ," +
@@ -29,7 +32,7 @@ public void onCreate(SQLiteDatabase db) {
Contract.Entry.COLUMN_12to1 + " TEXT ," +
Contract.Entry.COLUMN_2to3 + " TEXT ," +
Contract.Entry.COLUMN_3to4 + " TEXT ," +
- Contract.Entry.COLUMN_4to5 + " TEXT ,"+
+ Contract.Entry.COLUMN_4to5 + " TEXT ," +
Contract.Entry.COLUMN_5to6 + " TEXT" + ");";
db.execSQL(SQL_CREAT_TABLE);
@@ -37,7 +40,8 @@ public void onCreate(SQLiteDatabase db) {
}
@Override
- public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
+ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
+ {
}
}
diff --git a/app/src/main/java/com/example/kalyan/timetable/MainActivity.java b/app/src/main/java/com/example/kalyan/timetable/MainActivity.java
index b9a51b7..f487273 100755
--- a/app/src/main/java/com/example/kalyan/timetable/MainActivity.java
+++ b/app/src/main/java/com/example/kalyan/timetable/MainActivity.java
@@ -10,16 +10,8 @@
import android.icu.util.Calendar;
import android.net.Uri;
import android.os.Build;
-import android.preference.PreferenceManager;
-import android.support.annotation.RequiresApi;
-import android.support.v4.app.FragmentActivity;
-import android.support.v4.view.GravityCompat;
-import android.support.v4.view.ViewPager;
-import android.support.v4.widget.DrawerLayout;
import android.os.Bundle;
-import android.support.v7.app.ActionBar;
-import android.util.Log;
-import android.view.Gravity;
+import android.preference.PreferenceManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -30,9 +22,11 @@
import android.widget.TextView;
import android.widget.Toast;
-import com.github.amlcurran.showcaseview.ShowcaseView;
-import com.github.amlcurran.showcaseview.targets.Target;
-import com.github.amlcurran.showcaseview.targets.ViewTarget;
+import androidx.annotation.RequiresApi;
+import androidx.drawerlayout.widget.DrawerLayout;
+import androidx.fragment.app.FragmentActivity;
+import androidx.viewpager.widget.ViewPager;
+
import com.github.clans.fab.FloatingActionButton;
import com.majeur.cling.Cling;
import com.majeur.cling.ClingManager;
@@ -43,131 +37,166 @@
import java.io.File;
import java.util.Date;
-public class MainActivity extends FragmentActivity {
-
- private static final String FOR_FIRST_TIME = "for first time" ;
- public int currentPage = 0;
- private static Context context;
-
- FloatingActionButton fab = null;
- ListView leftlist;
+public class MainActivity extends FragmentActivity
+{
+ private static final String FOR_FIRST_TIME = "for first time";
static MainActivity mainActivity;
-
static AlarmManager alarmManager;
static PendingIntent pendingIntent;
-
+ private static Context context;
+ public int currentPage = 0;
+ ViewPager viewPager;
+ FloatingActionButton fab = null;
+ ListView leftlist;
private DrawerLayout mDrawerLayout;
- @RequiresApi(api = Build.VERSION_CODES.N)
- @Override
- protected void onCreate(Bundle savedInstanceState) {
+ public static Context getContext()
+ {
+ return MainActivity.context;
+ }
+
+ @RequiresApi(api = Build.VERSION_CODES.N)
+ @Override
+ protected void onCreate(Bundle savedInstanceState)
+ {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
- fab = (FloatingActionButton) findViewById(R.id.fab);
- mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer);
-
- leftlist = (ListView) findViewById(R.id.leftlist);
-
- mainActivity = this;
- context = this;
- String navigationSt[] = new String[]{"Projects ","Tutorial ","Attendence Manager ","Poll ","Settings ",
- "Share ", "About "};
- int navigationImg[] = new int[]{R.mipmap.ic_proj,R.mipmap.ic_tut,R.mipmap.ic_att,R.mipmap.ic_poll,R.mipmap.ic_settings,
- R.mipmap.ic_share,R.mipmap.ic_people};
- MyDrawerAdapter navigationAdapter = new MyDrawerAdapter(getApplicationContext(), navigationSt
- , navigationImg);
- leftlist.setAdapter(navigationAdapter);
-
- leftlist.setOnItemClickListener(new AdapterView.OnItemClickListener() {
- @Override
- public void onItemClick(AdapterView> parent, View view, int position, long id) {
- selectFromDrawer(position);
- mDrawerLayout.closeDrawers();
- }
- });
- FragmentPagerItemAdapter adapter = new FragmentPagerItemAdapter(
+ fab = (FloatingActionButton) findViewById(R.id.fab);
+ mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer);
+
+ leftlist = (ListView) findViewById(R.id.leftlist);
+
+ mainActivity = this;
+ context = this;
+ String navigationSt[] = new String[]{"Projects ", "Tutorial ", "Attendence Manager ", "Poll ", "Settings ",
+ "Share ", "About "};
+ int navigationImg[] = new int[]{R.mipmap.ic_proj, R.mipmap.ic_tut, R.mipmap.ic_att, R.mipmap.ic_poll, R.mipmap.ic_settings,
+ R.mipmap.ic_share, R.mipmap.ic_people};
+ MyDrawerAdapter navigationAdapter = new MyDrawerAdapter(getApplicationContext(), navigationSt
+ , navigationImg);
+ leftlist.setAdapter(navigationAdapter);
+
+ leftlist.setOnItemClickListener(new AdapterView.OnItemClickListener()
+ {
+ @Override
+ public void onItemClick(AdapterView> parent, View view, int position, long id)
+ {
+ selectFromDrawer(position);
+ mDrawerLayout.closeDrawers();
+ }
+ });
+ FragmentPagerItemAdapter adapter = new FragmentPagerItemAdapter(
getSupportFragmentManager(), FragmentPagerItems.with(this)
.add("MONDAY", Monday.class)
.add("TUESDAY", Tuesday.class)
- .add("WEDNESDAY",Wednesday.class)
- .add("THURSDAY",Thursday.class)
- .add("FRIDAY",Friday.class)
+ .add("WEDNESDAY", Wednesday.class)
+ .add("THURSDAY", Thursday.class)
+ .add("FRIDAY", Friday.class)
.create());
- // Calendar c = Calendar.getInstance();
+ // Calendar c = Calendar.getInstance();
- ViewPager viewPager = (ViewPager) findViewById(R.id.pager);
+ viewPager = (ViewPager) findViewById(R.id.pager);
viewPager.setAdapter(adapter);
+ Calendar calendar = Calendar.getInstance();
+ final int pos = calendar.get(Calendar.DAY_OF_WEEK);
+ viewPager.postDelayed(new Runnable()
+ {
+ @Override
+ public void run()
+ {
+ if ((pos == 1) || (pos == 7))
+ {
+ viewPager.setCurrentItem(0);
+ }
+ else
+ {
+ viewPager.setCurrentItem(pos-1);
+ }
+ }
+ }, 10);
SmartTabLayout viewPagerTab = (SmartTabLayout) findViewById(R.id.viewpagertab);
viewPagerTab.setViewPager(viewPager);
+ if (getIntent() != null)
+ {
+ viewPager.setCurrentItem(getIntent().getIntExtra("page", 0));
+ }
- if(getIntent() != null){
- viewPager.setCurrentItem(getIntent().getIntExtra("page",0));
- }
+ viewPagerTab.setOnPageChangeListener(new ViewPager.OnPageChangeListener()
+ {
+ @Override
+ public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels)
+ {
- viewPagerTab.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
- @Override
- public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
+ }
- }
- @Override
- public void onPageSelected(int position) {
- currentPage = position;
+ @Override
+ public void onPageSelected(int position)
+ {
+ currentPage = position;
// Toast.makeText(getApplicationContext(),""+currentPage,Toast.LENGTH_SHORT).show();
- }
- @Override
- public void onPageScrollStateChanged(int state) {
+ }
+
+ @Override
+ public void onPageScrollStateChanged(int state)
+ {
- }
- });
- fab.setOnClickListener(new View.OnClickListener() {
+ }
+ });
+ fab.setOnClickListener(new View.OnClickListener()
+ {
@Override
- public void onClick(View v) {
- Intent intent = new Intent(MainActivity.this,EditorActivity.class);
+ public void onClick(View v)
+ {
+ Intent intent = new Intent(MainActivity.this, EditorActivity.class);
startActivity(intent);
}
});
- /** Setup the shared preference listener **/
- SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
-
- if(prefs.getBoolean(FOR_FIRST_TIME,true)) {
- showTut();
- SharedPreferences.Editor editor = prefs.edit();
- editor.putBoolean(FOR_FIRST_TIME,false);
- editor.apply();
- }
-
- int hour = prefs.getInt(SettingsActivity.NOT_HOUR,7);
- addNotification(MainActivity.this,hour);
- }
+ /** Setup the shared preference listener **/
+ SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
+ if (prefs.getBoolean(FOR_FIRST_TIME, true))
+ {
+ showTut();
+ SharedPreferences.Editor editor = prefs.edit();
+ editor.putBoolean(FOR_FIRST_TIME, false);
+ editor.apply();
+ }
+
+ int hour = prefs.getInt(SettingsActivity.NOT_HOUR, 7);
+ addNotification(MainActivity.this, hour);
+ }
@RequiresApi(api = Build.VERSION_CODES.N)
@Override
- protected void onResume() {
+ protected void onResume()
+ {
super.onResume();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
- int hour = prefs.getInt(SettingsActivity.NOT_HOUR,7);
- addNotification(MainActivity.this,hour);
+ int hour = prefs.getInt(SettingsActivity.NOT_HOUR, 7);
+ addNotification(MainActivity.this, hour);
}
- public void selectFromDrawer(int position){
- switch (position){
+ public void selectFromDrawer(int position)
+ {
+ switch (position)
+ {
case 4:
- Intent intent = new Intent(MainActivity.this,SettingsActivity.class);
+ Intent intent = new Intent(MainActivity.this, SettingsActivity.class);
startActivity(intent);
break;
case 6:
- Intent intent2 = new Intent(MainActivity.this,AboutActivity.class);
+ Intent intent2 = new Intent(MainActivity.this, AboutActivity.class);
startActivity(intent2);
break;
case 5:
PackageManager pm = getPackageManager();
ApplicationInfo appInfo;
- try {
+ try
+ {
appInfo = pm.getApplicationInfo(getPackageName(),
PackageManager.GET_META_DATA);
Intent sendBt = new Intent(Intent.ACTION_SEND);
@@ -176,30 +205,33 @@ public void selectFromDrawer(int position){
Uri.parse("file://" + appInfo.publicSourceDir));
startActivity(Intent.createChooser(sendBt,
"Share it using"));
- } catch (PackageManager.NameNotFoundException e1) {
+ }
+ catch (PackageManager.NameNotFoundException e1)
+ {
e1.printStackTrace();
}
break;
case 0:
- Intent intent1 = new Intent(MainActivity.this,ProjectShowActivity.class);
+ Intent intent1 = new Intent(MainActivity.this, ProjectShowActivity.class);
startActivity(intent1);
break;
case 1:
showTut();
break;
case 2:
- Intent in = new Intent(this,AttendenceActivity.class);
+ Intent in = new Intent(this, AttendenceActivity.class);
startActivity(in);
break;
case 3:
- Intent i=new Intent(this,Poll.class);
+ Intent i = new Intent(this, Poll.class);
startActivity(i);
break;
}
}
@RequiresApi(api = Build.VERSION_CODES.N)
- public void addNotification(Context context,int hours){
+ public void addNotification(Context context, int hours)
+ {
Calendar calendar = Calendar.getInstance();
@@ -207,102 +239,45 @@ public void addNotification(Context context,int hours){
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
- int hour = prefs.getInt(SettingsActivity.NOT_HOUR,hours);
- int min = prefs.getInt(SettingsActivity.NOT_MIN,0);
- // calendar.add(Calendar.DATE,1);
+ int hour = prefs.getInt(SettingsActivity.NOT_HOUR, hours);
+ int min = prefs.getInt(SettingsActivity.NOT_MIN, 0);
+ // calendar.add(Calendar.DATE,1);
// Toast.makeText(getContext(),hour+":"+min,Toast.LENGTH_SHORT).show();
- calendar.set(Calendar.HOUR_OF_DAY,hour);
- calendar.set(Calendar.MINUTE,min);
- calendar.set(Calendar.SECOND,0);
+ calendar.set(Calendar.HOUR_OF_DAY, hour);
+ calendar.set(Calendar.MINUTE, min);
+ calendar.set(Calendar.SECOND, 0);
- Intent intent = new Intent(context,Notification_reciver.class);
+ Intent intent = new Intent(context, Notification_reciver.class);
pendingIntent = PendingIntent.getBroadcast(context,
- 100,intent,PendingIntent.FLAG_UPDATE_CURRENT);
+ 100, intent, PendingIntent.FLAG_UPDATE_CURRENT);
alarmManager = (AlarmManager) context.getSystemService(ALARM_SERVICE);
- alarmManager.setExact(AlarmManager.RTC_WAKEUP,calendar.getTimeInMillis(),pendingIntent);
- }
-
-
- public static Context getContext(){
- return MainActivity.context;
- }
-
- public class MyDrawerAdapter extends BaseAdapter {
-
- private Context context;
- private String[] titles;
- private int[] images;
- private LayoutInflater inflater;
-
- public MyDrawerAdapter(Context context, String[] titles, int[] images) {
- this.context = context;
- this.titles = titles;
- this.images = images;
- this.inflater = LayoutInflater.from(this.context);
- }
-
- @Override
- public int getCount() {
- return titles.length;
- }
-
- @Override
- public Object getItem(int position) {
- return null;
- }
-
- @Override
- public long getItemId(int position) {
- return 0;
- }
-
- @Override
- public View getView(int position, View convertView, ViewGroup parent) {
- ViewHolder mViewHolder;
- if (convertView == null) {
- convertView = inflater.inflate(R.layout.singlenavigation_view, null);
- mViewHolder = new ViewHolder();
- convertView.setTag(mViewHolder);
- } else {
- mViewHolder = (ViewHolder) convertView.getTag();
- }
-
- mViewHolder.tvTitle = (TextView) convertView
- .findViewById(R.id.text_navigation);
- mViewHolder.ivIcon = (ImageView) convertView
- .findViewById(R.id.image_navigation);
-
- mViewHolder.tvTitle.setText(titles[position]);
- mViewHolder.ivIcon.setImageResource(images[position]);
-
- return convertView;
- }
-
- private class ViewHolder {
- TextView tvTitle;
- ImageView ivIcon;
- }
+ alarmManager.setExact(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pendingIntent);
}
- private Intent createShareForecastIntent() {
+ private Intent createShareForecastIntent()
+ {
String path = "/sdcard/mytxt.txt";
File file = new File(path);
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/*");
- try {
+ try
+ {
sharingIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + file.getAbsolutePath()));
- }catch (Exception e){
+ }
+ catch (Exception e)
+ {
}
startActivity(Intent.createChooser(sharingIntent, "share file with"));
return sharingIntent;
}
- private void showTut() {
+ private void showTut()
+ {
ClingManager mClingManager = new ClingManager(this);
mClingManager.addCling(new Cling.Builder(this)
@@ -346,4 +321,71 @@ private void showTut() {
mClingManager.start();
}
+ public class MyDrawerAdapter extends BaseAdapter
+ {
+
+ private Context context;
+ private String[] titles;
+ private int[] images;
+ private LayoutInflater inflater;
+
+ public MyDrawerAdapter(Context context, String[] titles, int[] images)
+ {
+ this.context = context;
+ this.titles = titles;
+ this.images = images;
+ this.inflater = LayoutInflater.from(this.context);
+ }
+
+ @Override
+ public int getCount()
+ {
+ return titles.length;
+ }
+
+ @Override
+ public Object getItem(int position)
+ {
+ return null;
+ }
+
+ @Override
+ public long getItemId(int position)
+ {
+ return 0;
+ }
+
+ @Override
+ public View getView(int position, View convertView, ViewGroup parent)
+ {
+ ViewHolder mViewHolder;
+ if (convertView == null)
+ {
+ convertView = inflater.inflate(R.layout.singlenavigation_view, null);
+ mViewHolder = new ViewHolder();
+ convertView.setTag(mViewHolder);
+ }
+ else
+ {
+ mViewHolder = (ViewHolder) convertView.getTag();
+ }
+
+ mViewHolder.tvTitle = (TextView) convertView
+ .findViewById(R.id.text_navigation);
+ mViewHolder.ivIcon = (ImageView) convertView
+ .findViewById(R.id.image_navigation);
+
+ mViewHolder.tvTitle.setText(titles[position]);
+ mViewHolder.ivIcon.setImageResource(images[position]);
+
+ return convertView;
+ }
+
+ private class ViewHolder
+ {
+ TextView tvTitle;
+ ImageView ivIcon;
+ }
+ }
+
}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/kalyan/timetable/Monday.java b/app/src/main/java/com/example/kalyan/timetable/Monday.java
index b77c18b..71d379e 100755
--- a/app/src/main/java/com/example/kalyan/timetable/Monday.java
+++ b/app/src/main/java/com/example/kalyan/timetable/Monday.java
@@ -1,60 +1,56 @@
package com.example.kalyan.timetable;
-import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
-import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.os.Bundle;
-import android.support.annotation.Nullable;
-import android.support.v4.app.Fragment;
-import android.support.v4.app.LoaderManager;
-import android.support.v4.content.CursorLoader;
-import android.support.v4.content.Loader;
-import android.util.Log;
-import android.view.ContextMenu;
import android.view.LayoutInflater;
-import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.TextView;
-import android.widget.Toast;
-import org.json.JSONArray;
-import org.json.JSONException;
-import org.json.JSONObject;
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+import androidx.loader.app.LoaderManager;
+import androidx.loader.content.CursorLoader;
+import androidx.loader.content.Loader;
/**
* Created by KALYAN on 25-08-2017.
*/
-public class Monday extends Fragment implements LoaderManager.LoaderCallbacks{
- Cursor mCursor;
+public class Monday extends Fragment implements LoaderManager.LoaderCallbacks
+{
final int LOADER_CODE = 1;
- View view = null,v;
+ Cursor mCursor;
+ View view = null, v;
ListView list = null;
String sqlArray[];
String tSQL[];
MyAdapter adapter;
+
@Nullable
@Override
- public View onCreateView(final LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
- view = inflater.inflate(R.layout.monday_layout,container,false);
+ public View onCreateView(final LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState)
+ {
+ view = inflater.inflate(R.layout.monday_layout, container, false);
list = (ListView) view.findViewById(R.id.list_view);
registerForContextMenu(list);
sqlArray = getResources().getStringArray(R.array.TimeSQL);
- getActivity().getSupportLoaderManager().initLoader(LOADER_CODE,null,this);
+ getActivity().getSupportLoaderManager().initLoader(LOADER_CODE, null, this);
setView(mCursor);
- list.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
+ list.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener()
+ {
@Override
- public boolean onItemLongClick(AdapterView> parent, View view, int position, long id){
+ public boolean onItemLongClick(AdapterView> parent, View view, int position, long id)
+ {
v = view;
- Intent intent = new Intent(MainActivity.getContext(),EditorActivity.class);
- intent.putExtra("subject",((TextView)view.findViewById(R.id.subject)).getText().toString());
- intent.putExtra("room",((TextView)view.findViewById(R.id.room)).getText().toString());
- intent.putExtra("position",position);
+ Intent intent = new Intent(MainActivity.getContext(), EditorActivity.class);
+ intent.putExtra("subject", ((TextView) view.findViewById(R.id.subject)).getText().toString());
+ intent.putExtra("room", ((TextView) view.findViewById(R.id.room)).getText().toString());
+ intent.putExtra("position", position);
startActivity(intent);
return true;
}
@@ -63,38 +59,48 @@ public boolean onItemLongClick(AdapterView> parent, View view, int position, l
}
- public void setView(Cursor cursor){
+ public void setView(Cursor cursor)
+ {
tSQL = MainActivity.getContext().getResources().getStringArray(R.array.TimeSQL);
- if( cursor != null && cursor.moveToFirst() ) {
- adapter = new MyAdapter(MainActivity.getContext(),cursor,tSQL);
+ if (cursor != null && cursor.moveToFirst())
+ {
+ adapter = new MyAdapter(MainActivity.getContext(), cursor, tSQL);
list.setAdapter(adapter);
}
}
+
@Override
- public Loader onCreateLoader(int id, Bundle args) {
+ public Loader onCreateLoader(int id, Bundle args)
+ {
String selectQuery = "SELECT * FROM " + Contract.Entry.TABLE_NAME + " WHERE "
+ Contract.Entry.COLUMN_DAY + " = " + "\"monday\"";
Helper helper = (new Helper(MainActivity.getContext()));
- try {
+ try
+ {
mCursor = helper.getReadableDatabase().rawQuery(selectQuery, null);
- }catch (SQLiteException e){
+ }
+ catch (SQLiteException e)
+ {
}
- return new CursorLoader(getContext(),Contract.Entry.CONTENT_URI,
- null,null,null,null);
+ return new CursorLoader(getContext(), Contract.Entry.CONTENT_URI,
+ null, null, null, null);
}
@Override
- public void onLoadFinished(Loader loader, Cursor data) {
- // Toast.makeText(getContext(),"onLoadfinish",Toast.LENGTH_SHORT).show();
+ public void onLoadFinished(Loader loader, Cursor data)
+ {
+ // Toast.makeText(getContext(),"onLoadfinish",Toast.LENGTH_SHORT).show();
}
+
@Override
- public void onLoaderReset(Loader loader) {
- // Toast.makeText(MainActivity.getContext(),"onloaderreset",Toast.LENGTH_SHORT).show();
+ public void onLoaderReset(Loader loader)
+ {
+ // Toast.makeText(MainActivity.getContext(),"onloaderreset",Toast.LENGTH_SHORT).show();
}
}
diff --git a/app/src/main/java/com/example/kalyan/timetable/MyAdapter.java b/app/src/main/java/com/example/kalyan/timetable/MyAdapter.java
index d4475f1..5286f05 100755
--- a/app/src/main/java/com/example/kalyan/timetable/MyAdapter.java
+++ b/app/src/main/java/com/example/kalyan/timetable/MyAdapter.java
@@ -2,25 +2,29 @@
import android.content.Context;
import android.database.Cursor;
-import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
+import androidx.annotation.NonNull;
+
/**
* Created by KALYAN on 29-09-2017.
*/
-public class MyAdapter extends ArrayAdapter {
- private String TimeSQL[];
+public class MyAdapter extends ArrayAdapter
+{
String tempSt;
Cursor cursor;
String displayTime[];
- public MyAdapter(@NonNull Context context, Cursor cursor, String Time[]) {
- super(context,R.layout.list_single,R.id.list_single_time,Time);
- this.TimeSQL = Time;
+ private String TimeSQL[];
+
+ public MyAdapter(@NonNull Context context, Cursor cursor, String Time[])
+ {
+ super(context, R.layout.list_single, R.id.list_single_time, Time);
+ this.TimeSQL = Time;
this.cursor = cursor;
displayTime = context.getResources().getStringArray(R.array.Time);
@@ -28,23 +32,28 @@ public MyAdapter(@NonNull Context context, Cursor cursor, String Time[]) {
@NonNull
@Override
- public View getView(int position, View convertView, ViewGroup parent) {
+ public View getView(int position, View convertView, ViewGroup parent)
+ {
tempSt = cursor.getString(cursor.getColumnIndex(TimeSQL[position]));
View row = convertView;
- if (row == null) {
+ if (row == null)
+ {
LayoutInflater inflater = LayoutInflater.from(getContext());
- row = inflater.inflate(R.layout.list_single, parent,false);
+ row = inflater.inflate(R.layout.list_single, parent, false);
}
TextView timetv = (TextView) row.findViewById(R.id.list_single_time);
TextView subtv = (TextView) row.findViewById(R.id.subject);
TextView roomtv = (TextView) row.findViewById(R.id.room);
- if(tempSt != null && !tempSt.contains("null") && !tempSt.equals("")) {
+ if (tempSt != null && !tempSt.contains("null") && !tempSt.equals(""))
+ {
timetv.setText(displayTime[position]);
subtv.setText(tempSt.split("-")[0]);
roomtv.setText(tempSt.split("-")[1]);
- }else{
+ }
+ else
+ {
timetv.setText(displayTime[position]);
subtv.setText("");
roomtv.setText("");
diff --git a/app/src/main/java/com/example/kalyan/timetable/NotificationService.java b/app/src/main/java/com/example/kalyan/timetable/NotificationService.java
index 41fadd8..47cff49 100755
--- a/app/src/main/java/com/example/kalyan/timetable/NotificationService.java
+++ b/app/src/main/java/com/example/kalyan/timetable/NotificationService.java
@@ -12,11 +12,13 @@
import android.media.AudioManager;
import android.os.Build;
import android.preference.PreferenceManager;
-import android.support.annotation.Nullable;
-import android.support.annotation.RequiresApi;
-import android.support.v4.app.NotificationCompat;
+
import android.widget.Toast;
+import androidx.annotation.Nullable;
+import androidx.annotation.RequiresApi;
+import androidx.core.app.NotificationCompat;
+
import java.util.Date;
import static com.example.kalyan.timetable.MainActivity.alarmManager;
@@ -26,29 +28,32 @@
* Created by KALYAN on 05-10-2017.
*/
-public class NotificationService extends IntentService {
+public class NotificationService extends IntentService
+{
- private static NotificationManager manager;
static Cursor mCursor;
static String tSQL[];
+ private static NotificationManager manager;
AudioManager audioManager;
- public NotificationService() {
+ public NotificationService()
+ {
super("NotificationService");
}
@RequiresApi(api = Build.VERSION_CODES.N)
@Override
- protected void onHandleIntent(@Nullable Intent intent) {
+ protected void onHandleIntent(@Nullable Intent intent)
+ {
Context context = this;
- Toast.makeText(getContext(),"Hello",Toast.LENGTH_SHORT).show();
+ Toast.makeText(getContext(), "Hello", Toast.LENGTH_SHORT).show();
manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
- Intent intent1 = new Intent(context,AttendenceActivity.class);
+ Intent intent1 = new Intent(context, AttendenceActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(context,
- 100,intent1,PendingIntent.FLAG_UPDATE_CURRENT);
+ 100, intent1, PendingIntent.FLAG_UPDATE_CURRENT);
NotificationCompat.InboxStyle style = new NotificationCompat.InboxStyle();
style.setBigContentTitle("TimeTable");
@@ -57,27 +62,30 @@ protected void onHandleIntent(@Nullable Intent intent) {
Date currentTime = calendar.getTime();
- String day = Utility.Day((currentTime+"").split(" ")[0]);
+ String day = Utility.Day((currentTime + "").split(" ")[0]);
tSQL = context.getResources().getStringArray(R.array.TimeSQL);
String selectQuery = "SELECT * FROM " + Contract.Entry.TABLE_NAME + " WHERE "
- + Contract.Entry.COLUMN_DAY + " = " + "\""+day+"\"";
+ + Contract.Entry.COLUMN_DAY + " = " + "\"" + day + "\"";
mCursor = (new Helper(context)).getReadableDatabase().rawQuery(selectQuery, null);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
- if(mCursor.moveToFirst() && prefs.getBoolean(SettingsActivity.SHOW_NOTIFICATION, false) ){
+ if (mCursor.moveToFirst() && prefs.getBoolean(SettingsActivity.SHOW_NOTIFICATION, false))
+ {
String tempSt;
int position = 0;
- do {
+ do
+ {
tempSt = mCursor.getString(mCursor.getColumnIndex(tSQL[position]));
- if(tempSt != null && !tempSt.equals("") && !tempSt.equals("null") && !tempSt.contains("null")){
- style.addLine(Utility.number(tSQL[position].split("to")[0])+" to "+
- Utility.number(tSQL[position].split("to")[1])+" => " + tempSt);
+ if (tempSt != null && !tempSt.equals("") && !tempSt.equals("null") && !tempSt.contains("null"))
+ {
+ style.addLine(Utility.number(tSQL[position].split("to")[0]) + " to " +
+ Utility.number(tSQL[position].split("to")[1]) + " => " + tempSt);
}
position++;
- }while (position != 9);
+ } while (position != 9);
NotificationCompat.Builder builder =
new NotificationCompat.Builder(context)
@@ -93,27 +101,29 @@ protected void onHandleIntent(@Nullable Intent intent) {
silentMode();
- if(Utility.daysLastClassTime(day) != 0){
+ if (Utility.daysLastClassTime(day) != 0)
+ {
Calendar calendar1 = Calendar.getInstance();
- calendar1.set(Calendar.HOUR_OF_DAY,Utility.daysLastClassTime(day)+1);
- calendar1.set(Calendar.MINUTE,0);
- calendar1.set(Calendar.SECOND,currentTime.getSeconds());
+ calendar1.set(Calendar.HOUR_OF_DAY, Utility.daysLastClassTime(day) + 1);
+ calendar1.set(Calendar.MINUTE, 0);
+ calendar1.set(Calendar.SECOND, currentTime.getSeconds());
- Intent intents = new Intent(context,mute_receive.class);
+ Intent intents = new Intent(context, mute_receive.class);
pendingIntent = PendingIntent.getBroadcast(context,
- 100,intents,PendingIntent.FLAG_UPDATE_CURRENT);
+ 100, intents, PendingIntent.FLAG_UPDATE_CURRENT);
alarmManager = (AlarmManager) context.getSystemService(ALARM_SERVICE);
- alarmManager.setExact(AlarmManager.RTC_WAKEUP,calendar1.getTimeInMillis(),pendingIntent);
+ alarmManager.setExact(AlarmManager.RTC_WAKEUP, calendar1.getTimeInMillis(), pendingIntent);
}
}
}
- private void silentMode(){
+ private void silentMode()
+ {
audioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);
}
}
diff --git a/app/src/main/java/com/example/kalyan/timetable/Notification_reciver.java b/app/src/main/java/com/example/kalyan/timetable/Notification_reciver.java
index 7a2fe3c..915f266 100755
--- a/app/src/main/java/com/example/kalyan/timetable/Notification_reciver.java
+++ b/app/src/main/java/com/example/kalyan/timetable/Notification_reciver.java
@@ -1,29 +1,23 @@
package com.example.kalyan.timetable;
-import android.app.NotificationManager;
-import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
-import android.database.Cursor;
-import android.icu.util.Calendar;
-import android.media.AudioManager;
import android.os.Build;
-import android.support.annotation.RequiresApi;
-import android.support.v4.app.NotificationCompat;
-import android.widget.Toast;
-import java.util.Date;
+import androidx.annotation.RequiresApi;
/**
* Created by KALYAN on 26-09-2017.
*/
-public class Notification_reciver extends BroadcastReceiver{
+public class Notification_reciver extends BroadcastReceiver
+{
@RequiresApi(api = Build.VERSION_CODES.N)
@Override
- public void onReceive(Context context, Intent intent) {
+ public void onReceive(Context context, Intent intent)
+ {
context.startService(new Intent(context, NotificationService.class));
}
diff --git a/app/src/main/java/com/example/kalyan/timetable/Poll.java b/app/src/main/java/com/example/kalyan/timetable/Poll.java
index c6602dc..dc09de2 100755
--- a/app/src/main/java/com/example/kalyan/timetable/Poll.java
+++ b/app/src/main/java/com/example/kalyan/timetable/Poll.java
@@ -2,20 +2,19 @@
import android.content.DialogInterface;
import android.content.Intent;
-import android.location.Location;
-import android.support.v7.app.AlertDialog;
-import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
+
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
+import androidx.appcompat.app.AlertDialog;
+import androidx.appcompat.app.AppCompatActivity;
+
import com.github.clans.fab.FloatingActionButton;
import com.google.firebase.FirebaseApp;
-import com.google.firebase.FirebaseOptions;
-import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
@@ -23,14 +22,13 @@
import com.google.firebase.database.ValueEventListener;
import com.google.firebase.storage.FirebaseStorage;
-import java.io.FileInputStream;
-import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import static android.widget.Toast.LENGTH_SHORT;
-public class Poll extends AppCompatActivity {
+public class Poll extends AppCompatActivity
+{
EditText polltitle;
EditText groupname;
EditText username;
@@ -38,134 +36,176 @@ public class Poll extends AppCompatActivity {
Button endbutton;
Button submit;
Button result;
- Integer flag2=0;
- Integer flag1=0,poll;
+ Integer flag2 = 0;
+ Integer flag1 = 0, poll;
String USER;
+ FloatingActionButton fab = null;
private FirebaseDatabase database;
private FirebaseStorage mfirebaseStorage;
private DatabaseReference mdatabasereference;
private DatabaseReference mdatabasereference1;
private LinkedList