diff --git a/code/AndroidManifest.xml b/code/AndroidManifest.xml new file mode 100644 index 0000000..1e61f90 --- /dev/null +++ b/code/AndroidManifest.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/code/MainActivity.java b/code/MainActivity.java new file mode 100644 index 0000000..8de1ecf --- /dev/null +++ b/code/MainActivity.java @@ -0,0 +1,14 @@ +package com.example.tooth; + +import androidx.appcompat.app.AppCompatActivity; + +import android.os.Bundle; + +public class MainActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + } +} \ No newline at end of file diff --git a/code/SplashActivity.java b/code/SplashActivity.java new file mode 100644 index 0000000..25a3d64 --- /dev/null +++ b/code/SplashActivity.java @@ -0,0 +1,30 @@ +package com.example.tooth; + +import androidx.appcompat.app.AppCompatActivity; + +import android.content.Intent; +import android.os.Bundle; +import android.os.Handler; +import android.view.WindowManager; + +public class SplashActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_splash); + getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, + WindowManager.LayoutParams.FLAG_FULLSCREEN); + new Handler().postDelayed(new Runnable() { + @Override + public void run() { + Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class); + startActivity(mainIntent); + finish(); + /* overridePendingTransition(R.anim.mainfadein, + R.anim.splashfadeout);*/ + } + }, 3000); + } +} + diff --git a/code/activity_main.xml b/code/activity_main.xml new file mode 100644 index 0000000..4fc2444 --- /dev/null +++ b/code/activity_main.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/code/activity_splash.xml b/code/activity_splash.xml new file mode 100644 index 0000000..e272701 --- /dev/null +++ b/code/activity_splash.xml @@ -0,0 +1,20 @@ + + + + + + \ No newline at end of file diff --git a/code/wenjuan b/code/wenjuan deleted file mode 100644 index f7f13b3..0000000 --- a/code/wenjuan +++ /dev/null @@ -1 +0,0 @@ -qqqqq \ No newline at end of file