diff --git a/.idea/caches/deviceStreaming.xml b/.idea/caches/deviceStreaming.xml new file mode 100644 index 0000000..3c002e5 --- /dev/null +++ b/.idea/caches/deviceStreaming.xml @@ -0,0 +1,1502 @@ + + + + + + \ No newline at end of file diff --git a/.idea/markdown.xml b/.idea/markdown.xml new file mode 100644 index 0000000..c61ea33 --- /dev/null +++ b/.idea/markdown.xml @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..4b3d351 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Week01/Yido/.gitignore b/Week01/Yido/.gitignore new file mode 100644 index 0000000..aa724b7 --- /dev/null +++ b/Week01/Yido/.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/Week01/Yido/.idea/.gitignore b/Week01/Yido/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/Week01/Yido/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/Week01/Yido/.idea/AndroidProjectSystem.xml b/Week01/Yido/.idea/AndroidProjectSystem.xml new file mode 100644 index 0000000..4a53bee --- /dev/null +++ b/Week01/Yido/.idea/AndroidProjectSystem.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/Week01/Yido/.idea/compiler.xml b/Week01/Yido/.idea/compiler.xml new file mode 100644 index 0000000..b86273d --- /dev/null +++ b/Week01/Yido/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Week01/Yido/.idea/gradle.xml b/Week01/Yido/.idea/gradle.xml new file mode 100644 index 0000000..cdbc250 --- /dev/null +++ b/Week01/Yido/.idea/gradle.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/Week01/Yido/.idea/markdown.xml b/Week01/Yido/.idea/markdown.xml new file mode 100644 index 0000000..c61ea33 --- /dev/null +++ b/Week01/Yido/.idea/markdown.xml @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/Week01/Yido/.idea/misc.xml b/Week01/Yido/.idea/misc.xml new file mode 100644 index 0000000..1a9b5c4 --- /dev/null +++ b/Week01/Yido/.idea/misc.xml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file diff --git a/Week01/Yido/.idea/runConfigurations.xml b/Week01/Yido/.idea/runConfigurations.xml new file mode 100644 index 0000000..16660f1 --- /dev/null +++ b/Week01/Yido/.idea/runConfigurations.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/Week01/Yido/.idea/vcs.xml b/Week01/Yido/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/Week01/Yido/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Week01/Yido/README.md b/Week01/Yido/README.md new file mode 100644 index 0000000..5c1eccf --- /dev/null +++ b/Week01/Yido/README.md @@ -0,0 +1,28 @@ +# ๐Ÿ“ฌ 1์ฃผ์ฐจ ์‹ค์ „ ๋ฏธ์…˜ ์ œ์ถœ + +## ๐Ÿ“‹ ๊ตฌํ˜„ ์‚ฌํ•ญ +- ๊ฐ์ • ์šฐํ‘œ ๋‹จ์ผ ํ™”๋ฉด UI ๊ตฌํ˜„ +- ๊ฐ์ • ์šฐํ‘œ ์•„์ด์ฝ˜ ํด๋ฆญ ์‹œ ํ•ด๋‹น ์•„์ด์ฝ˜ ํ•˜๋‹จ ํ…์ŠคํŠธ๋งŒ ์ƒ‰์ƒ์ด ๋ณ€๊ฒฝ๋˜๋„๋ก ๊ตฌํ˜„ +- ์„ ํƒ๋œ ๊ฐ์ •๋งŒ ๊ฐ•์กฐ๋˜๋„๋ก ์ฒ˜๋ฆฌํ•˜๊ณ  ๋‹ค๋ฅธ ํ…์ŠคํŠธ๋Š” ๊ธฐ๋ณธ ์ƒ‰์ƒ ์œ ์ง€ + +--- + +## โœ… ๋ฏธ์…˜ ์ฒดํฌ๋ฆฌ์ŠคํŠธ + +- [x] **Figma์— ์žˆ๋Š” ๋‹จ์ผ ํ™”๋ฉด ๊ตฌ์„ฑํ•ด๋ณด๊ธฐ** + - ํ”ผ๊ทธ๋งˆ ๋””์ž์ธ ๊ฐ€์ด๋“œ๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ UI ๋ ˆ์ด์•„์›ƒ ๊ตฌํ˜„ ์™„๋ฃŒ + +- [x] **๊ณ ์ • dp, layout_constraint ๋“ฑ์„ ์ด์šฉํ•ด ์œ„์ ฏ ์ค‘์•™ ์ •๋ ฌ ๋ฐ ํ™”๋ฉด ๊ตฌํ˜„** + - ConstraintLayout์„ ํ™œ์šฉํ•˜์—ฌ ๋‹ค์–‘ํ•œ ํ•ด์ƒ๋„์—์„œ๋„ ์ค‘์•™ ์ •๋ ฌ์ด ์œ ์ง€๋˜๋„๋ก ๊ตฌํ˜„ + +- [x] **๊ฐ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์ •๋ฆฌํ•ด๋ณด๊ธฐ** + - ConstraintLayout ๊ธฐ๋ฐ˜ UI ๋ฐฐ์น˜ ๋ฐฉ์‹๊ณผ ๋ ˆ์ด์•„์›ƒ ๊ตฌ์กฐ ์ •๋ฆฌ + +- [x] **๊ฐ์ • ์šฐํ‘œ ์ด๋ฏธ์ง€ ํด๋ฆญ ์‹œ ํšจ๊ณผ ์ ์šฉ** + - ํด๋ฆญํ•œ ๊ฐ์ • ์šฐํ‘œ์— ๋Œ€์‘ํ•˜๋Š” ํ…์ŠคํŠธ๋งŒ ์ƒ‰์ƒ์ด ๋ณ€๊ฒฝ๋˜๋„๋ก ์ฒ˜๋ฆฌ + +--- + +## ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท + + \ No newline at end of file diff --git a/Week01/Yido/app/.gitignore b/Week01/Yido/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/Week01/Yido/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/Week01/Yido/app/build.gradle.kts b/Week01/Yido/app/build.gradle.kts new file mode 100644 index 0000000..200193a --- /dev/null +++ b/Week01/Yido/app/build.gradle.kts @@ -0,0 +1,52 @@ +plugins { + alias(libs.plugins.android.application) +} + +android { + namespace = "com.example.yido" + compileSdk { + version = release(36) { + minorApiLevel = 1 + } + } + + defaultConfig { + applicationId = "com.example.yido" + 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" + ) + } + } + + buildFeatures { + viewBinding = true + } + + 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/Week01/Yido/app/proguard-rules.pro b/Week01/Yido/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/Week01/Yido/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/Week01/Yido/app/src/androidTest/java/com/example/yido/ExampleInstrumentedTest.kt b/Week01/Yido/app/src/androidTest/java/com/example/yido/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..254c793 --- /dev/null +++ b/Week01/Yido/app/src/androidTest/java/com/example/yido/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.yido + +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.yido", appContext.packageName) + } +} \ No newline at end of file diff --git a/Week01/Yido/app/src/main/AndroidManifest.xml b/Week01/Yido/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..dded437 --- /dev/null +++ b/Week01/Yido/app/src/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Week01/Yido/app/src/main/java/com/example/yido/MainActivity.kt b/Week01/Yido/app/src/main/java/com/example/yido/MainActivity.kt new file mode 100644 index 0000000..096c058 --- /dev/null +++ b/Week01/Yido/app/src/main/java/com/example/yido/MainActivity.kt @@ -0,0 +1,59 @@ +package com.example.yido + +import android.graphics.Color +import android.os.Bundle +import android.widget.TextView +import androidx.appcompat.app.AppCompatActivity +import com.example.yido.databinding.ActivityMainBinding + +class MainActivity : AppCompatActivity() { + + private lateinit var binding: ActivityMainBinding + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + + binding = ActivityMainBinding.inflate(layoutInflater) + setContentView(binding.root) + + binding.icFace1.setOnClickListener { + selectEmotion(binding.textFace1, Color.parseColor("#FFBB00")) + } + + binding.icFace2.setOnClickListener { + selectEmotion(binding.textFace2, Color.parseColor("#00BFFF")) + } + + binding.icFace3.setOnClickListener { + selectEmotion(binding.textFace3, Color.parseColor("#9370DB")) + } + + binding.icFace4.setOnClickListener { + selectEmotion(binding.textFace4, Color.parseColor("#32CD32")) + } + + binding.icFace5.setOnClickListener { + selectEmotion(binding.textFace5, Color.parseColor("#FF0000")) + } + + binding.icBack.setOnClickListener { + finish() + } + } + + private fun selectEmotion(selectedText: TextView, color: Int) { + val textViews = listOf( + binding.textFace1, + binding.textFace2, + binding.textFace3, + binding.textFace4, + binding.textFace5 + ) + + for (textView in textViews) { + textView.setTextColor(Color.BLACK) + } + + selectedText.setTextColor(color) + } +} \ No newline at end of file diff --git a/Week01/Yido/app/src/main/res/drawable/ic_back.xml b/Week01/Yido/app/src/main/res/drawable/ic_back.xml new file mode 100644 index 0000000..af62026 --- /dev/null +++ b/Week01/Yido/app/src/main/res/drawable/ic_back.xml @@ -0,0 +1,9 @@ + + + diff --git a/Week01/Yido/app/src/main/res/drawable/ic_face1.xml b/Week01/Yido/app/src/main/res/drawable/ic_face1.xml new file mode 100644 index 0000000..72176da --- /dev/null +++ b/Week01/Yido/app/src/main/res/drawable/ic_face1.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/Week01/Yido/app/src/main/res/drawable/ic_face2.xml b/Week01/Yido/app/src/main/res/drawable/ic_face2.xml new file mode 100644 index 0000000..5c4b19d --- /dev/null +++ b/Week01/Yido/app/src/main/res/drawable/ic_face2.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/Week01/Yido/app/src/main/res/drawable/ic_face3.xml b/Week01/Yido/app/src/main/res/drawable/ic_face3.xml new file mode 100644 index 0000000..9b02528 --- /dev/null +++ b/Week01/Yido/app/src/main/res/drawable/ic_face3.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/Week01/Yido/app/src/main/res/drawable/ic_face4.xml b/Week01/Yido/app/src/main/res/drawable/ic_face4.xml new file mode 100644 index 0000000..fe91f33 --- /dev/null +++ b/Week01/Yido/app/src/main/res/drawable/ic_face4.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/Week01/Yido/app/src/main/res/drawable/ic_face5.xml b/Week01/Yido/app/src/main/res/drawable/ic_face5.xml new file mode 100644 index 0000000..c6b43a2 --- /dev/null +++ b/Week01/Yido/app/src/main/res/drawable/ic_face5.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/Week01/Yido/app/src/main/res/drawable/ic_launcher_background.xml b/Week01/Yido/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/Week01/Yido/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Week01/Yido/app/src/main/res/drawable/ic_launcher_foreground.xml b/Week01/Yido/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/Week01/Yido/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Week01/Yido/app/src/main/res/font/gangwon.ttf b/Week01/Yido/app/src/main/res/font/gangwon.ttf new file mode 100644 index 0000000..862c6d2 Binary files /dev/null and b/Week01/Yido/app/src/main/res/font/gangwon.ttf differ diff --git a/Week01/Yido/app/src/main/res/layout/activity_main.xml b/Week01/Yido/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..f1413e7 --- /dev/null +++ b/Week01/Yido/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Week01/Yido/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/Week01/Yido/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..6f3b755 --- /dev/null +++ b/Week01/Yido/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Week01/Yido/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/Week01/Yido/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..6f3b755 --- /dev/null +++ b/Week01/Yido/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Week01/Yido/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/Week01/Yido/app/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 0000000..c209e78 Binary files /dev/null and b/Week01/Yido/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/Week01/Yido/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/Week01/Yido/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 0000000..b2dfe3d Binary files /dev/null and b/Week01/Yido/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/Week01/Yido/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/Week01/Yido/app/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 0000000..4f0f1d6 Binary files /dev/null and b/Week01/Yido/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/Week01/Yido/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/Week01/Yido/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 0000000..62b611d Binary files /dev/null and b/Week01/Yido/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/Week01/Yido/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/Week01/Yido/app/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 0000000..948a307 Binary files /dev/null and b/Week01/Yido/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/Week01/Yido/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/Week01/Yido/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..1b9a695 Binary files /dev/null and b/Week01/Yido/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/Week01/Yido/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/Week01/Yido/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp new file mode 100644 index 0000000..28d4b77 Binary files /dev/null and b/Week01/Yido/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/Week01/Yido/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/Week01/Yido/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9287f50 Binary files /dev/null and b/Week01/Yido/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/Week01/Yido/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/Week01/Yido/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp new file mode 100644 index 0000000..aa7d642 Binary files /dev/null and b/Week01/Yido/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/Week01/Yido/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/Week01/Yido/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9126ae3 Binary files /dev/null and b/Week01/Yido/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/Week01/Yido/app/src/main/res/values-night/themes.xml b/Week01/Yido/app/src/main/res/values-night/themes.xml new file mode 100644 index 0000000..8027ede --- /dev/null +++ b/Week01/Yido/app/src/main/res/values-night/themes.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/Week01/Yido/app/src/main/res/values/colors.xml b/Week01/Yido/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..c8524cd --- /dev/null +++ b/Week01/Yido/app/src/main/res/values/colors.xml @@ -0,0 +1,5 @@ + + + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/Week01/Yido/app/src/main/res/values/strings.xml b/Week01/Yido/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..e6e255b --- /dev/null +++ b/Week01/Yido/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + Yido + \ No newline at end of file diff --git a/Week01/Yido/app/src/main/res/values/themes.xml b/Week01/Yido/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..e3ccc9f --- /dev/null +++ b/Week01/Yido/app/src/main/res/values/themes.xml @@ -0,0 +1,9 @@ + + + + +