diff --git a/songyuxuan-2020300803/Login/.gitignore b/songyuxuan-2020300803/Login/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..aa724b77071afcbd9bb398053e05adaf7ac9405a --- /dev/null +++ b/songyuxuan-2020300803/Login/.gitignore @@ -0,0 +1,15 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/songyuxuan-2020300803/Login/.idea/.gitignore b/songyuxuan-2020300803/Login/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..26d33521af10bcc7fd8cea344038eaaeb78d0ef5 --- /dev/null +++ b/songyuxuan-2020300803/Login/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/songyuxuan-2020300803/Login/.idea/compiler.xml b/songyuxuan-2020300803/Login/.idea/compiler.xml new file mode 100644 index 0000000000000000000000000000000000000000..fb7f4a8a465d42b4a0390d464b83b99e8465bba7 --- /dev/null +++ b/songyuxuan-2020300803/Login/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/.idea/dbnavigator.xml b/songyuxuan-2020300803/Login/.idea/dbnavigator.xml new file mode 100644 index 0000000000000000000000000000000000000000..c1a0a2ad4637fd4be5528cd8a8fa9ad9a774c5dc --- /dev/null +++ b/songyuxuan-2020300803/Login/.idea/dbnavigator.xml @@ -0,0 +1,458 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/.idea/gradle.xml b/songyuxuan-2020300803/Login/.idea/gradle.xml new file mode 100644 index 0000000000000000000000000000000000000000..526b4c25c6813ef690dfffafcf9a523c789c94a7 --- /dev/null +++ b/songyuxuan-2020300803/Login/.idea/gradle.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/.idea/misc.xml b/songyuxuan-2020300803/Login/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b171c9e124ffa3d726e333908727159a8779ce3 --- /dev/null +++ b/songyuxuan-2020300803/Login/.idea/misc.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/app/.gitignore b/songyuxuan-2020300803/Login/app/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..42afabfd2abebf31384ca7797186a27a4b7dbee8 --- /dev/null +++ b/songyuxuan-2020300803/Login/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/app/build.gradle b/songyuxuan-2020300803/Login/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..b5c06cc6d8e13ef78f6b14e9061427fca82535eb --- /dev/null +++ b/songyuxuan-2020300803/Login/app/build.gradle @@ -0,0 +1,43 @@ +plugins { + id 'com.android.application' + id 'kotlin-android' +} + +android { + compileSdk 31 + + defaultConfig { + applicationId "com.example.login" + minSdk 21 + targetSdk 31 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + + implementation 'androidx.core:core-ktx:1.3.2' + implementation 'androidx.appcompat:appcompat:1.2.0' + implementation 'com.google.android.material:material:1.3.0' + implementation 'androidx.constraintlayout:constraintlayout:2.0.4' + testImplementation 'junit:junit:4.+' + androidTestImplementation 'androidx.test.ext:junit:1.1.2' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' +} \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/app/proguard-rules.pro b/songyuxuan-2020300803/Login/app/proguard-rules.pro new file mode 100644 index 0000000000000000000000000000000000000000..481bb434814107eb79d7a30b676d344b0df2f8ce --- /dev/null +++ b/songyuxuan-2020300803/Login/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/songyuxuan-2020300803/Login/app/src/androidTest/java/com/example/login/ExampleInstrumentedTest.kt b/songyuxuan-2020300803/Login/app/src/androidTest/java/com/example/login/ExampleInstrumentedTest.kt new file mode 100644 index 0000000000000000000000000000000000000000..5fa5230ee43e4901d075e47ec83eeedcac47d2ab --- /dev/null +++ b/songyuxuan-2020300803/Login/app/src/androidTest/java/com/example/login/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.login + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.example.login", appContext.packageName) + } +} \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/app/src/main/AndroidManifest.xml b/songyuxuan-2020300803/Login/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..cb2470f0a1e2b113fa4758e047adb4a56ad9420e --- /dev/null +++ b/songyuxuan-2020300803/Login/app/src/main/AndroidManifest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/app/src/main/java/com/example/login/MainActivity.kt b/songyuxuan-2020300803/Login/app/src/main/java/com/example/login/MainActivity.kt new file mode 100644 index 0000000000000000000000000000000000000000..535ad1e9249af90f31f778fe875e5de1f206d838 --- /dev/null +++ b/songyuxuan-2020300803/Login/app/src/main/java/com/example/login/MainActivity.kt @@ -0,0 +1,11 @@ +package com.example.login + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + } +} \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/songyuxuan-2020300803/Login/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b068d11462a4b96669193de13a711a3a36220a0 --- /dev/null +++ b/songyuxuan-2020300803/Login/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/bg.png b/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/bg.png new file mode 100644 index 0000000000000000000000000000000000000000..4a9eb6590e1b87ae6f722c23c6ebe0e63119ebe4 Binary files /dev/null and b/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/bg.png differ diff --git a/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/img.png b/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/img.png new file mode 100644 index 0000000000000000000000000000000000000000..f7eeee9cee8f4778f59122a78d86fea061b3bbd0 Binary files /dev/null and b/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/img.png differ diff --git a/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/lock_icon.png b/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/lock_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..363d3b08c79eddf77c88dada88e0d0f01fb54bc4 Binary files /dev/null and b/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/lock_icon.png differ diff --git a/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/user_icon.png b/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/user_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..b2d079970c8d56c6f0b6ec283dbf4615a23bce7a Binary files /dev/null and b/songyuxuan-2020300803/Login/app/src/main/res/drawable-xxhdpi/user_icon.png differ diff --git a/songyuxuan-2020300803/Login/app/src/main/res/drawable/ic_launcher_background.xml b/songyuxuan-2020300803/Login/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..07d5da9cbf141911847041df5d7b87f0dd5ef9d4 --- /dev/null +++ b/songyuxuan-2020300803/Login/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/songyuxuan-2020300803/Login/app/src/main/res/drawable/shape_rect.xml b/songyuxuan-2020300803/Login/app/src/main/res/drawable/shape_rect.xml new file mode 100644 index 0000000000000000000000000000000000000000..e050f5ba6d8fbafb6730dae9f7d50c0551b5c497 --- /dev/null +++ b/songyuxuan-2020300803/Login/app/src/main/res/drawable/shape_rect.xml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/app/src/main/res/drawable/shape_rect1.xml b/songyuxuan-2020300803/Login/app/src/main/res/drawable/shape_rect1.xml new file mode 100644 index 0000000000000000000000000000000000000000..5c70d2a162fc96bc43545fbb668572e91764d217 --- /dev/null +++ b/songyuxuan-2020300803/Login/app/src/main/res/drawable/shape_rect1.xml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/app/src/main/res/drawable/shape_rect2.xml b/songyuxuan-2020300803/Login/app/src/main/res/drawable/shape_rect2.xml new file mode 100644 index 0000000000000000000000000000000000000000..09b6a9306d65e07a8719f0007a5fffe4972f2eb2 --- /dev/null +++ b/songyuxuan-2020300803/Login/app/src/main/res/drawable/shape_rect2.xml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/songyuxuan-2020300803/Login/app/src/main/res/layout/activity_main.xml b/songyuxuan-2020300803/Login/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000000000000000000000000000000000000..9dc1d03ab2fa67cec71f4376242a81df49522ceb --- /dev/null +++ b/songyuxuan-2020300803/Login/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + +