commit cb01bc435a7479a845f811e6325f30e4233ae8f7
Author: Rao <3435598628@qq.com>
Date: Wed Jun 12 01:14:26 2024 +0800
登陆界面
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/build.gradle.kts b/build.gradle.kts
new file mode 100644
index 0000000..80135f4
--- /dev/null
+++ b/build.gradle.kts
@@ -0,0 +1,39 @@
+plugins {
+ id("com.android.application")
+}
+
+android {
+ namespace = "com.hnucm.c202201020141"
+ compileSdk = 34
+
+ defaultConfig {
+ applicationId = "com.hnucm.c202201020141"
+ minSdk = 34
+ targetSdk = 34
+ versionCode = 1
+ versionName = "1.0"
+
+ testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ isMinifyEnabled = false
+ proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
+ }
+ }
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+ }
+}
+
+dependencies {
+
+ implementation("androidx.appcompat:appcompat:1.6.1")
+ implementation("com.google.android.material:material:1.9.0")
+ implementation("androidx.constraintlayout:constraintlayout:2.1.4")
+ testImplementation("junit:junit:4.13.2")
+ androidTestImplementation("androidx.test.ext:junit:1.1.5")
+ androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
+}
\ No newline at end of file
diff --git a/proguard-rules.pro b/proguard-rules.pro
new file mode 100644
index 0000000..481bb43
--- /dev/null
+++ b/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/src/androidTest/java/com/hnucm/c202201020141/ExampleInstrumentedTest.java b/src/androidTest/java/com/hnucm/c202201020141/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..ad865a8
--- /dev/null
+++ b/src/androidTest/java/com/hnucm/c202201020141/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.hnucm.c202201020141;
+
+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.hnucm.c202201020141", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..560d54b
--- /dev/null
+++ b/src/main/AndroidManifest.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/com/hnucm/c202201020141/EnterActivity.java b/src/main/java/com/hnucm/c202201020141/EnterActivity.java
new file mode 100644
index 0000000..353db32
--- /dev/null
+++ b/src/main/java/com/hnucm/c202201020141/EnterActivity.java
@@ -0,0 +1,25 @@
+package com.hnucm.c202201020141;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.TextView;
+
+public class EnterActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_enter);
+ TextView textView4=findViewById(R.id.textView4);
+ textView4.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent=new Intent(EnterActivity.this,LoginActivity.class);
+ startActivities(new Intent[]{intent});
+ }
+ });
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/hnucm/c202201020141/LoginActivity.java b/src/main/java/com/hnucm/c202201020141/LoginActivity.java
new file mode 100644
index 0000000..aa311fd
--- /dev/null
+++ b/src/main/java/com/hnucm/c202201020141/LoginActivity.java
@@ -0,0 +1,26 @@
+package com.hnucm.c202201020141;
+
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.fragment.app.Fragment;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.View;
+
+public class LoginActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_login);
+
+ findViewById(R.id.textView15).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Fragment VerifyFragment = new Fragment();
+ getSupportFragmentManager().beginTransaction().show(VerifyFragment).commit();
+
+ }
+ });
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/hnucm/c202201020141/MainActivity.java b/src/main/java/com/hnucm/c202201020141/MainActivity.java
new file mode 100644
index 0000000..c30685f
--- /dev/null
+++ b/src/main/java/com/hnucm/c202201020141/MainActivity.java
@@ -0,0 +1,29 @@
+package com.hnucm.c202201020141;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.content.Intent;
+import android.os.Bundle;
+
+public class MainActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ Thread thread=new Thread(new Runnable() {
+ @Override
+ public void run() {
+ try {
+ Thread.sleep(2000);
+ } catch (InterruptedException e) {
+ throw new RuntimeException(e);
+ }
+ Intent intent=new Intent(MainActivity.this,EnterActivity.class);
+ startActivities(new Intent[]{intent});
+ }
+ });
+ thread.start();
+
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/hnucm/c202201020141/VerifyFragment.java b/src/main/java/com/hnucm/c202201020141/VerifyFragment.java
new file mode 100644
index 0000000..a607d82
--- /dev/null
+++ b/src/main/java/com/hnucm/c202201020141/VerifyFragment.java
@@ -0,0 +1,64 @@
+package com.hnucm.c202201020141;
+
+import android.os.Bundle;
+
+import androidx.fragment.app.Fragment;
+
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+/**
+ * A simple {@link Fragment} subclass.
+ * Use the {@link VerifyFragment#newInstance} factory method to
+ * create an instance of this fragment.
+ */
+public class VerifyFragment extends Fragment {
+
+ // TODO: Rename parameter arguments, choose names that match
+ // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
+ private static final String ARG_PARAM1 = "param1";
+ private static final String ARG_PARAM2 = "param2";
+
+ // TODO: Rename and change types of parameters
+ private String mParam1;
+ private String mParam2;
+
+ public VerifyFragment() {
+ // Required empty public constructor
+ }
+
+ /**
+ * Use this factory method to create a new instance of
+ * this fragment using the provided parameters.
+ *
+ * @param param1 Parameter 1.
+ * @param param2 Parameter 2.
+ * @return A new instance of fragment VerifyFragment.
+ */
+ // TODO: Rename and change types and number of parameters
+ public static VerifyFragment newInstance(String param1, String param2) {
+ VerifyFragment fragment = new VerifyFragment();
+ Bundle args = new Bundle();
+ args.putString(ARG_PARAM1, param1);
+ args.putString(ARG_PARAM2, param2);
+ fragment.setArguments(args);
+ return fragment;
+ }
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ if (getArguments() != null) {
+ mParam1 = getArguments().getString(ARG_PARAM1);
+ mParam2 = getArguments().getString(ARG_PARAM2);
+ }
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ return inflater.inflate(R.layout.fragment_verify, container, false);
+ }
+}
\ No newline at end of file
diff --git a/src/main/res/drawable/_2.png b/src/main/res/drawable/_2.png
new file mode 100644
index 0000000..2d01164
Binary files /dev/null and b/src/main/res/drawable/_2.png differ
diff --git a/src/main/res/drawable/_2024_06_11_232452.png b/src/main/res/drawable/_2024_06_11_232452.png
new file mode 100644
index 0000000..b099fcd
Binary files /dev/null and b/src/main/res/drawable/_2024_06_11_232452.png differ
diff --git a/src/main/res/drawable/_2024_06_11_232508.png b/src/main/res/drawable/_2024_06_11_232508.png
new file mode 100644
index 0000000..0d5d0d5
Binary files /dev/null and b/src/main/res/drawable/_2024_06_11_232508.png differ
diff --git a/src/main/res/drawable/_2024_06_11_232527.png b/src/main/res/drawable/_2024_06_11_232527.png
new file mode 100644
index 0000000..af71261
Binary files /dev/null and b/src/main/res/drawable/_2024_06_11_232527.png differ
diff --git a/src/main/res/drawable/ic_launcher_background.xml b/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..07d5da9
--- /dev/null
+++ b/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/res/drawable/ic_launcher_foreground.xml b/src/main/res/drawable/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/src/main/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/res/drawable/translucent.xml b/src/main/res/drawable/translucent.xml
new file mode 100644
index 0000000..df4c81d
--- /dev/null
+++ b/src/main/res/drawable/translucent.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ />
+
\ No newline at end of file
diff --git a/src/main/res/drawable/translucent2.xml b/src/main/res/drawable/translucent2.xml
new file mode 100644
index 0000000..cf79543
--- /dev/null
+++ b/src/main/res/drawable/translucent2.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ />
+
\ No newline at end of file
diff --git a/src/main/res/drawable/translucent3.xml b/src/main/res/drawable/translucent3.xml
new file mode 100644
index 0000000..e470604
--- /dev/null
+++ b/src/main/res/drawable/translucent3.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ />
+
\ No newline at end of file
diff --git a/src/main/res/layout/activity_enter.xml b/src/main/res/layout/activity_enter.xml
new file mode 100644
index 0000000..bab12eb
--- /dev/null
+++ b/src/main/res/layout/activity_enter.xml
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/res/layout/activity_login.xml b/src/main/res/layout/activity_login.xml
new file mode 100644
index 0000000..7cc907d
--- /dev/null
+++ b/src/main/res/layout/activity_login.xml
@@ -0,0 +1,224 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/res/layout/activity_main.xml b/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..03021e2
--- /dev/null
+++ b/src/main/res/layout/activity_main.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/res/layout/fragment_verify.xml b/src/main/res/layout/fragment_verify.xml
new file mode 100644
index 0000000..bcb0ad6
--- /dev/null
+++ b/src/main/res/layout/fragment_verify.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/res/mipmap-anydpi/ic_launcher.xml b/src/main/res/mipmap-anydpi/ic_launcher.xml
new file mode 100644
index 0000000..6f3b755
--- /dev/null
+++ b/src/main/res/mipmap-anydpi/ic_launcher.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/res/mipmap-anydpi/ic_launcher_round.xml b/src/main/res/mipmap-anydpi/ic_launcher_round.xml
new file mode 100644
index 0000000..6f3b755
--- /dev/null
+++ b/src/main/res/mipmap-anydpi/ic_launcher_round.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/res/mipmap-hdpi/ic_launcher.webp b/src/main/res/mipmap-hdpi/ic_launcher.webp
new file mode 100644
index 0000000..c209e78
Binary files /dev/null and b/src/main/res/mipmap-hdpi/ic_launcher.webp differ
diff --git a/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/src/main/res/mipmap-hdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..b2dfe3d
Binary files /dev/null and b/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ
diff --git a/src/main/res/mipmap-mdpi/ic_launcher.webp b/src/main/res/mipmap-mdpi/ic_launcher.webp
new file mode 100644
index 0000000..4f0f1d6
Binary files /dev/null and b/src/main/res/mipmap-mdpi/ic_launcher.webp differ
diff --git a/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/src/main/res/mipmap-mdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..62b611d
Binary files /dev/null and b/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ
diff --git a/src/main/res/mipmap-xhdpi/ic_launcher.webp b/src/main/res/mipmap-xhdpi/ic_launcher.webp
new file mode 100644
index 0000000..948a307
Binary files /dev/null and b/src/main/res/mipmap-xhdpi/ic_launcher.webp differ
diff --git a/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..1b9a695
Binary files /dev/null and b/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ
diff --git a/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/src/main/res/mipmap-xxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..28d4b77
Binary files /dev/null and b/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ
diff --git a/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9287f50
Binary files /dev/null and b/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ
diff --git a/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..aa7d642
Binary files /dev/null and b/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ
diff --git a/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9126ae3
Binary files /dev/null and b/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ
diff --git a/src/main/res/values-night/themes.xml b/src/main/res/values-night/themes.xml
new file mode 100644
index 0000000..cd7b383
--- /dev/null
+++ b/src/main/res/values-night/themes.xml
@@ -0,0 +1,7 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/main/res/values/colors.xml b/src/main/res/values/colors.xml
new file mode 100644
index 0000000..c8524cd
--- /dev/null
+++ b/src/main/res/values/colors.xml
@@ -0,0 +1,5 @@
+
+
+ #FF000000
+ #FFFFFFFF
+
\ No newline at end of file
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
new file mode 100644
index 0000000..d3080ed
--- /dev/null
+++ b/src/main/res/values/strings.xml
@@ -0,0 +1,5 @@
+
+ Curriculum design
+
+ Hello blank fragment
+
\ No newline at end of file
diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml
new file mode 100644
index 0000000..67ea1ec
--- /dev/null
+++ b/src/main/res/values/themes.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/res/xml/backup_rules.xml b/src/main/res/xml/backup_rules.xml
new file mode 100644
index 0000000..fa0f996
--- /dev/null
+++ b/src/main/res/xml/backup_rules.xml
@@ -0,0 +1,13 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/main/res/xml/data_extraction_rules.xml b/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 0000000..9ee9997
--- /dev/null
+++ b/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/test/java/com/hnucm/c202201020141/ExampleUnitTest.java b/src/test/java/com/hnucm/c202201020141/ExampleUnitTest.java
new file mode 100644
index 0000000..4149caf
--- /dev/null
+++ b/src/test/java/com/hnucm/c202201020141/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.hnucm.c202201020141;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file