Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,502 changes: 1,502 additions & 0 deletions .idea/caches/deviceStreaming.xml

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions .idea/markdown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Week01/Yido/.gitignore
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions Week01/Yido/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Week01/Yido/.idea/AndroidProjectSystem.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Week01/Yido/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Week01/Yido/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Week01/Yido/.idea/markdown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Week01/Yido/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Week01/Yido/.idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Week01/Yido/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions Week01/Yido/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# ๐Ÿ“ฌ 1์ฃผ์ฐจ ์‹ค์ „ ๋ฏธ์…˜ ์ œ์ถœ

## ๐Ÿ“‹ ๊ตฌํ˜„ ์‚ฌํ•ญ
- ๊ฐ์ • ์šฐํ‘œ ๋‹จ์ผ ํ™”๋ฉด UI ๊ตฌํ˜„
- ๊ฐ์ • ์šฐํ‘œ ์•„์ด์ฝ˜ ํด๋ฆญ ์‹œ ํ•ด๋‹น ์•„์ด์ฝ˜ ํ•˜๋‹จ ํ…์ŠคํŠธ๋งŒ ์ƒ‰์ƒ์ด ๋ณ€๊ฒฝ๋˜๋„๋ก ๊ตฌํ˜„
- ์„ ํƒ๋œ ๊ฐ์ •๋งŒ ๊ฐ•์กฐ๋˜๋„๋ก ์ฒ˜๋ฆฌํ•˜๊ณ  ๋‹ค๋ฅธ ํ…์ŠคํŠธ๋Š” ๊ธฐ๋ณธ ์ƒ‰์ƒ ์œ ์ง€

---

## โœ… ๋ฏธ์…˜ ์ฒดํฌ๋ฆฌ์ŠคํŠธ

- [x] **Figma์— ์žˆ๋Š” ๋‹จ์ผ ํ™”๋ฉด ๊ตฌ์„ฑํ•ด๋ณด๊ธฐ**
- ํ”ผ๊ทธ๋งˆ ๋””์ž์ธ ๊ฐ€์ด๋“œ๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ UI ๋ ˆ์ด์•„์›ƒ ๊ตฌํ˜„ ์™„๋ฃŒ

- [x] **๊ณ ์ • dp, layout_constraint ๋“ฑ์„ ์ด์šฉํ•ด ์œ„์ ฏ ์ค‘์•™ ์ •๋ ฌ ๋ฐ ํ™”๋ฉด ๊ตฌํ˜„**
- ConstraintLayout์„ ํ™œ์šฉํ•˜์—ฌ ๋‹ค์–‘ํ•œ ํ•ด์ƒ๋„์—์„œ๋„ ์ค‘์•™ ์ •๋ ฌ์ด ์œ ์ง€๋˜๋„๋ก ๊ตฌํ˜„

- [x] **๊ฐ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์ •๋ฆฌํ•ด๋ณด๊ธฐ**
- ConstraintLayout ๊ธฐ๋ฐ˜ UI ๋ฐฐ์น˜ ๋ฐฉ์‹๊ณผ ๋ ˆ์ด์•„์›ƒ ๊ตฌ์กฐ ์ •๋ฆฌ

- [x] **๊ฐ์ • ์šฐํ‘œ ์ด๋ฏธ์ง€ ํด๋ฆญ ์‹œ ํšจ๊ณผ ์ ์šฉ**
- ํด๋ฆญํ•œ ๊ฐ์ • ์šฐํ‘œ์— ๋Œ€์‘ํ•˜๋Š” ํ…์ŠคํŠธ๋งŒ ์ƒ‰์ƒ์ด ๋ณ€๊ฒฝ๋˜๋„๋ก ์ฒ˜๋ฆฌ

---

## ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท
<img src="./screenshots/0.png" width="250"><img src="./screenshots/1.png" width="250"><img src="./screenshots/2.png" width="250">
<img src="./screenshots/3.png" width="250"><img src="./screenshots/4.png" width="250"><img src="./screenshots/5.png" width="250">
1 change: 1 addition & 0 deletions Week01/Yido/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
52 changes: 52 additions & 0 deletions Week01/Yido/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
plugins {
alias(libs.plugins.android.application)
}

android {
namespace = "com.example.yido"
compileSdk {
version = release(36) {
minorApiLevel = 1
}
}
Comment on lines +7 to +11

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)
}
21 changes: 21 additions & 0 deletions Week01/Yido/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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)
}
}
25 changes: 25 additions & 0 deletions Week01/Yido/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Yido">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
59 changes: 59 additions & 0 deletions Week01/Yido/app/src/main/java/com/example/yido/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -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)
}
Comment on lines +19 to +55

selectedText.setTextColor(color)
Comment on lines +53 to +57
}
}
9 changes: 9 additions & 0 deletions Week01/Yido/app/src/main/res/drawable/ic_back.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="9dp"
android:height="15dp"
android:viewportWidth="9"
android:viewportHeight="15">
<path
android:pathData="M7.779,0.275C7.692,0.188 7.589,0.119 7.475,0.072C7.361,0.024 7.239,0 7.116,0C6.992,0 6.87,0.024 6.756,0.072C6.642,0.119 6.539,0.188 6.452,0.275L0.219,6.508C0.15,6.577 0.095,6.66 0.057,6.75C0.019,6.841 0,6.938 0,7.037C0,7.135 0.019,7.232 0.057,7.323C0.095,7.414 0.15,7.496 0.219,7.565L6.452,13.798C6.819,14.165 7.412,14.165 7.779,13.798C8.147,13.43 8.147,12.838 7.779,12.47L2.349,7.033L7.787,1.595C8.147,1.235 8.147,0.635 7.779,0.275Z"
android:fillColor="#000000"/>
</vector>
32 changes: 32 additions & 0 deletions Week01/Yido/app/src/main/res/drawable/ic_face1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="40dp"
android:height="45dp"
android:viewportWidth="40"
android:viewportHeight="45">
<path
android:pathData="M13.264,3.543L13.487,3.639L13.708,3.536L20.001,0.599L26.403,3.537L26.629,3.641L26.854,3.539L33.366,0.597L39.456,3.391V40.741L33.467,43.535L26.517,40.587L26.29,40.49L26.068,40.598L19.992,43.53L13.484,40.592L13.261,40.49L13.037,40.592L6.525,43.531L0.544,40.741V3.387L6.424,0.596L13.264,3.543Z"
android:strokeWidth="1.08696"
android:fillColor="#F6F6F6"
android:strokeColor="#000000"/>
<path
android:pathData="M4.239,6.413h31.304v31.522h-31.304z"
android:strokeWidth="1.08696"
android:fillColor="#FFEFB6"
android:strokeColor="#000000"/>
<path
android:pathData="M14.13,15.326a1.196,1.848 0,1 0,2.391 0a1.196,1.848 0,1 0,-2.391 0z"
android:fillColor="#000000"/>
<path
android:pathData="M24.565,15.326a1.196,1.848 0,1 0,2.391 0a1.196,1.848 0,1 0,-2.391 0z"
android:fillColor="#000000"/>
<path
android:pathData="M20.109,21.413m-2.826,0a2.826,2.826 0,1 1,5.652 0a2.826,2.826 0,1 1,-5.652 0"
android:strokeWidth="1.08696"
android:fillColor="#00000000"
android:strokeColor="#000000"/>
<path
android:pathData="M11.087,24.783C11.087,24.783 16.391,28.686 20.186,28.696C24.004,28.706 29.348,24.783 29.348,24.783"
android:strokeWidth="1.08696"
android:fillColor="#00000000"
android:strokeColor="#000000"/>
</vector>
Loading