diff --git a/EmotionPost.zip b/EmotionPost.zip new file mode 100644 index 0000000..1fd1a4d Binary files /dev/null and b/EmotionPost.zip differ diff --git a/Week1(Test)/.gitignore b/Week1(Test)/.gitignore new file mode 100644 index 0000000..aa724b7 --- /dev/null +++ b/Week1(Test)/.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/Week1(Test)/.idea/.gitignore b/Week1(Test)/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/Week1(Test)/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/Week1(Test)/.idea/.name b/Week1(Test)/.idea/.name new file mode 100644 index 0000000..e2a8d13 --- /dev/null +++ b/Week1(Test)/.idea/.name @@ -0,0 +1 @@ +EmotionPost \ No newline at end of file diff --git a/Week1(Test)/.idea/AndroidProjectSystem.xml b/Week1(Test)/.idea/AndroidProjectSystem.xml new file mode 100644 index 0000000..4a53bee --- /dev/null +++ b/Week1(Test)/.idea/AndroidProjectSystem.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/Week1(Test)/.idea/compiler.xml b/Week1(Test)/.idea/compiler.xml new file mode 100644 index 0000000..b86273d --- /dev/null +++ b/Week1(Test)/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Week1(Test)/.idea/deploymentTargetSelector.xml b/Week1(Test)/.idea/deploymentTargetSelector.xml new file mode 100644 index 0000000..b268ef3 --- /dev/null +++ b/Week1(Test)/.idea/deploymentTargetSelector.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/Week1(Test)/.idea/deviceManager.xml b/Week1(Test)/.idea/deviceManager.xml new file mode 100644 index 0000000..91f9558 --- /dev/null +++ b/Week1(Test)/.idea/deviceManager.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/Week1(Test)/.idea/gradle.xml b/Week1(Test)/.idea/gradle.xml new file mode 100644 index 0000000..02c4aa5 --- /dev/null +++ b/Week1(Test)/.idea/gradle.xml @@ -0,0 +1,18 @@ + + + + + + + \ No newline at end of file diff --git a/Week1(Test)/.idea/misc.xml b/Week1(Test)/.idea/misc.xml new file mode 100644 index 0000000..1a1bf72 --- /dev/null +++ b/Week1(Test)/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/Week1(Test)/.idea/runConfigurations.xml b/Week1(Test)/.idea/runConfigurations.xml new file mode 100644 index 0000000..16660f1 --- /dev/null +++ b/Week1(Test)/.idea/runConfigurations.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/Week1(Test)/.idea/vcs.xml b/Week1(Test)/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/Week1(Test)/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Week1(Test)/app/.gitignore b/Week1(Test)/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/Week1(Test)/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/Week1(Test)/app/build.gradle.kts b/Week1(Test)/app/build.gradle.kts new file mode 100644 index 0000000..046fe84 --- /dev/null +++ b/Week1(Test)/app/build.gradle.kts @@ -0,0 +1,47 @@ +plugins { + alias(libs.plugins.android.application) +} + +android { + namespace = "com.example.emotionpost" + compileSdk { + version = release(36) { + minorApiLevel = 1 + } + } + + defaultConfig { + applicationId = "com.example.emotionpost" + minSdk = 24 + targetSdk = 36 + 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_11 + targetCompatibility = JavaVersion.VERSION_11 + } +} + +dependencies { + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.appcompat) + implementation(libs.material) + implementation(libs.androidx.activity) + implementation(libs.androidx.constraintlayout) + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) +} \ No newline at end of file diff --git a/Week1(Test)/app/proguard-rules.pro b/Week1(Test)/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/Week1(Test)/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/Week1(Test)/app/src/androidTest/java/com/example/emotionpost/ExampleInstrumentedTest.kt b/Week1(Test)/app/src/androidTest/java/com/example/emotionpost/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..d84a359 --- /dev/null +++ b/Week1(Test)/app/src/androidTest/java/com/example/emotionpost/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.emotionpost + +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.emotionpost", appContext.packageName) + } +} \ No newline at end of file diff --git a/Week1(Test)/app/src/main/AndroidManifest.xml b/Week1(Test)/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..acf97cd --- /dev/null +++ b/Week1(Test)/app/src/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Week1(Test)/app/src/main/java/com/example/emotionpost/MainActivity.kt b/Week1(Test)/app/src/main/java/com/example/emotionpost/MainActivity.kt new file mode 100644 index 0000000..f2f1c98 --- /dev/null +++ b/Week1(Test)/app/src/main/java/com/example/emotionpost/MainActivity.kt @@ -0,0 +1,61 @@ +package com.example.emotionpost + +import android.graphics.Color +import android.os.Bundle +import android.widget.ImageView +import android.widget.TextView +import androidx.appcompat.app.AppCompatActivity + +class MainActivity : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + + val ivHappy = findViewById(R.id.yellow_happy) + val tvHappy = findViewById(R.id.tv_happy_text) + + ivHappy.setOnClickListener { + + tvHappy.setTextColor(Color.parseColor("#FFD600")) + } + + val ivPHappy = findViewById(R.id.purple_happy) + val tvPHappy = findViewById(R.id.tv_excited_text) + + ivPHappy.setOnClickListener { + + tvPHappy.setTextColor(Color.parseColor("#87CEEB")) + + } + + + val ivNormal = findViewById(R.id.purple_soso) + val tvNormal = findViewById(R.id.tv_soso_text) + + ivNormal.setOnClickListener { + + tvNormal.setTextColor(Color.parseColor("#D1C4E9")) + + } + + val ivStressed = findViewById(R.id.green_sad) + val tvStressed = findViewById(R.id.tv_green_sad_text) + + ivStressed.setOnClickListener { + + tvStressed.setTextColor(Color.parseColor("#A5D6A7")) + + } + + val ivGrumpy = findViewById(R.id.angry_red) + val tvGrumpy = findViewById(R.id.tv_angry_red_text) + + ivGrumpy.setOnClickListener { + + tvGrumpy.setTextColor(Color.parseColor("#FF5252")) + + } +} +} \ No newline at end of file diff --git a/Week1(Test)/app/src/main/res/drawable/angry_red.xml b/Week1(Test)/app/src/main/res/drawable/angry_red.xml new file mode 100644 index 0000000..c6b43a2 --- /dev/null +++ b/Week1(Test)/app/src/main/res/drawable/angry_red.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/Week1(Test)/app/src/main/res/drawable/green_sad.xml b/Week1(Test)/app/src/main/res/drawable/green_sad.xml new file mode 100644 index 0000000..fe91f33 --- /dev/null +++ b/Week1(Test)/app/src/main/res/drawable/green_sad.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/Week1(Test)/app/src/main/res/drawable/ic_launcher_background.xml b/Week1(Test)/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/Week1(Test)/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Week1(Test)/app/src/main/res/drawable/ic_launcher_foreground.xml b/Week1(Test)/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/Week1(Test)/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Week1(Test)/app/src/main/res/drawable/purple_happy.xml b/Week1(Test)/app/src/main/res/drawable/purple_happy.xml new file mode 100644 index 0000000..5c4b19d --- /dev/null +++ b/Week1(Test)/app/src/main/res/drawable/purple_happy.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/Week1(Test)/app/src/main/res/drawable/purple_soso.xml b/Week1(Test)/app/src/main/res/drawable/purple_soso.xml new file mode 100644 index 0000000..9b02528 --- /dev/null +++ b/Week1(Test)/app/src/main/res/drawable/purple_soso.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/Week1(Test)/app/src/main/res/drawable/yellow_happy.xml b/Week1(Test)/app/src/main/res/drawable/yellow_happy.xml new file mode 100644 index 0000000..72176da --- /dev/null +++ b/Week1(Test)/app/src/main/res/drawable/yellow_happy.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/Week1(Test)/app/src/main/res/layout/activity_main.xml b/Week1(Test)/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..aab78fc --- /dev/null +++ b/Week1(Test)/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Week1(Test)/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/Week1(Test)/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..6f3b755 --- /dev/null +++ b/Week1(Test)/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Week1(Test)/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/Week1(Test)/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..6f3b755 --- /dev/null +++ b/Week1(Test)/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Week1(Test)/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/Week1(Test)/app/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 0000000..c209e78 Binary files /dev/null and b/Week1(Test)/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/Week1(Test)/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/Week1(Test)/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 0000000..b2dfe3d Binary files /dev/null and b/Week1(Test)/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/Week1(Test)/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/Week1(Test)/app/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 0000000..4f0f1d6 Binary files /dev/null and b/Week1(Test)/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/Week1(Test)/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/Week1(Test)/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 0000000..62b611d Binary files /dev/null and b/Week1(Test)/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/Week1(Test)/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/Week1(Test)/app/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 0000000..948a307 Binary files /dev/null and b/Week1(Test)/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/Week1(Test)/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/Week1(Test)/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..1b9a695 Binary files /dev/null and b/Week1(Test)/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/Week1(Test)/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/Week1(Test)/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp new file mode 100644 index 0000000..28d4b77 Binary files /dev/null and b/Week1(Test)/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/Week1(Test)/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/Week1(Test)/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9287f50 Binary files /dev/null and b/Week1(Test)/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/Week1(Test)/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/Week1(Test)/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp new file mode 100644 index 0000000..aa7d642 Binary files /dev/null and b/Week1(Test)/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/Week1(Test)/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/Week1(Test)/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9126ae3 Binary files /dev/null and b/Week1(Test)/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/Week1(Test)/app/src/main/res/values-night/themes.xml b/Week1(Test)/app/src/main/res/values-night/themes.xml new file mode 100644 index 0000000..936e9f6 --- /dev/null +++ b/Week1(Test)/app/src/main/res/values-night/themes.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/Week1(Test)/app/src/main/res/values/colors.xml b/Week1(Test)/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..c8524cd --- /dev/null +++ b/Week1(Test)/app/src/main/res/values/colors.xml @@ -0,0 +1,5 @@ + + + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/Week1(Test)/app/src/main/res/values/strings.xml b/Week1(Test)/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..1077797 --- /dev/null +++ b/Week1(Test)/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + EmotionPost + \ No newline at end of file diff --git a/Week1(Test)/app/src/main/res/values/themes.xml b/Week1(Test)/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..6f06a11 --- /dev/null +++ b/Week1(Test)/app/src/main/res/values/themes.xml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file diff --git a/Week2(Final)/app/src/main/res/values/colors.xml b/Week2(Final)/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..c8524cd --- /dev/null +++ b/Week2(Final)/app/src/main/res/values/colors.xml @@ -0,0 +1,5 @@ + + + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/Week2(Final)/app/src/main/res/values/strings.xml b/Week2(Final)/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..034fb26 --- /dev/null +++ b/Week2(Final)/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + Week2(Final) + \ No newline at end of file diff --git a/Week2(Final)/app/src/main/res/values/themes.xml b/Week2(Final)/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..aec6b77 --- /dev/null +++ b/Week2(Final)/app/src/main/res/values/themes.xml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file diff --git a/Week3/app/src/main/res/values/colors.xml b/Week3/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..c8524cd --- /dev/null +++ b/Week3/app/src/main/res/values/colors.xml @@ -0,0 +1,5 @@ + + + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/Week3/app/src/main/res/values/strings.xml b/Week3/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..31599fc --- /dev/null +++ b/Week3/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + Week3 + \ No newline at end of file diff --git a/Week3/app/src/main/res/values/themes.xml b/Week3/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..bf82f6e --- /dev/null +++ b/Week3/app/src/main/res/values/themes.xml @@ -0,0 +1,9 @@ + + + + +