Skip to content
Closed
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
3 changes: 3 additions & 0 deletions .idea/.gitignore

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

9 changes: 9 additions & 0 deletions .idea/10th_android.iml

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

1,610 changes: 1,610 additions & 0 deletions .idea/caches/deviceStreaming.xml

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions .idea/deploymentTargetSelector.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/markdown.xml

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

5 changes: 5 additions & 0 deletions .idea/misc.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.

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

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

Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
package com.example.umc_10th_android_paul

import android.os.Bundle
import android.graphics.Color
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContentView(R.layout.activity_main)

ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
insets
}

// 각 세트의 상태를 저장할 변수 (false: 검정, true: 색상변화)
var isGreatSelected = false
var isHappySelected = false
var isNormalSelected = false
var isAnxietySelected = false
var isAngrySelected = false

// 1. 첫 번째 세트 (Great)
val ivGreat = findViewById<android.widget.ImageView>(R.id.great)
val tvGreat = findViewById<android.widget.TextView>(R.id.great_text)
ivGreat.setOnClickListener {
if (isGreatSelected) {
tvGreat.setTextColor(Color.BLACK)
} else {
tvGreat.setTextColor(Color.YELLOW)
}
isGreatSelected = !isGreatSelected // 상태 반전 (true -> false, false -> true)
}

// 2. 두 번째 세트 (Happy)
val ivHappy = findViewById<android.widget.ImageView>(R.id.happy)
val tvHappy = findViewById<android.widget.TextView>(R.id.happy_text)
ivHappy.setOnClickListener {
if (isHappySelected) {
tvHappy.setTextColor(Color.BLACK)
} else {
tvHappy.setTextColor(Color.BLUE)
}
isHappySelected = !isHappySelected
}

// 3. 세 번째 세트 (Normal)
val ivNormal = findViewById<android.widget.ImageView>(R.id.normal)
val tvNormal = findViewById<android.widget.TextView>(R.id.normal_text)
ivNormal.setOnClickListener {
if (isNormalSelected) {
tvNormal.setTextColor(Color.BLACK)
} else {
tvNormal.setTextColor(Color.MAGENTA)
}
isNormalSelected = !isNormalSelected
}

// 4. 네 번째 세트 (Anxiety)
val ivAnxiety = findViewById<android.widget.ImageView>(R.id.anxiety)
val tvAnxiety = findViewById<android.widget.TextView>(R.id.anxiety_text)
ivAnxiety.setOnClickListener {
if (isAnxietySelected) {
tvAnxiety.setTextColor(Color.BLACK)
} else {
tvAnxiety.setTextColor(Color.GREEN)
}
isAnxietySelected = !isAnxietySelected
}

