From d184f34a67f46234ead273b6f2424e3e1c777474 Mon Sep 17 00:00:00 2001
From: langqingjie <1154192803@qq.com>
Date: Thu, 18 Feb 2021 12:38:52 +0800
Subject: [PATCH] code
---
SoftEngineering_selectiveCourse/.gitignore | 14 +
.../.idea/codeStyles/Project.xml | 164 +++++++
.../.idea/dbnavigator.xml | 461 ++++++++++++++++++
.../.idea/gradle.xml | 21 +
.../.idea/jarRepositories.xml | 25 +
.../.idea/misc.xml | 9 +
.../.idea/runConfigurations.xml | 12 +
.../.idea/sonarIssues.xml | 124 +++++
.../.idea/sonarSettings.xml | 10 +
.../8c55c3ccc257e5907959013f99656e4c8ec3903e | 0
.../.idea/sonarlint/issuestore/index.pb | 3 +
.../app/.gitignore | 1 +
.../app/build.gradle | 40 ++
.../app/proguard-rules.pro | 21 +
.../ExampleInstrumentedTest.java | 26 +
.../app/src/main/AndroidManifest.xml | 30 ++
.../app/src/main/assets/litepal.xml | 10 +
.../Comments.java | 46 ++
.../Course.java | 118 +++++
.../CourseBasicInfoActivity.java | 14 +
.../CourseRecommendedActivity.java | 280 +++++++++++
.../CourseReviewActivity.java | 14 +
.../CourseSelectingActivity.java | 14 +
.../Course_ManagerActivity.java | 260 ++++++++++
.../LoginActivity.java | 178 +++++++
.../PersonalBasicInfoActivity.java | 189 +++++++
.../RegisterActivity.java | 108 ++++
.../softengineering_selectivecourse/User.java | 180 +++++++
.../User_ManagerActivity.java | 211 ++++++++
.../drawable-v24/ic_launcher_foreground.xml | 30 ++
.../res/drawable/ic_launcher_background.xml | 170 +++++++
.../res/layout/activity_course__manager.xml | 208 ++++++++
.../res/layout/activity_course_basic_info.xml | 9 +
.../layout/activity_course_recommended.xml | 78 +++
.../res/layout/activity_course_review.xml | 9 +
.../res/layout/activity_course_selecting.xml | 69 +++
.../src/main/res/layout/activity_login.xml | 131 +++++
.../layout/activity_personal_basic_info.xml | 243 +++++++++
.../src/main/res/layout/activity_register.xml | 79 +++
.../res/layout/activity_user__manager.xml | 127 +++++
.../app/src/main/res/layout/sqlist.xml | 102 ++++
.../app/src/main/res/layout/user_sqlist.xml | 102 ++++
.../res/mipmap-anydpi-v26/ic_launcher.xml | 5 +
.../mipmap-anydpi-v26/ic_launcher_round.xml | 5 +
.../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3593 bytes
.../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5339 bytes
.../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2636 bytes
.../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 3388 bytes
.../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4926 bytes
.../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7472 bytes
.../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7909 bytes
.../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 11873 bytes
.../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10652 bytes
.../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 16570 bytes
.../app/src/main/res/values/colors.xml | 6 +
.../app/src/main/res/values/dimens.xml | 5 +
.../app/src/main/res/values/strings.xml | 12 +
.../app/src/main/res/values/styles.xml | 10 +
.../ExampleUnitTest.java | 17 +
SoftEngineering_selectiveCourse/build.gradle | 24 +
.../gradle.properties | 19 +
.../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 54329 bytes
.../gradle/wrapper/gradle-wrapper.properties | 6 +
SoftEngineering_selectiveCourse/gradlew | 172 +++++++
SoftEngineering_selectiveCourse/gradlew.bat | 84 ++++
.../settings.gradle | 2 +
66 files changed, 4307 insertions(+)
create mode 100644 SoftEngineering_selectiveCourse/.gitignore
create mode 100644 SoftEngineering_selectiveCourse/.idea/codeStyles/Project.xml
create mode 100644 SoftEngineering_selectiveCourse/.idea/dbnavigator.xml
create mode 100644 SoftEngineering_selectiveCourse/.idea/gradle.xml
create mode 100644 SoftEngineering_selectiveCourse/.idea/jarRepositories.xml
create mode 100644 SoftEngineering_selectiveCourse/.idea/misc.xml
create mode 100644 SoftEngineering_selectiveCourse/.idea/runConfigurations.xml
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarIssues.xml
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarSettings.xml
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/8/c/8c55c3ccc257e5907959013f99656e4c8ec3903e
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/index.pb
create mode 100644 SoftEngineering_selectiveCourse/app/.gitignore
create mode 100644 SoftEngineering_selectiveCourse/app/build.gradle
create mode 100644 SoftEngineering_selectiveCourse/app/proguard-rules.pro
create mode 100644 SoftEngineering_selectiveCourse/app/src/androidTest/java/com/example/softengineering_selectivecourse/ExampleInstrumentedTest.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/AndroidManifest.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/assets/litepal.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Comments.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseRecommendedActivity.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseReviewActivity.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseSelectingActivity.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course_ManagerActivity.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/LoginActivity.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/PersonalBasicInfoActivity.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/RegisterActivity.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/User.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/User_ManagerActivity.java
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/drawable/ic_launcher_background.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/activity_course__manager.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/activity_course_basic_info.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/activity_course_recommended.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/activity_course_review.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/activity_course_selecting.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/activity_login.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/activity_personal_basic_info.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/activity_register.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/activity_user__manager.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/sqlist.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/user_sqlist.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-hdpi/ic_launcher.png
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-mdpi/ic_launcher.png
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-xhdpi/ic_launcher.png
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/values/colors.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/values/dimens.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/values/strings.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/values/styles.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/test/java/com/example/softengineering_selectivecourse/ExampleUnitTest.java
create mode 100644 SoftEngineering_selectiveCourse/build.gradle
create mode 100644 SoftEngineering_selectiveCourse/gradle.properties
create mode 100644 SoftEngineering_selectiveCourse/gradle/wrapper/gradle-wrapper.jar
create mode 100644 SoftEngineering_selectiveCourse/gradle/wrapper/gradle-wrapper.properties
create mode 100644 SoftEngineering_selectiveCourse/gradlew
create mode 100644 SoftEngineering_selectiveCourse/gradlew.bat
create mode 100644 SoftEngineering_selectiveCourse/settings.gradle
diff --git a/SoftEngineering_selectiveCourse/.gitignore b/SoftEngineering_selectiveCourse/.gitignore
new file mode 100644
index 0000000..ebdd23d
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.gitignore
@@ -0,0 +1,14 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
diff --git a/SoftEngineering_selectiveCourse/.idea/codeStyles/Project.xml b/SoftEngineering_selectiveCourse/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..7fb7384
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/codeStyles/Project.xml
@@ -0,0 +1,164 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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/SoftEngineering_selectiveCourse/.idea/dbnavigator.xml b/SoftEngineering_selectiveCourse/.idea/dbnavigator.xml
new file mode 100644
index 0000000..1ca4006
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/dbnavigator.xml
@@ -0,0 +1,461 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/gradle.xml b/SoftEngineering_selectiveCourse/.idea/gradle.xml
new file mode 100644
index 0000000..8708f9d
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/gradle.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/jarRepositories.xml b/SoftEngineering_selectiveCourse/.idea/jarRepositories.xml
new file mode 100644
index 0000000..17c8136
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/jarRepositories.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/misc.xml b/SoftEngineering_selectiveCourse/.idea/misc.xml
new file mode 100644
index 0000000..f797995
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/runConfigurations.xml b/SoftEngineering_selectiveCourse/.idea/runConfigurations.xml
new file mode 100644
index 0000000..9b770a6
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarIssues.xml b/SoftEngineering_selectiveCourse/.idea/sonarIssues.xml
new file mode 100644
index 0000000..e719ebb
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/sonarIssues.xml
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarSettings.xml b/SoftEngineering_selectiveCourse/.idea/sonarSettings.xml
new file mode 100644
index 0000000..1466328
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/sonarSettings.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/8/c/8c55c3ccc257e5907959013f99656e4c8ec3903e b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/8/c/8c55c3ccc257e5907959013f99656e4c8ec3903e
new file mode 100644
index 0000000..e69de29
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/index.pb b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/index.pb
new file mode 100644
index 0000000..1193101
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/index.pb
@@ -0,0 +1,3 @@
+
+P
+ app/src/main/AndroidManifest.xml,8\c\8c55c3ccc257e5907959013f99656e4c8ec3903e
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/.gitignore b/SoftEngineering_selectiveCourse/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/build.gradle b/SoftEngineering_selectiveCourse/app/build.gradle
new file mode 100644
index 0000000..64e9e9c
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/build.gradle
@@ -0,0 +1,40 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 30
+ buildToolsVersion "30.0.2"
+
+ defaultConfig {
+ applicationId "com.example.softengineering_selectivecourse"
+ minSdkVersion 14
+ targetSdkVersion 30
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: "libs", include: ["*.jar"])
+ implementation 'androidx.appcompat:appcompat:1.2.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
+ implementation 'com.google.android.material:material:1.0.0'
+ implementation 'androidx.annotation:annotation:1.1.0'
+ implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
+ testImplementation 'junit:junit:4.12'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.2'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
+ implementation 'org.litepal.android:core:1.5.1'
+ //noinspection GradleCompatible
+ implementation 'com.android.support:appcompat-v7:27.0.1'
+
+
+}
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/proguard-rules.pro b/SoftEngineering_selectiveCourse/app/proguard-rules.pro
new file mode 100644
index 0000000..64b4a05
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/src/androidTest/java/com/example/softengineering_selectivecourse/ExampleInstrumentedTest.java b/SoftEngineering_selectiveCourse/app/src/androidTest/java/com/example/softengineering_selectivecourse/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..4715ef9
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/androidTest/java/com/example/softengineering_selectivecourse/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.example.softengineering_selectivecourse;
+
+import android.content.Context;
+
+import androidx.test.platform.app.InstrumentationRegistry;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+ assertEquals("com.example.softengineering_selectivecourse", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/src/main/AndroidManifest.xml b/SoftEngineering_selectiveCourse/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..a6f3c00
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/AndroidManifest.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/src/main/assets/litepal.xml b/SoftEngineering_selectiveCourse/app/src/main/assets/litepal.xml
new file mode 100644
index 0000000..3c5b078
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/assets/litepal.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Comments.java b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Comments.java
new file mode 100644
index 0000000..5a65ce5
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Comments.java
@@ -0,0 +1,46 @@
+package com.example.softengineering_selectivecourse;
+
+import org.litepal.crud.DataSupport;
+
+public class Comments extends DataSupport {
+ private int id;
+ private String comments;
+ private User provider = new User();
+ private Course course = new Course();
+ private User.courseIdentification CourseOf;
+ private Course.userIdentification UserOf;
+ private float point;
+
+ public Course getCourse() {
+ return course;
+ }
+
+ public float getPoint() {
+ return point;
+ }
+
+ public String getComments() {
+ return comments;
+ }
+
+ public User getProvider() {
+ return provider;
+ }
+
+ public void setComments(String comments) {
+ this.comments = comments;
+ }
+
+ public void setCourse(Course course) {
+ this.course = course;
+ }
+
+
+ public void setPoint(float point) {
+ this.point = point;
+ }
+
+ public void setProvider(User provider) {
+ this.provider = provider;
+ }
+}
diff --git a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course.java b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course.java
new file mode 100644
index 0000000..85a6e57
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course.java
@@ -0,0 +1,118 @@
+package com.example.softengineering_selectivecourse;
+
+import org.litepal.crud.DataSupport;
+
+import java.util.ArrayList;
+
+public class Course extends DataSupport {
+ private int id;
+
+ private String name;
+ private String teacher;
+ private String classFeature;
+ private int credit;
+ private int classtime;
+ private int NumOfCourseSelected;
+ private int NumOfCourseNeeded;
+ private String brief_introduction;
+ private ArrayList selected = new ArrayList();
+ private ArrayList comments = new ArrayList();
+
+ private ArrayList numOfStuSelected= new ArrayList();
+ private ArrayList Comments = new ArrayList();
+
+ public class userIdentification{
+ private int id;
+ private String name;
+ }
+ public ArrayList getComments() {
+ return comments;
+ }
+
+ public String getClassFeature() {
+ return classFeature;
+ }
+
+ public void setClassFeature(String classFeature) {
+ this.classFeature = classFeature;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public ArrayList getSelected() {
+ return selected;
+ }
+
+ public int getClasstime() {
+ return classtime;
+ }
+
+ public int getCredit() {
+ return credit;
+ }
+
+
+ public int getNumOfCourseNeeded() {
+ return NumOfCourseNeeded;
+ }
+
+ public int getNumOfCourseSelected() {
+ return NumOfCourseSelected;
+ }
+
+ public String getBrief_introduction() {
+ return brief_introduction;
+ }
+
+ public String getTeacher() {
+ return teacher;
+ }
+
+ public void setComments(ArrayList comments) {
+ this.comments = comments;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public void setBrief_introduction(String brief_introduction) {
+ this.brief_introduction = brief_introduction;
+ }
+
+ public void setClasstime(int classtime) {
+ this.classtime = classtime;
+ }
+
+ public void setCredit(int credit) {
+ this.credit = credit;
+ }
+
+
+ public void setNumOfCourseNeeded(int numOfCourseNeeded) {
+ NumOfCourseNeeded = numOfCourseNeeded;
+ }
+
+ public void setNumOfCourseSelected(int numOfCourseSelected) {
+ NumOfCourseSelected = numOfCourseSelected;
+ }
+
+ public void setSelected(ArrayList selected) {
+ this.selected = selected;
+ }
+
+ public void setTeacher(String teacher) {
+ this.teacher = teacher;
+ }
+
+}
diff --git a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java
new file mode 100644
index 0000000..17066ac
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java
@@ -0,0 +1,14 @@
+package com.example.softengineering_selectivecourse;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.os.Bundle;
+
+public class CourseBasicInfoActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_course_basic_info);
+ }
+}
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseRecommendedActivity.java b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseRecommendedActivity.java
new file mode 100644
index 0000000..a9cd600
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseRecommendedActivity.java
@@ -0,0 +1,280 @@
+package com.example.softengineering_selectivecourse;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.Button;
+import android.widget.ListView;
+import android.widget.SimpleAdapter;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import org.litepal.crud.DataSupport;
+import org.litepal.util.DBUtility;
+import org.w3c.dom.Text;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class CourseRecommendedActivity extends AppCompatActivity {
+ private TextView textClikedCourse;
+ private Button attendCourse;
+ private Button getCourseDetails;
+ private ListView lv;
+
+
+
+ private ArrayList