diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..aa724b77071afcbd9bb398053e05adaf7ac9405a --- /dev/null +++ b/.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/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..42afabfd2abebf31384ca7797186a27a4b7dbee8 --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..ab4ada88683758882a4fa40daaa4374e44c96a67 --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,43 @@ +plugins { + id 'com.android.application' + id 'kotlin-android' +} + +android { + compileSdk 31 + + defaultConfig { + applicationId "com.example.app1" + 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/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000000000000000000000000000000000000..481bb434814107eb79d7a30b676d344b0df2f8ce --- /dev/null +++ b/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/app/src/androidTest/java/com/example/app1/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/example/app1/ExampleInstrumentedTest.kt new file mode 100644 index 0000000000000000000000000000000000000000..76acf15cd84ecfee04cfb9a39087a4c8eb4e2267 --- /dev/null +++ b/app/src/androidTest/java/com/example/app1/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.app1 + +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.app1", appContext.packageName) + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..996d9936f1d259ffb7b63fe4e893699a73352aba --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/example/app1/MainActivity.kt b/app/src/main/java/com/example/app1/MainActivity.kt new file mode 100644 index 0000000000000000000000000000000000000000..4faae087484d8dfb2dc7d393253d26f526265e8c --- /dev/null +++ b/app/src/main/java/com/example/app1/MainActivity.kt @@ -0,0 +1,11 @@ +package com.example.app1 + +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/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b068d11462a4b96669193de13a711a3a36220a0 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/bai_kua.xml b/app/src/main/res/drawable/bai_kua.xml new file mode 100644 index 0000000000000000000000000000000000000000..b6eba19e7cdcc5da0fc1d9281120c1e4548e2275 --- /dev/null +++ b/app/src/main/res/drawable/bai_kua.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/bg.png b/app/src/main/res/drawable/bg.png new file mode 100644 index 0000000000000000000000000000000000000000..f08196688b19c49a4e32f7fe5afe07612cefd657 Binary files /dev/null and b/app/src/main/res/drawable/bg.png differ diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..07d5da9cbf141911847041df5d7b87f0dd5ef9d4 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/img.png b/app/src/main/res/drawable/img.png new file mode 100644 index 0000000000000000000000000000000000000000..19f219102e5fd78db42a684648420d0b5cd98ea4 Binary files /dev/null and b/app/src/main/res/drawable/img.png differ diff --git a/app/src/main/res/drawable/lock_icon.png b/app/src/main/res/drawable/lock_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..7e5aa283952f34446f7b4bf2efadb3ec445677b8 Binary files /dev/null and b/app/src/main/res/drawable/lock_icon.png differ diff --git a/app/src/main/res/drawable/name_kua.xml b/app/src/main/res/drawable/name_kua.xml new file mode 100644 index 0000000000000000000000000000000000000000..c670ae74957facf69b59d741033c5ca216e2ffdd --- /dev/null +++ b/app/src/main/res/drawable/name_kua.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/pc.png b/app/src/main/res/drawable/pc.png new file mode 100644 index 0000000000000000000000000000000000000000..654c987507e7d159331da52455b485ac95df0246 Binary files /dev/null and b/app/src/main/res/drawable/pc.png differ diff --git a/app/src/main/res/drawable/user_icn.png b/app/src/main/res/drawable/user_icn.png new file mode 100644 index 0000000000000000000000000000000000000000..a92cfc65ceed04ffa33d8b115f7ac717eeeb5b95 Binary files /dev/null and b/app/src/main/res/drawable/user_icn.png differ diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000000000000000000000000000000000000..71c2f40de7d29f51c82481af61d78a11c3655f93 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,181 @@ + + + + + + + + + + + + + + + + + + + + + + + + +