// 5. 다섯 번째 세트 (Angry)
val ivAngry = findViewById<android.widget.ImageView>(R.id.angry)
val tvAngry = findViewById<android.widget.TextView>(R.id.angry_text)
ivAngry.setOnClickListener {
if (isAngrySelected) {
tvAngry.setTextColor(Color.BLACK)
} else {
tvAngry.setTextColor(Color.RED)
}
isAngrySelected = !isAngrySelected
}
}
}
9 changes: 9 additions & 0 deletions week01/mission/res/drawable/_2.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="360dp"
android:height="800dp"
android:viewportWidth="360"
android:viewportHeight="800">
<path
android:pathData="M0,0h360v800h-360z"
android:fillColor="#ffffff"/>
</vector>
32 changes: 32 additions & 0 deletions week01/mission/res/drawable/angry.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="#EB8B8B"
android:strokeColor="#000000"/>
<path
android:pathData="M27.319,14.562C27.319,15.524 26.638,16.304 25.798,16.304C24.957,16.304 24.276,15.524 24.276,14.562C24.276,14.291 25.109,14.357 25.801,14.152C26.545,13.931 27.319,13.6 27.319,14.562Z"
android:fillColor="#000000"/>
<path
android:pathData="M14.493,14.562C14.493,15.524 15.175,16.304 16.015,16.304C16.855,16.304 17.537,15.524 17.537,14.562C17.537,14.291 16.704,14.357 16.012,14.152C15.267,13.931 14.493,13.6 14.493,14.562Z"
android:fillColor="#000000"/>
<path
android:pathData="M20.472,20.544m-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="M28.829,30.431C28.829,30.431 23.923,26.038 20.147,25.664C16.347,25.289 10.652,28.682 10.652,28.682"
android:strokeWidth="1.08696"
android:fillColor="#00000000"
android:strokeColor="#000000"/>
</vector>
32 changes: 32 additions & 0 deletions week01/mission/res/drawable/anxiety.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="#B1D3B9"
android:strokeColor="#000000"/>
<path
android:pathData="M14.493,14.891a1.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.928,14.891a1.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.472,20.978m-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="M28.829,30.865C28.829,30.865 23.923,26.472 20.147,26.099C16.347,25.723 10.652,29.117 10.652,29.117"
android:strokeWidth="1.08696"
android:fillColor="#00000000"
android:strokeColor="#000000"/>
</vector>
32 changes: 32 additions & 0 deletions week01/mission/res/drawable/great.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>
32 changes: 32 additions & 0 deletions week01/mission/res/drawable/happy.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="#CEE7F5"
android:strokeColor="#000000"/>
<path
android:pathData="M14.13,14.891a1.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,14.891a1.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,20.978m-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="M26.857,25.69C27.702,25.63 28.251,25.7 28.579,25.892C28.841,26.045 29.06,26.337 29.06,27.066C29.06,27.34 28.89,27.767 28.44,28.296C28.003,28.809 27.354,29.354 26.534,29.854C24.895,30.852 22.63,31.63 20.159,31.63C17.696,31.63 15.399,30.799 13.708,29.743C12.863,29.216 12.184,28.64 11.716,28.103C11.244,27.56 11.042,27.118 11.018,26.835C11.033,26.502 11.107,26.29 11.198,26.15C11.289,26.012 11.423,25.906 11.624,25.828C12.064,25.659 12.747,25.655 13.682,25.771C14.611,25.885 15.629,26.091 16.768,26.269C17.878,26.442 19.058,26.578 20.187,26.521C21.508,26.454 22.768,26.272 23.899,26.096C25.043,25.917 26.029,25.748 26.857,25.69Z"
android:strokeWidth="1.08696"
android:fillColor="#00000000"
android:strokeColor="#000000"/>
</vector>
9 changes: 9 additions & 0 deletions week01/mission/res/drawable/how_was_your_day.xml

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions week01/mission/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">

<path android:fillColor="#FF000000" android:pathData="M17.6,11.48 L19.44,8.3a0.63,0.63 0,0 0,-1.09 -0.63l-1.88,3.24a11.43,11.43 0,0 0,-8.94 0L5.65,7.67a0.63,0.63 0,0 0,-1.09 0.63L6.4,11.48A10.81,10.81 0,0 0,1 20L23,20A10.81,10.81 0,0 0,17.6 11.48ZM7,17.25A1.25,1.25 0,1 1,8.25 16,1.25 1.25,0 0,1 7,17.25ZM17,17.25A1.25,1.25 0,1 1,18.25 16,1.25 1.25,0 0,1 17,17.25Z"/>

</vector>
5 changes: 5 additions & 0 deletions week01/mission/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">

<path android:fillColor="#FF000000" android:pathData="M17.6,11.48 L19.44,8.3a0.63,0.63 0,0 0,-1.09 -0.63l-1.88,3.24a11.43,11.43 0,0 0,-8.94 0L5.65,7.67a0.63,0.63 0,0 0,-1.09 0.63L6.4,11.48A10.81,10.81 0,0 0,1 20L23,20A10.81,10.81 0,0 0,17.6 11.48ZM7,17.25A1.25,1.25 0,1 1,8.25 16,1.25 1.25,0 0,1 7,17.25ZM17,17.25A1.25,1.25 0,1 1,18.25 16,1.25 1.25,0 0,1 17,17.25Z"/>

</vector>
32 changes: 32 additions & 0 deletions week01/mission/res/drawable/normal.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="#BEC3ED"
android:strokeColor="#000000"/>
<path
android:pathData="M13.696,14.891a1.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.13,14.891a1.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,20.978m-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="M16.042,30.328L26.477,29.458"
android:strokeWidth="1.08696"
android:fillColor="#00000000"
android:strokeColor="#000000"/>
</vector>
9 changes: 9 additions & 0 deletions week01/mission/res/drawable/resource__.xml

Large diffs are not rendered by default.

Loading
Loading