diff --git a/joy/kakaoLogin/.gitignore b/joy/kakaoLogin/.gitignore
new file mode 100644
index 0000000..aa724b7
--- /dev/null
+++ b/joy/kakaoLogin/.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/joy/kakaoLogin/.idea/.gitignore b/joy/kakaoLogin/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/joy/kakaoLogin/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/joy/kakaoLogin/.idea/compiler.xml b/joy/kakaoLogin/.idea/compiler.xml
new file mode 100644
index 0000000..b589d56
--- /dev/null
+++ b/joy/kakaoLogin/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/.idea/deploymentTargetSelector.xml b/joy/kakaoLogin/.idea/deploymentTargetSelector.xml
new file mode 100644
index 0000000..b268ef3
--- /dev/null
+++ b/joy/kakaoLogin/.idea/deploymentTargetSelector.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/.idea/gradle.xml b/joy/kakaoLogin/.idea/gradle.xml
new file mode 100644
index 0000000..0897082
--- /dev/null
+++ b/joy/kakaoLogin/.idea/gradle.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/.idea/kotlinc.xml b/joy/kakaoLogin/.idea/kotlinc.xml
new file mode 100644
index 0000000..fdf8d99
--- /dev/null
+++ b/joy/kakaoLogin/.idea/kotlinc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/.idea/migrations.xml b/joy/kakaoLogin/.idea/migrations.xml
new file mode 100644
index 0000000..f8051a6
--- /dev/null
+++ b/joy/kakaoLogin/.idea/migrations.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/.idea/misc.xml b/joy/kakaoLogin/.idea/misc.xml
new file mode 100644
index 0000000..0ad17cb
--- /dev/null
+++ b/joy/kakaoLogin/.idea/misc.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/.idea/vcs.xml b/joy/kakaoLogin/.idea/vcs.xml
new file mode 100644
index 0000000..def3818
--- /dev/null
+++ b/joy/kakaoLogin/.idea/vcs.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/.gitignore b/joy/kakaoLogin/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/joy/kakaoLogin/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/build.gradle b/joy/kakaoLogin/app/build.gradle
new file mode 100644
index 0000000..196bb13
--- /dev/null
+++ b/joy/kakaoLogin/app/build.gradle
@@ -0,0 +1,63 @@
+plugins {
+ alias(libs.plugins.android.application)
+ alias(libs.plugins.kotlin.android)
+}
+
+android {
+ namespace 'com.example.kakaologin'
+ compileSdk 35
+
+ defaultConfig {
+ applicationId "com.example.kakaologin"
+ minSdk 31
+ targetSdk 34
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ def localProperties = new Properties()
+ localProperties.load(new FileInputStream(rootProject.file("local.properties")))
+ def nativeAppKey = localProperties.getProperty("NATIVE_APP_KEY")?:""
+ buildConfigField "String", "NATIVE_APP_KEY", "\"${nativeAppKey}\""
+ manifestPlaceholders["NATIVE_APP_KEY"] = nativeAppKey
+ }
+
+ 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'
+ }
+
+ buildFeatures {
+ buildConfig true
+ viewBinding true
+ dataBinding true
+ }
+}
+
+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
+
+ implementation("com.google.android.material:material:1.12.0")
+
+ implementation("com.kakao.sdk:v2-user:2.20.6")
+
+ implementation 'com.squareup.picasso:picasso:2.8'
+}
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/proguard-rules.pro b/joy/kakaoLogin/app/proguard-rules.pro
new file mode 100644
index 0000000..481bb43
--- /dev/null
+++ b/joy/kakaoLogin/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/joy/kakaoLogin/app/src/androidTest/java/com/example/kakaologin/ExampleInstrumentedTest.kt b/joy/kakaoLogin/app/src/androidTest/java/com/example/kakaologin/ExampleInstrumentedTest.kt
new file mode 100644
index 0000000..7dae269
--- /dev/null
+++ b/joy/kakaoLogin/app/src/androidTest/java/com/example/kakaologin/ExampleInstrumentedTest.kt
@@ -0,0 +1,24 @@
+package com.example.kakaologin
+
+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.kakaologin", appContext.packageName)
+ }
+}
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/AndroidManifest.xml b/joy/kakaoLogin/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..76abf54
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/AndroidManifest.xml
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/GlobalApplication.kt b/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/GlobalApplication.kt
new file mode 100644
index 0000000..5c09a15
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/GlobalApplication.kt
@@ -0,0 +1,13 @@
+package com.example.kakaologin
+
+import android.app.Application
+import com.kakao.sdk.common.KakaoSdk
+import com.example.kakaologin.BuildConfig
+
+class GlobalApplication : Application() {
+ override fun onCreate() {
+ super.onCreate()
+
+ KakaoSdk.init(this, BuildConfig.NATIVE_APP_KEY)
+ }
+}
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/MainActivity.kt b/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/MainActivity.kt
new file mode 100644
index 0000000..fd597c0
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/MainActivity.kt
@@ -0,0 +1,143 @@
+package com.example.kakaologin
+
+import android.content.Intent
+import android.os.Bundle
+import android.util.Log
+import android.widget.Toast
+import androidx.activity.enableEdgeToEdge
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowInsetsCompat
+import com.example.kakaologin.databinding.ActivityMainBinding
+import com.kakao.sdk.auth.model.OAuthToken
+import com.kakao.sdk.common.model.AuthErrorCause
+import com.kakao.sdk.user.UserApiClient
+import com.kakao.sdk.user.model.User
+
+class MainActivity : AppCompatActivity() {
+
+ lateinit var binding: ActivityMainBinding
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ binding = ActivityMainBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ initClickListener()
+
+ val keyHash = Utility.getKeyHash(this)
+ Log.d("KeyHash", keyHash ?: "Key hash not found")
+ }
+
+ private fun initClickListener() {
+
+ binding.kakaoLoginIv.setOnClickListener {
+ kakaoLogin()
+ }
+ }
+
+ private fun kakaoLogin() {
+ val callback: (OAuthToken?, Throwable?) -> Unit = { token, error ->
+ if (error != null) {
+ when {
+ error.toString() == AuthErrorCause.AccessDenied.toString() -> {
+ Toast.makeText(this, "접근이 거부 됨(동의 취소)", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidClient.toString() -> {
+ Toast.makeText(this, "유효하지 않은 앱", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidGrant.toString() -> {
+ Toast.makeText(this, "인증 수단이 유효하지 않아 인증할 수 없는 상태", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidRequest.toString() -> {
+ Toast.makeText(this, "요청 파라미터 오류", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidScope.toString() -> {
+ Toast.makeText(this, "유효하지 않은 scope ID", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.Misconfigured.toString() -> {
+ Toast.makeText(this, "설정이 올바르지 않음(android key hash)", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.ServerError.toString() -> {
+ Toast.makeText(this, "서버 내부 에러", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.Unauthorized.toString() -> {
+ Toast.makeText(this, "앱이 요청 권한이 없음", Toast.LENGTH_SHORT).show()
+ }
+ else -> { // Unknown
+ Toast.makeText(this, "기타 에러", Toast.LENGTH_SHORT).show()
+ }
+ }
+ }
+ else if (token != null) {
+ Log.d("token", token.accessToken)
+ val spf = getSharedPreferences("auth3", MODE_PRIVATE)
+ val editor = spf.edit()
+ editor.putString("kakao_token", token.accessToken)
+ editor.apply()
+ // Toast.makeText(this, "로그인에 성공하였습니다.", Toast.LENGTH_SHORT).show()
+ // val intent = Intent(this, MainActivity::class.java)
+ // startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
+ // finish()
+
+ getKakaoUserInfo()
+ }
+ }
+
+ // if(UserApiClient.instance.isKakaoTalkLoginAvailable(this)){
+ // UserApiClient.instance.loginWithKakaoTalk(this, callback = callback)
+ // }else{
+ // UserApiClient.instance.loginWithKakaoAccount(this, callback = callback)
+ // }
+
+ if (UserApiClient.instance.isKakaoTalkLoginAvailable(this)) {
+ UserApiClient.instance.loginWithKakaoTalk(this, callback = callback)
+ } else {
+ // 이메일 권한을 요청하면서 로그인
+ UserApiClient.instance.loginWithKakaoAccount(this) { token, error ->
+ if (error != null) {
+ Toast.makeText(this, "로그인 실패", Toast.LENGTH_SHORT).show()
+ } else if (token != null) {
+ // 이메일 권한이 이미 동의된 경우 정보 가져오기
+ getKakaoUserInfo()
+ }
+ }
+ }
+ }
+
+ private fun getKakaoUserInfo() {
+ UserApiClient.instance.me { kakaoUser, error ->
+ if (error != null) {
+ Toast.makeText(this, "사용자 정보 요청 실패", Toast.LENGTH_SHORT).show()
+ } else if (kakaoUser != null) {
+ // 사용자 정보를 가져왔으므로 팝업창을 띄웁니다
+ showUserInfoPopup(kakaoUser)
+ }
+ }
+ }
+
+ private fun showUserInfoPopup(kakaoUser: User) {
+ val nickname = kakaoUser.kakaoAccount?.profile?.nickname
+ val profileImageUrl = kakaoUser.kakaoAccount?.profile?.profileImageUrl
+ val email = kakaoUser.kakaoAccount?.email
+
+ // 사용자 정보를 팝업창으로 띄우기
+// val dialog = UserInfoDialog(this, nickname, profileImageUrl, email)
+// dialog.setOnConfirmListener {
+// // CONFIRM 버튼 클릭 시 메인 액티비티로 이동
+// val intent = Intent(this, MainActivity::class.java)
+// startActivity(intent)
+// finish() // 현재 액티비티 종료
+// }
+// dialog.show()
+
+ val intent = Intent(this, UserInfoActivity::class.java).apply {
+ putExtra("nickname", nickname)
+ putExtra("profileImageUrl", profileImageUrl)
+ putExtra("email", email)
+ }
+ startActivity(intent)
+ finish()
+ }
+}
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/UserInfoActivity.kt b/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/UserInfoActivity.kt
new file mode 100644
index 0000000..65499ed
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/UserInfoActivity.kt
@@ -0,0 +1,46 @@
+package com.example.kakaologin
+
+import android.os.Bundle
+import androidx.appcompat.app.AppCompatActivity
+import com.example.kakaologin.databinding.ActivityUserInfoBinding
+import com.squareup.picasso.Picasso
+
+class UserInfoActivity : AppCompatActivity() {
+
+ private lateinit var binding: ActivityUserInfoBinding
+ private var nickname: String? = null
+ private var profileImageUrl: String? = null
+ private var email: String? = null
+ private var onConfirmListener: (() -> Unit)? = null
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ binding = ActivityUserInfoBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ // Intent로 전달된 사용자 정보 받기
+ nickname = intent.getStringExtra("nickname")
+ profileImageUrl = intent.getStringExtra("profileImageUrl")
+ email = intent.getStringExtra("email")
+
+ // 사용자 정보 설정
+ binding.kakaoLoginNicknameTv.text = nickname
+ binding.kakaoLoginEmailTv.text = email ?: "이메일 정보 없음"
+
+ // 프로필 이미지 로드
+ if (profileImageUrl != null) {
+ Picasso.get().load(profileImageUrl).into(binding.kakaoLoginProfileImgIv)
+ }
+
+ // CONFIRM 버튼 클릭 시
+ binding.kakaoLoginBtn.setOnClickListener {
+ onConfirmListener?.invoke() // 리스너 호출
+ finish() // 액티비티 종료
+ }
+ }
+
+ // Confirm 리스너 설정
+ fun setOnConfirmListener(listener: () -> Unit) {
+ this.onConfirmListener = listener
+ }
+}
diff --git a/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/UserInfoDialog.kt b/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/UserInfoDialog.kt
new file mode 100644
index 0000000..d29d7b5
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/UserInfoDialog.kt
@@ -0,0 +1,38 @@
+package com.example.kakaologin
+
+import android.app.Dialog
+import android.content.Context
+import android.os.Bundle
+import com.example.kakaologin.databinding.DialogUserInfoBinding
+import com.squareup.picasso.Picasso
+
+class UserInfoDialog(context: Context, private val nickname: String?, private val profileImageUrl: String?, private val email: String?) : Dialog(context) {
+
+ private lateinit var binding: DialogUserInfoBinding
+ private var onConfirmListener: (() -> Unit)? = null
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ binding = DialogUserInfoBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ // 사용자 정보 설정
+ binding.kakaoLoginNicknameTv.text = nickname
+ binding.kakaoLoginEmailTv.text = email ?: "이메일 정보 없음"
+
+ // 프로필 이미지 로드
+ if (profileImageUrl != null) {
+ Picasso.get().load(profileImageUrl).into(binding.kakaoLoginProfileImgIv)
+ }
+
+ // CONFIRM 버튼 클릭 시
+ binding.kakaoLoginBtn.setOnClickListener {
+ onConfirmListener?.invoke() // 리스너 호출
+ dismiss() // 다이얼로그 닫기
+ }
+ }
+
+ fun setOnConfirmListener(listener: () -> Unit) {
+ this.onConfirmListener = listener
+ }
+}
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/Utility.kt b/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/Utility.kt
new file mode 100644
index 0000000..8488b1a
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/java/com/example/kakaologin/Utility.kt
@@ -0,0 +1,26 @@
+package com.example.kakaologin
+
+import android.content.Context
+import android.util.Base64
+import android.util.Log
+import java.security.MessageDigest
+
+object Utility {
+ fun getKeyHash(context: Context): String? {
+ return try {
+ val packageInfo = context.packageManager.getPackageInfo(
+ context.packageName,
+ android.content.pm.PackageManager.GET_SIGNATURES
+ )
+ val signatures = packageInfo.signatures
+ val md = MessageDigest.getInstance("SHA")
+ signatures?.forEach { signature ->
+ md.update(signature.toByteArray())
+ }
+ Base64.encodeToString(md.digest(), Base64.DEFAULT).trim()
+ } catch (e: Exception) {
+ Log.e("KeyHash", "Error getting key hash", e)
+ null
+ }
+ }
+}
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/drawable/ic_launcher_background.xml b/joy/kakaoLogin/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..07d5da9
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/joy/kakaoLogin/app/src/main/res/drawable/ic_launcher_foreground.xml b/joy/kakaoLogin/app/src/main/res/drawable/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/drawable/kakao_login_large_wide.png b/joy/kakaoLogin/app/src/main/res/drawable/kakao_login_large_wide.png
new file mode 100644
index 0000000..c0c1856
Binary files /dev/null and b/joy/kakaoLogin/app/src/main/res/drawable/kakao_login_large_wide.png differ
diff --git a/joy/kakaoLogin/app/src/main/res/layout/activity_main.xml b/joy/kakaoLogin/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..32c9f81
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/layout/activity_user_info.xml b/joy/kakaoLogin/app/src/main/res/layout/activity_user_info.xml
new file mode 100644
index 0000000..2272b67
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/layout/activity_user_info.xml
@@ -0,0 +1,92 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/layout/dialog_user_info.xml b/joy/kakaoLogin/app/src/main/res/layout/dialog_user_info.xml
new file mode 100644
index 0000000..1a76be1
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/layout/dialog_user_info.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-anydpi/ic_launcher.xml b/joy/kakaoLogin/app/src/main/res/mipmap-anydpi/ic_launcher.xml
new file mode 100644
index 0000000..6f3b755
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/mipmap-anydpi/ic_launcher.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml b/joy/kakaoLogin/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
new file mode 100644
index 0000000..6f3b755
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/joy/kakaoLogin/app/src/main/res/mipmap-hdpi/ic_launcher.webp
new file mode 100644
index 0000000..c209e78
Binary files /dev/null and b/joy/kakaoLogin/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/joy/kakaoLogin/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..b2dfe3d
Binary files /dev/null and b/joy/kakaoLogin/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/joy/kakaoLogin/app/src/main/res/mipmap-mdpi/ic_launcher.webp
new file mode 100644
index 0000000..4f0f1d6
Binary files /dev/null and b/joy/kakaoLogin/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/joy/kakaoLogin/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..62b611d
Binary files /dev/null and b/joy/kakaoLogin/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/joy/kakaoLogin/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
new file mode 100644
index 0000000..948a307
Binary files /dev/null and b/joy/kakaoLogin/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/joy/kakaoLogin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..1b9a695
Binary files /dev/null and b/joy/kakaoLogin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/joy/kakaoLogin/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..28d4b77
Binary files /dev/null and b/joy/kakaoLogin/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/joy/kakaoLogin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9287f50
Binary files /dev/null and b/joy/kakaoLogin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/joy/kakaoLogin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..aa7d642
Binary files /dev/null and b/joy/kakaoLogin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ
diff --git a/joy/kakaoLogin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/joy/kakaoLogin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9126ae3
Binary files /dev/null and b/joy/kakaoLogin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ
diff --git a/joy/kakaoLogin/app/src/main/res/values-night/themes.xml b/joy/kakaoLogin/app/src/main/res/values-night/themes.xml
new file mode 100644
index 0000000..25aba5c
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,7 @@
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/values/colors.xml b/joy/kakaoLogin/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..c8524cd
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/values/colors.xml
@@ -0,0 +1,5 @@
+
+
+ #FF000000
+ #FFFFFFFF
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/values/strings.xml b/joy/kakaoLogin/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..ed9ff01
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ kakaoLogin
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/values/themes.xml b/joy/kakaoLogin/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..96d0545
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/values/themes.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/xml/backup_rules.xml b/joy/kakaoLogin/app/src/main/res/xml/backup_rules.xml
new file mode 100644
index 0000000..fa0f996
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/xml/backup_rules.xml
@@ -0,0 +1,13 @@
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/xml/data_extraction_rules.xml b/joy/kakaoLogin/app/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 0000000..9ee9997
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/kakaoLogin/app/src/main/res/xml/network_security_config.xml b/joy/kakaoLogin/app/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..92999eb
--- /dev/null
+++ b/joy/kakaoLogin/app/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,6 @@
+
+
+
+ 3.35.121.185
+
+
diff --git a/joy/kakaoLogin/app/src/test/java/com/example/kakaologin/ExampleUnitTest.kt b/joy/kakaoLogin/app/src/test/java/com/example/kakaologin/ExampleUnitTest.kt
new file mode 100644
index 0000000..668b2b7
--- /dev/null
+++ b/joy/kakaoLogin/app/src/test/java/com/example/kakaologin/ExampleUnitTest.kt
@@ -0,0 +1,17 @@
+package com.example.kakaologin
+
+import org.junit.Test
+
+import org.junit.Assert.*
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * See [testing documentation](http://d.android.com/tools/testing).
+ */
+class ExampleUnitTest {
+ @Test
+ fun addition_isCorrect() {
+ assertEquals(4, 2 + 2)
+ }
+}
\ No newline at end of file
diff --git a/joy/kakaoLogin/build.gradle b/joy/kakaoLogin/build.gradle
new file mode 100644
index 0000000..5bec31d
--- /dev/null
+++ b/joy/kakaoLogin/build.gradle
@@ -0,0 +1,5 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+plugins {
+alias(libs.plugins.android.application) apply false
+ alias(libs.plugins.kotlin.android) apply false
+}
\ No newline at end of file
diff --git a/joy/kakaoLogin/gradle.properties b/joy/kakaoLogin/gradle.properties
new file mode 100644
index 0000000..20e2a01
--- /dev/null
+++ b/joy/kakaoLogin/gradle.properties
@@ -0,0 +1,23 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. For more details, visit
+# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Kotlin code style for this project: "official" or "obsolete":
+kotlin.code.style=official
+# Enables namespacing of each library's R class so that its R class includes only the
+# resources declared in the library itself and none from the library's dependencies,
+# thereby reducing the size of the R class for that library
+android.nonTransitiveRClass=true
\ No newline at end of file
diff --git a/joy/kakaoLogin/gradle/libs.versions.toml b/joy/kakaoLogin/gradle/libs.versions.toml
new file mode 100644
index 0000000..04e14fb
--- /dev/null
+++ b/joy/kakaoLogin/gradle/libs.versions.toml
@@ -0,0 +1,26 @@
+[versions]
+agp = "8.6.0"
+kotlin = "1.9.0"
+coreKtx = "1.15.0"
+junit = "4.13.2"
+junitVersion = "1.2.1"
+espressoCore = "3.6.1"
+appcompat = "1.7.0"
+material = "1.12.0"
+activity = "1.9.3"
+constraintlayout = "2.2.0"
+
+[libraries]
+androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
+junit = { group = "junit", name = "junit", version.ref = "junit" }
+androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
+androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
+androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
+material = { group = "com.google.android.material", name = "material", version.ref = "material" }
+androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
+androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
+
+[plugins]
+android-application = { id = "com.android.application", version.ref = "agp" }
+kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
+
diff --git a/joy/kakaoLogin/gradle/wrapper/gradle-wrapper.jar b/joy/kakaoLogin/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..e708b1c
Binary files /dev/null and b/joy/kakaoLogin/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/joy/kakaoLogin/gradle/wrapper/gradle-wrapper.properties b/joy/kakaoLogin/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..c0eb9cc
--- /dev/null
+++ b/joy/kakaoLogin/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Thu Dec 05 12:25:34 KST 2024
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/joy/kakaoLogin/gradlew b/joy/kakaoLogin/gradlew
new file mode 100644
index 0000000..4f906e0
--- /dev/null
+++ b/joy/kakaoLogin/gradlew
@@ -0,0 +1,185 @@
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=`expr $i + 1`
+ done
+ case $i in
+ 0) set -- ;;
+ 1) set -- "$args0" ;;
+ 2) set -- "$args0" "$args1" ;;
+ 3) set -- "$args0" "$args1" "$args2" ;;
+ 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=`save "$@"`
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+exec "$JAVACMD" "$@"
diff --git a/joy/kakaoLogin/gradlew.bat b/joy/kakaoLogin/gradlew.bat
new file mode 100644
index 0000000..107acd3
--- /dev/null
+++ b/joy/kakaoLogin/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/joy/kakaoLogin/settings.gradle b/joy/kakaoLogin/settings.gradle
new file mode 100644
index 0000000..da2ea77
--- /dev/null
+++ b/joy/kakaoLogin/settings.gradle
@@ -0,0 +1,24 @@
+pluginManagement {
+ repositories {
+ google {
+ content {
+ includeGroupByRegex("com\\.android.*")
+ includeGroupByRegex("com\\.google.*")
+ includeGroupByRegex("androidx.*")
+ }
+ }
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
+dependencyResolutionManagement {
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
+ repositories {
+ google()
+ mavenCentral()
+ maven { url = uri("https://devrepo.kakao.com/nexus/content/groups/public/") }
+ }
+}
+
+rootProject.name = "kakaoLogin"
+include ':app'
diff --git a/joy/week10_FLO/.gitignore b/joy/week10_FLO/.gitignore
new file mode 100644
index 0000000..aa724b7
--- /dev/null
+++ b/joy/week10_FLO/.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/joy/week10_FLO/.idea/.gitignore b/joy/week10_FLO/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/joy/week10_FLO/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/joy/week10_FLO/.idea/.name b/joy/week10_FLO/.idea/.name
new file mode 100644
index 0000000..997352e
--- /dev/null
+++ b/joy/week10_FLO/.idea/.name
@@ -0,0 +1 @@
+FLO
\ No newline at end of file
diff --git a/joy/week10_FLO/.idea/compiler.xml b/joy/week10_FLO/.idea/compiler.xml
new file mode 100644
index 0000000..b589d56
--- /dev/null
+++ b/joy/week10_FLO/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/.idea/deploymentTargetSelector.xml b/joy/week10_FLO/.idea/deploymentTargetSelector.xml
new file mode 100644
index 0000000..b2cd28a
--- /dev/null
+++ b/joy/week10_FLO/.idea/deploymentTargetSelector.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/.idea/gradle.xml b/joy/week10_FLO/.idea/gradle.xml
new file mode 100644
index 0000000..0897082
--- /dev/null
+++ b/joy/week10_FLO/.idea/gradle.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/.idea/kotlinc.xml b/joy/week10_FLO/.idea/kotlinc.xml
new file mode 100644
index 0000000..fdf8d99
--- /dev/null
+++ b/joy/week10_FLO/.idea/kotlinc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/.idea/migrations.xml b/joy/week10_FLO/.idea/migrations.xml
new file mode 100644
index 0000000..f8051a6
--- /dev/null
+++ b/joy/week10_FLO/.idea/migrations.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/.idea/misc.xml b/joy/week10_FLO/.idea/misc.xml
new file mode 100644
index 0000000..8978d23
--- /dev/null
+++ b/joy/week10_FLO/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/.idea/vcs.xml b/joy/week10_FLO/.idea/vcs.xml
new file mode 100644
index 0000000..d491a20
--- /dev/null
+++ b/joy/week10_FLO/.idea/vcs.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/.gitignore b/joy/week10_FLO/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/joy/week10_FLO/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/joy/week10_FLO/app/build.gradle b/joy/week10_FLO/app/build.gradle
new file mode 100644
index 0000000..b60ba73
--- /dev/null
+++ b/joy/week10_FLO/app/build.gradle
@@ -0,0 +1,89 @@
+plugins {
+ id 'kotlin-kapt'
+ alias(libs.plugins.android.application)
+ alias(libs.plugins.kotlin.android)
+}
+
+android {
+ namespace 'com.example.flo'
+ compileSdk 34
+
+ defaultConfig {
+ applicationId "com.example.flo"
+ minSdk 24
+ targetSdk 34
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ def localProperties = new Properties()
+ localProperties.load(new FileInputStream(rootProject.file("local.properties")))
+
+// def kakaoApiKey = localProperties.getProperty("KAKAO_API_KEY")?:""
+ def nativeAppKey = localProperties.getProperty("NATIVE_APP_KEY")?:""
+
+// buildConfigField("String", "KAKAO_API_KEY", kakaoApiKey)
+ buildConfigField "String", "NATIVE_APP_KEY", "\"${nativeAppKey}\""
+ manifestPlaceholders["NATIVE_APP_KEY"] = nativeAppKey
+ }
+
+ 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'
+ }
+
+ buildFeatures {
+ buildConfig true
+ viewBinding true
+ dataBinding true
+ }
+}
+
+dependencies {
+
+ implementation libs.androidx.core.ktx
+ implementation libs.androidx.appcompat
+ implementation libs.material
+ implementation libs.androidx.activity
+ implementation libs.androidx.constraintlayout
+ implementation "androidx.navigation:navigation-fragment-ktx:2.8.1"
+ implementation "androidx.navigation:navigation-ui-ktx:2.8.1"
+ implementation "com.google.code.gson:gson:2.11.0"
+ testImplementation libs.junit
+ androidTestImplementation libs.androidx.junit
+ androidTestImplementation libs.androidx.espresso.core
+
+ // Splash
+ implementation "androidx.core:core-splashscreen:1.0.1"
+
+ //Indicator
+ implementation 'me.relex:circleindicator:2.1.6'
+
+ //Coroutine
+ implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0"
+
+ //RoomDB
+ implementation "androidx.room:room-ktx:2.6.1"
+ implementation "androidx.room:room-runtime:2.6.1"
+ kapt "androidx.room:room-compiler:2.6.1"
+
+ //Retrofit
+ implementation("com.squareup.retrofit2:retrofit:2.9.0")
+ implementation("com.squareup.retrofit2:converter-gson:2.9.0")
+
+ implementation("com.google.android.material:material:1.12.0")
+
+ implementation("com.kakao.sdk:v2-user:2.20.6")
+
+ implementation 'com.squareup.picasso:picasso:2.8'
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/proguard-rules.pro b/joy/week10_FLO/app/proguard-rules.pro
new file mode 100644
index 0000000..481bb43
--- /dev/null
+++ b/joy/week10_FLO/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/joy/week10_FLO/app/src/androidTest/java/com/example/flo/ExampleInstrumentedTest.kt b/joy/week10_FLO/app/src/androidTest/java/com/example/flo/ExampleInstrumentedTest.kt
new file mode 100644
index 0000000..951a391
--- /dev/null
+++ b/joy/week10_FLO/app/src/androidTest/java/com/example/flo/ExampleInstrumentedTest.kt
@@ -0,0 +1,24 @@
+package com.example.flo
+
+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.flo_week1", appContext.packageName)
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/AndroidManifest.xml b/joy/week10_FLO/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..b5c6d5d
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/AndroidManifest.xml
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/BottomSheetFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/BottomSheetFragment.kt
new file mode 100644
index 0000000..bd94b5a
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/BottomSheetFragment.kt
@@ -0,0 +1,50 @@
+package com.example.flo
+
+import android.content.Context
+import android.os.Bundle
+import android.util.Log
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import com.example.flo.databinding.FragmentBottomSheetBinding
+import com.google.android.material.bottomsheet.BottomSheetDialogFragment
+
+class BottomSheetFragment : BottomSheetDialogFragment() {
+ lateinit var binding: FragmentBottomSheetBinding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentBottomSheetBinding.inflate(inflater, container, false)
+
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ super.onViewCreated(view, savedInstanceState)
+
+ binding.bottomSheetView1.setOnClickListener {
+ CustomSnackbar.make(binding.root, "재생을 시작합니다.").show()
+ }
+
+ binding.bottomSheetView2.setOnClickListener {
+ CustomSnackbar.make(binding.root, "곡이 음악 재생목록에 담겼습니다.").show()
+ }
+
+ binding.bottomSheetView3.setOnClickListener {
+ CustomSnackbar.make(binding.root, "선택한 곡을 리스트에 추가합니다.").show()
+ }
+
+ binding.bottomSheetView4.setOnClickListener {
+ CustomSnackbar.make(binding.root, "곡을 저장합니다.").show()
+ }
+
+ binding.bottomSheetView5.setOnClickListener {
+
+ parentFragmentManager.setFragmentResult("deleteRequestKey", Bundle())
+ dismiss()
+ }
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/CustomSnackbar.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/CustomSnackbar.kt
new file mode 100644
index 0000000..eae23c9
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/CustomSnackbar.kt
@@ -0,0 +1,43 @@
+package com.example.flo
+
+import android.view.LayoutInflater
+import android.view.View
+import androidx.core.content.ContextCompat
+import com.example.flo.databinding.CustomSnackbarBinding
+import com.google.android.material.snackbar.Snackbar
+
+class CustomSnackbar(view: View, private val message: String) {
+
+ companion object {
+ fun make(view: View, message: String) = CustomSnackbar(view, message)
+ }
+
+ private val context = view.context
+ private val snackbar = Snackbar.make(view, "", 2000)
+ //private val snackbarLayout = snackbar.view as Snackbar.SnackbarLayout
+
+ //private val inflater = LayoutInflater.from(context)
+ private val snackbarBinding: CustomSnackbarBinding = CustomSnackbarBinding.inflate(LayoutInflater.from(context), null, false)
+
+ init {
+ initView()
+ }
+
+ private fun initView() {
+
+ snackbar.view.setBackgroundColor(ContextCompat.getColor(context, android.R.color.transparent))
+ snackbarBinding.customSnackbarTv.text = message
+
+ (snackbar.view as Snackbar.SnackbarLayout).apply {
+ removeAllViews()
+ setPadding(0, 0, 0, 0)
+ addView(snackbarBinding.root)
+ }
+
+ snackbar.view.translationY = -310f
+ }
+
+ fun show() {
+ snackbar.show()
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/MainActivity.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/MainActivity.kt
new file mode 100644
index 0000000..b3c39c2
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/MainActivity.kt
@@ -0,0 +1,456 @@
+package com.example.flo
+
+import android.content.Intent
+import android.content.pm.PackageInfo
+import android.content.pm.PackageManager
+import android.media.MediaPlayer
+import android.os.Build
+import androidx.appcompat.app.AppCompatActivity
+import android.os.Bundle
+import android.os.Handler
+import android.util.Base64
+import android.util.Log
+import android.view.View
+import android.widget.Toast
+import androidx.core.view.WindowCompat
+import com.example.flo.data.db.SongDatabase
+import com.example.flo.data.entities.Album
+import com.example.flo.data.entities.Song
+import com.example.flo.databinding.ActivityMainBinding
+import com.example.flo.main.home.HomeFragment
+import com.example.flo.main.locker.LockerFragment
+import com.example.flo.main.look.LookFragment
+import com.example.flo.main.search.SearchFragment
+import com.example.flo.main.song.SongActivity
+import com.google.gson.Gson
+import java.security.MessageDigest
+
+class MainActivity : AppCompatActivity() {
+
+ lateinit var binding: ActivityMainBinding
+
+ private var song: Song = Song()
+ private var gson: Gson = Gson()
+
+ private var mediaPlayer: MediaPlayer ? = null
+
+ val songs = arrayListOf()
+ lateinit var songDB: SongDatabase
+ var nowPos = 0
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ binding = ActivityMainBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ val keyHash = Utility.getKeyHash(this)
+ Log.d("KeyHash", keyHash ?: "Key hash not found")
+
+ songDB = SongDatabase.getInstance(this)!!
+
+ inputDummySongs()
+ inputDummyAlbums()
+
+ initBottomNavigation()
+ initPlayList()
+
+ setOnClickListener()
+
+ WindowCompat.setDecorFitsSystemWindows(window, false)
+
+
+
+ // marquee 효과를 위해 TextView가 선택 가능하도록 설정
+ binding.mainMiniplayerTitleTv.isSelected = true
+ binding.mainMiniplayerSingerTv.isSelected = true
+
+ // 포커스 요청
+ binding.mainMiniplayerTitleTv.requestFocus()
+ binding.mainMiniplayerSingerTv.requestFocus()
+
+
+
+ Log.d("MAIN/JWT_TO_SERVER", getJwt().toString())
+ }
+
+ private fun initBottomNavigation(){
+
+ supportFragmentManager.beginTransaction()
+ .replace(R.id.main_frm, HomeFragment())
+ .commitAllowingStateLoss()
+
+ binding.mainBnv.setOnItemSelectedListener{ item ->
+ val fragment = when (item.itemId) {
+ R.id.homeFragment -> HomeFragment()
+ R.id.lookFragment -> LookFragment()
+ R.id.searchFragment -> SearchFragment()
+ R.id.lockerFragment -> LockerFragment()
+ else -> null
+ }
+
+ fragment?.let {
+ supportFragmentManager.beginTransaction()
+ .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out, android.R.anim.slide_in_left, android.R.anim.slide_out_right)
+ .replace(R.id.main_frm, it)
+ .commitAllowingStateLoss()
+ }
+ return@setOnItemSelectedListener true
+ }
+ }
+
+ fun setMiniPlayer(song: Song) {
+ Log.d("MainActivity", "Received song: ${song.title} by ${song.singer}")
+ binding.mainMiniplayerTitleTv.text = song.title
+ binding.mainMiniplayerSingerTv.text = song.singer
+ Log.d("songInfo", song.toString())
+ val spf = getSharedPreferences("song", MODE_PRIVATE)
+ val second = spf.getInt("second", 0)
+ Log.d("spfSecond", second.toString())
+ binding.mainProgressSb.progress = (second * 100000 / song.playTime ) //10000: seekbar max값
+ }
+
+ fun updateMainPlayerCl(song: Song) {
+ binding.mainMiniplayerTitleTv.text = song.title
+ binding.mainMiniplayerSingerTv.text = song.singer
+ binding.mainProgressSb.progress = 0
+ }
+
+ private fun getJwt(): String? {
+ val spf = this.getSharedPreferences("auth2", MODE_PRIVATE)
+ return spf!!.getString("jwt", "")
+ }
+
+ private fun setOnClickListener() {
+ binding.mainPlayerCl.setOnClickListener {
+
+ val editor = getSharedPreferences("song", MODE_PRIVATE).edit()
+ editor.putInt("songId", songs[nowPos].id)
+ editor.apply()
+
+ val intent = Intent(this, SongActivity::class.java)
+ startActivity(intent)
+
+ setPlayerStatus(false)
+ }
+
+ binding.mainMiniplayerBtn.setOnClickListener {
+ setPlayerStatus(true)
+ }
+
+ binding.mainPauseBtn.setOnClickListener {
+ setPlayerStatus(false)
+ }
+
+ binding.nuguBtnSkipNextIv.setOnClickListener {
+ moveSong(+1)
+ }
+
+ binding.nuguBtnSkipPreviousIv.setOnClickListener {
+ moveSong(-1)
+ }
+ }
+
+ override fun onResume() {
+ super.onResume()
+
+ val spf = getSharedPreferences("song", MODE_PRIVATE)
+ val songId = spf.getInt("songId", 0)
+
+ nowPos = getPlayingSongPosition(songId)
+ setMiniPlayer(songs[nowPos])
+ }
+
+ private fun getPlayingSongPosition(songId: Int): Int {
+ for (i in 0 until songs.size) {
+ if (songs[i].id == songId) {
+ return i
+ }
+ }
+ return 0
+ }
+
+ private fun initPlayList() {
+ songDB = SongDatabase.getInstance(this)!!
+ songs.addAll(songDB.songDao().getSongs())
+ }
+
+ fun setPlayerStatus(isPlaying: Boolean) {
+ songs[nowPos].isPlaying = isPlaying
+
+ if (isPlaying) {
+ binding.mainMiniplayerBtn.visibility = View.GONE
+ binding.mainPauseBtn.visibility = View.VISIBLE
+
+// mediaPlayer = MediaPlayer.create(this, R.raw.music_old_love)
+ mediaPlayer = MediaPlayer.create(this, resources.getIdentifier(songs[nowPos].music, "raw", packageName))
+ mediaPlayer?.start()
+
+ val handler = Handler(mainLooper)
+ val updateProgressRunnable = object : Runnable {
+ override fun run() {
+ val currentPosition = mediaPlayer?.currentPosition ?: 0
+ val progress = (currentPosition * 100) / songs[nowPos].playTime // Assuming playTime is in milliseconds
+ binding.mainProgressSb.progress = progress
+
+ if (mediaPlayer?.isPlaying == true) {
+ handler.postDelayed(this, 100) // Update every 100ms
+ }
+ }
+ }
+ handler.post(updateProgressRunnable)
+ } else {
+ binding.mainMiniplayerBtn.visibility = View.VISIBLE
+ binding.mainPauseBtn.visibility = View.GONE
+ mediaPlayer?.pause()
+ }
+ }
+
+ private fun moveSong(direct: Int) {
+ if (nowPos + direct < 0) {
+ Toast.makeText(this, "first song", Toast.LENGTH_SHORT).show()
+ return
+ }
+
+ if (nowPos + direct >= songs.size) {
+ Toast.makeText(this, "last song", Toast.LENGTH_SHORT).show()
+ return
+ }
+
+ nowPos += direct
+
+ val editor = getSharedPreferences("song", MODE_PRIVATE).edit()
+ editor.putInt("songId", songs[nowPos].id)
+ editor.apply()
+
+ //timer.interrupt()
+ //startTimer()
+
+ mediaPlayer?.release()
+ mediaPlayer = null
+
+ setMiniPlayer(songs[nowPos])
+ setPlayerStatus(true)
+ }
+
+// private fun getKeyHash(): String? {
+// return try {
+// val packageInfo = packageManager.getPackageInfo(packageName, android.content.pm.PackageManager.GET_SIGNATURES)
+// val signatures = packageInfo.signatures
+// val md = MessageDigest.getInstance("SHA")
+// signatures.forEach { signature ->
+// md.update(signature.toByteArray())
+// }
+// Base64.encodeToString(md.digest(), Base64.DEFAULT).trim()
+// } catch (e: Exception) {
+// Log.e("KeyHash", "Error getting key hash", e)
+// null
+// }
+// }
+
+ private fun inputDummyAlbums() {
+ val songDB = SongDatabase.getInstance(this)!!
+ val albums = songDB.albumDao().getAlbums()
+
+// if (songs.isNotEmpty()) return
+ if (albums.isNotEmpty()) return
+
+ songDB.albumDao().insert(
+ Album(
+ 1,
+ "영화 대도시의 사랑법 (Original Motion Picture Soundtrack)",
+ "Various Artists",
+ R.drawable.img_album_cover_1,
+ )
+ )
+
+ songDB.albumDao().insert(
+ Album(
+ 2,
+ "YOUNHA 7th Album 'GROWTH THEORY'",
+ "윤하",
+ R.drawable.img_album_cover_3
+ )
+ )
+
+ songDB.albumDao().insert(
+ Album(
+ 3,
+ "Hadestown (Original Broadway Cast Recording)",
+ "Anais Mitchell",
+ R.drawable.img_album_cover_2
+ )
+ )
+
+ songDB.albumDao().insert(
+ Album(
+ 4,
+ "Dear Evan Hason (Original Broadway Cast Recording)",
+ "Various Artists",
+ R.drawable.img_album_cover_4
+ )
+ )
+
+ songDB.albumDao().insert(
+ Album(
+ 5,
+ "Kinky Boots (Original Broadway Cast Recording)",
+ "Original Broadway Cast of Kinky Boots",
+ R.drawable.img_album_cover_5
+ )
+ )
+
+ val _album = songDB.albumDao().getAlbums()
+ Log.d("Album DB data", _album.toString())
+ }
+
+ private fun inputDummySongs() {
+ val songDB = SongDatabase.getInstance(this)!!
+ val songs = songDB.songDao().getSongs()
+
+ if (songs.isNotEmpty()) return
+
+ songDB.songDao().insert(
+ Song(
+ "Old Love",
+ "Die Boy",
+ 0,
+ 251,
+ false,
+ "music_old_love",
+ R.drawable.img_album_cover_1,
+ false,
+ 1,
+ )
+ )
+
+ songDB.songDao().insert(
+ Song(
+ "Friends",
+ "Jihae Kimm",
+ 0,
+ 333,
+ false,
+ "music_friends",
+ R.drawable.img_album_cover_1,
+ false,
+ 1,
+ )
+ )
+
+ songDB.songDao().insert(
+ Song(
+ "맹그로브",
+ "윤하(YOUNHA)",
+ 0,
+ 259,
+ false,
+ "music_mangrove_tree",
+ R.drawable.img_album_cover_3,
+ false,
+ 2,
+ )
+ )
+
+ songDB.songDao().insert(
+ Song(
+ "죽음의 나선",
+ "윤하(YOUNHA)",
+ 0,
+ 357,
+ false,
+ "music_antmill",
+ R.drawable.img_album_cover_3,
+ false,
+ 2,
+ )
+ )
+
+ songDB.songDao().insert(
+ Song(
+ "Road to Hell",
+ "André De Sheilds & Hadestown Original Broadway Company",
+ 0,
+ 517,
+ false,
+ "music_road_to_hell",
+ R.drawable.img_album_cover_2,
+ false,
+ 3,
+ )
+ )
+
+ songDB.songDao().insert(
+ Song(
+ "Any Way the Wind Blows",
+ "Eva Noblezada & Jewelle Blackman & Yvette Gonzalez-Nacer & Kay Trinidad",
+ 0,
+ 346,
+ false,
+ "music_any_way_the_wind_blows",
+ R.drawable.img_album_cover_2,
+ false,
+ 3,
+ )
+ )
+
+ songDB.songDao().insert(
+ Song(
+ "Anybody Have a Map?",
+ "Rachel Bay Jones & Jennifer Laura Thompson",
+ 0,
+ 226,
+ false,
+ "music_anybody_have_a_map",
+ R.drawable.img_album_cover_4,
+ false,
+ 4,
+ )
+ )
+
+ songDB.songDao().insert(
+ Song(
+ "Waving Through A Window",
+ "Ben Platt & Original Broadway Cast Of Dear Even Hansen",
+ 0,
+ 357,
+ false,
+ "music_waving_through_a_window",
+ R.drawable.img_album_cover_4,
+ false,
+ 4,
+ )
+ )
+
+ songDB.songDao().insert(
+ Song(
+ "Price and Son Theme / The Most Beautiful Thing in the World",
+ "Full Company & Kinky Boots Ensemble",
+ 0,
+ 620,
+ false,
+ "music_price_and_son_theme_the_most_beautiful_thing_in_the_world",
+ R.drawable.img_album_cover_5,
+ false,
+ 5,
+ )
+ )
+
+ songDB.songDao().insert(
+ Song(
+ "Take What You Got",
+ "Andy Kelso & Stark Sands & Kinky Boots Ensemble",
+ 0,
+ 319,
+ false,
+ "music_take_what_you_got",
+ R.drawable.img_album_cover_5,
+ false,
+ 5,
+ )
+ )
+
+ val _songs = songDB.songDao().getSongs()
+ Log.d("Song DB data", _songs.toString())
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/NetworkModule.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/NetworkModule.kt
new file mode 100644
index 0000000..24b50a7
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/NetworkModule.kt
@@ -0,0 +1,16 @@
+package com.example.flo
+
+import retrofit2.Retrofit
+import retrofit2.converter.gson.GsonConverterFactory
+
+
+const val BASE_URL = "http://3.35.121.185"
+
+
+fun getRetrofit() : Retrofit {
+ val retrofit = Retrofit.Builder().baseUrl(BASE_URL)
+ .addConverterFactory(GsonConverterFactory.create())
+ .build()
+
+ return retrofit
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/SplashActivity.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/SplashActivity.kt
new file mode 100644
index 0000000..ae571d9
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/SplashActivity.kt
@@ -0,0 +1,38 @@
+package com.example.flo
+
+import android.content.Intent
+import android.graphics.Color
+import android.os.Bundle
+import android.os.Handler
+import android.os.Looper
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.view.WindowCompat
+import androidx.core.view.WindowInsetsControllerCompat
+import com.example.flo.databinding.ActivitySplashBinding
+
+class SplashActivity : AppCompatActivity() {
+
+ private lateinit var binding: ActivitySplashBinding
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ WindowCompat.setDecorFitsSystemWindows(window, false)
+
+ binding = ActivitySplashBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ window.statusBarColor = Color.TRANSPARENT
+
+ val windowInsetsController = WindowInsetsControllerCompat(window, window.decorView)
+ windowInsetsController.isAppearanceLightStatusBars = true
+
+
+ Handler(Looper.getMainLooper()).postDelayed({
+ val intent = Intent(this, MainActivity::class.java)
+ startActivity(intent)
+ finish()
+ }, 1500)
+
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/UserInfoDialog.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/UserInfoDialog.kt
new file mode 100644
index 0000000..88f94a2
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/UserInfoDialog.kt
@@ -0,0 +1,38 @@
+package com.example.flo
+
+import android.app.Dialog
+import android.content.Context
+import android.os.Bundle
+import com.example.flo.databinding.DialogUserInfoBinding
+import com.squareup.picasso.Picasso
+
+class UserInfoDialog(context: Context, private val nickname: String?, private val profileImageUrl: String?, private val email: String?) : Dialog(context) {
+
+ private lateinit var binding: DialogUserInfoBinding
+ private var onConfirmListener: (() -> Unit)? = null
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ binding = DialogUserInfoBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ // 사용자 정보 설정
+ binding.kakaoLoginNicknameTv.text = nickname
+ binding.kakaoLoginEmailTv.text = email ?: "이메일 정보 없음"
+
+ // 프로필 이미지 로드
+ if (profileImageUrl != null) {
+ Picasso.get().load(profileImageUrl).into(binding.kakaoLoginProfileImgIv)
+ }
+
+ // CONFIRM 버튼 클릭 시
+ binding.kakaoLoginBtn.setOnClickListener {
+ onConfirmListener?.invoke() // 리스너 호출
+ dismiss() // 다이얼로그 닫기
+ }
+ }
+
+ fun setOnConfirmListener(listener: () -> Unit) {
+ this.onConfirmListener = listener
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/Utility.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/Utility.kt
new file mode 100644
index 0000000..599fb04
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/Utility.kt
@@ -0,0 +1,26 @@
+package com.example.flo
+
+import android.content.Context
+import android.util.Base64
+import android.util.Log
+import java.security.MessageDigest
+
+object Utility {
+ fun getKeyHash(context: Context): String? {
+ return try {
+ val packageInfo = context.packageManager.getPackageInfo(
+ context.packageName,
+ android.content.pm.PackageManager.GET_SIGNATURES
+ )
+ val signatures = packageInfo.signatures
+ val md = MessageDigest.getInstance("SHA")
+ signatures.forEach { signature ->
+ md.update(signature.toByteArray())
+ }
+ Base64.encodeToString(md.digest(), Base64.DEFAULT).trim()
+ } catch (e: Exception) {
+ Log.e("KeyHash", "Error getting key hash", e)
+ null
+ }
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/AlbumDao.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/AlbumDao.kt
new file mode 100644
index 0000000..3e6019b
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/AlbumDao.kt
@@ -0,0 +1,39 @@
+package com.example.flo.data.db
+
+import androidx.room.Dao
+import androidx.room.Delete
+import androidx.room.Insert
+import androidx.room.Query
+import androidx.room.Update
+import com.example.flo.data.entities.Album
+import com.example.flo.data.entities.Like
+
+@Dao
+interface AlbumDao {
+ @Insert
+ fun insert(album: Album)
+
+ @Update
+ fun update(album: Album)
+
+ @Delete
+ fun delete(album: Album)
+
+ @Query("SELECT * FROM AlbumTable")
+ fun getAlbums(): List
+
+ @Query("SELECT * FROM AlbumTable WHERE id = :id")
+ fun getAlbum(id: Int): Album
+
+ @Insert
+ fun likeAlbum(like: Like)
+
+ @Query("SELECT id FROM LikeTable WHERE userId = :userId AND albumId = :albumId")
+ fun isLikedAlbum(userId : Int, albumId : Int) : Int?
+
+ @Query("DELETE FROM LikeTable WHERE userId = :userId AND albumId = :albumId")
+ fun disLikedAlbum(userId : Int, albumId : Int)
+
+ @Query("SELECT AT. * FROM LikeTable as LT LEFT JOIN AlbumTable as AT ON LT.albumId = AT.id WHERE LT.userId = :userId")
+ fun getLikedAlbums(userId: Int) : List
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/SongDao.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/SongDao.kt
new file mode 100644
index 0000000..f123753
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/SongDao.kt
@@ -0,0 +1,31 @@
+package com.example.flo.data.db
+
+import androidx.room.*
+import com.example.flo.data.entities.Song
+
+@Dao
+interface SongDao {
+ @Insert
+ fun insert(song: Song)
+
+ @Update
+ fun update(song: Song)
+
+ @Delete
+ fun delete(song: Song)
+
+ @Query("SELECT * FROM SongTable")
+ fun getSongs(): List
+
+ @Query("SELECT * FROM SongTable WHERE id = :id")
+ fun getSong(id: Int): Song
+
+ @Query("UPDATE SongTable SET isLike = :isLike WHERE id = :id")
+ fun updateIsLikeById(isLike: Boolean, id: Int)
+
+ @Query("SELECT * FROM SongTable WHERE isLike = :isLike")
+ fun getLikedSongs(isLike: Boolean): List
+
+ @Query("SELECT * FROM SongTable WHERE albumIdx = :albumId")
+ fun getSongsByAlbumId(albumId: Int): List
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/SongDatabase.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/SongDatabase.kt
new file mode 100644
index 0000000..db5d8ab
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/SongDatabase.kt
@@ -0,0 +1,38 @@
+package com.example.flo.data.db
+
+import android.content.Context
+import androidx.room.Database
+import androidx.room.Room
+import androidx.room.RoomDatabase
+import com.example.flo.data.entities.Album
+import com.example.flo.data.entities.Like
+import com.example.flo.data.entities.Song
+import com.example.flo.data.entities.User
+
+@Database(entities = [Song::class, Album::class, User::class, Like::class], version = 12)
+abstract class SongDatabase: RoomDatabase() {
+ abstract fun albumDao(): AlbumDao
+ abstract fun songDao(): SongDao
+ abstract fun userDao(): UserDao
+
+ companion object {
+ private var instance: SongDatabase? = null
+
+ @Synchronized
+ fun getInstance(context: Context): SongDatabase? {
+ if (instance == null) {
+ synchronized(SongDatabase::class) {
+ instance = Room.databaseBuilder(
+ context.applicationContext,
+ SongDatabase::class.java,
+ "song-database"
+ ).fallbackToDestructiveMigration().allowMainThreadQueries().build()
+ }
+ }
+
+ return instance
+ }
+ }
+
+
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/UserDao.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/UserDao.kt
new file mode 100644
index 0000000..992b66a
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/db/UserDao.kt
@@ -0,0 +1,18 @@
+package com.example.flo.data.db
+
+import androidx.room.Dao
+import androidx.room.Insert
+import androidx.room.Query
+import com.example.flo.data.entities.User
+
+@Dao
+interface UserDao {
+ @Insert
+ fun insert(user: User)
+
+ @Query("SELECT * FROM UserTable")
+ fun getUsers() : List
+
+ @Query("SELECT * FROM UserTable WHERE email = :email AND password = :password")
+ fun getUser(email: String, password: String) : User?
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/Album.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/Album.kt
new file mode 100644
index 0000000..f571453
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/Album.kt
@@ -0,0 +1,12 @@
+package com.example.flo.data.entities
+
+import androidx.room.Entity
+import androidx.room.PrimaryKey
+
+@Entity(tableName = "AlbumTable")
+data class Album(
+ @PrimaryKey(autoGenerate = false) var id: Int = 0,
+ var title: String? = "",
+ var singer: String? = "",
+ var coverImg: Int? = null,
+)
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/Like.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/Like.kt
new file mode 100644
index 0000000..895cfc9
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/Like.kt
@@ -0,0 +1,12 @@
+package com.example.flo.data.entities
+
+import androidx.room.Entity
+import androidx.room.PrimaryKey
+
+@Entity(tableName = "LikeTable")
+data class Like(
+ val userId : Int,
+ val albumId : Int,
+) {
+ @PrimaryKey(autoGenerate = true) var id : Int = 0
+}
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/SavedSong.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/SavedSong.kt
new file mode 100644
index 0000000..49c312d
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/SavedSong.kt
@@ -0,0 +1,9 @@
+package com.example.flo.data.entities
+
+data class SavedSong(
+ var title: String? = "",
+ var singer: String? = "",
+ var coverImg: Int? = null,
+ var isPlaying: Boolean = false,
+ var songs: ArrayList? = null
+)
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/Song.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/Song.kt
new file mode 100644
index 0000000..2ea8aed
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/Song.kt
@@ -0,0 +1,19 @@
+package com.example.flo.data.entities
+
+import androidx.room.Entity
+import androidx.room.PrimaryKey
+
+@Entity(tableName = "SongTable")
+data class Song(
+ val title : String = "",
+ val singer : String = "",
+ var second : Int = 0,
+ var playTime : Int = 0,
+ var isPlaying : Boolean = false,
+ var music : String = "",
+ var coverImg: Int? = null,
+ var isLike: Boolean = false,
+ val albumIdx : Int = 0,
+) {
+ @PrimaryKey(autoGenerate = true) var id: Int = 0
+}
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/User.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/User.kt
new file mode 100644
index 0000000..452db97
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/entities/User.kt
@@ -0,0 +1,14 @@
+package com.example.flo.data.entities
+
+import androidx.room.Entity
+import androidx.room.PrimaryKey
+import com.google.gson.annotations.SerializedName
+
+@Entity(tableName = "UserTable")
+data class User(
+ @SerializedName(value = "email") var email: String,
+ @SerializedName(value = "password") var password: String,
+ @SerializedName(value = "name") var name : String,
+) {
+ @PrimaryKey(autoGenerate = true) var id : Int= 0
+}
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/remote/AuthResponse.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/remote/AuthResponse.kt
new file mode 100644
index 0000000..6457199
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/remote/AuthResponse.kt
@@ -0,0 +1,24 @@
+package com.example.flo.data.remote
+
+import com.google.gson.annotations.SerializedName
+
+data class AuthResponse(
+ @SerializedName(value = "isSuccess") val isSuccess : Boolean,
+// @SerializedName(value = "code") val code : Int,
+ @SerializedName(value = "code") val code : String,
+ @SerializedName(value = "message") val message : String,
+ @SerializedName(value = "result") val result : Result?
+)
+
+//data class Result (
+//
+// @SerializedName(value = "memberId") val memberId : Int,
+// @SerializedName(value = "createdAt") val createdAt : String,
+// @SerializedName(value = "updatedAt") val updatedAt : String,
+//)
+
+data class Result (
+
+ @SerializedName(value = "memberId") var memberId : Int,
+ @SerializedName(value = "accessToken") var accessToken : String
+)
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/remote/AuthRetrofitInterface.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/remote/AuthRetrofitInterface.kt
new file mode 100644
index 0000000..54fb269
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/remote/AuthRetrofitInterface.kt
@@ -0,0 +1,15 @@
+package com.example.flo.data.remote
+
+import com.example.flo.login.LoginRequest
+import com.example.flo.data.entities.User
+import retrofit2.Call
+import retrofit2.http.Body
+import retrofit2.http.POST
+
+interface AuthRetrofitInterface {
+ @POST("/join")
+ fun signUp(@Body user : User) : Call
+
+ @POST("/login")
+ fun logIn(@Body loginRequest: LoginRequest) : Call
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/data/remote/AuthService.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/data/remote/AuthService.kt
new file mode 100644
index 0000000..38ccd55
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/data/remote/AuthService.kt
@@ -0,0 +1,88 @@
+package com.example.flo.data.remote
+
+import android.util.Log
+import com.example.flo.login.LogInView
+import com.example.flo.login.LoginRequest
+import com.example.flo.signup.SignUpView
+import com.example.flo.data.entities.User
+import com.example.flo.getRetrofit
+import com.google.gson.Gson
+import retrofit2.Call
+import retrofit2.Callback
+import retrofit2.Response
+
+class AuthService {
+ private lateinit var signUpView: SignUpView
+ private lateinit var logInView: LogInView
+
+ fun setSignUpView(signUpView: SignUpView) {
+ this.signUpView = signUpView
+ }
+
+ fun setLogInView(logInView: LogInView) {
+ this.logInView = logInView
+ }
+
+ fun signUp(user : User) {
+ val signUpService = getRetrofit().create(AuthRetrofitInterface::class.java)
+
+ signUpService.signUp(user).enqueue(object : Callback {
+ override fun onResponse(call: Call, response: Response) {
+ Log.d("SIGNUP/RESPONSE", response.toString())
+ Log.d("SIGNUP/RESPONSE_CODE", response.code().toString())
+ Log.d("SIGNUP/RESPONSE_BODY", response.body()?.toString() ?: "Response body is null")
+
+ val resp: AuthResponse = response.body()!!
+
+ if (resp == null || !resp.isSuccess) {
+ signUpView.onSignUpFailure()
+ return
+ }
+
+ signUpView.onSignUpSuccess()
+ }
+
+
+ override fun onFailure(call: Call, t: Throwable) {
+ Log.d("SIGNUP/FAILURE", t.message.toString())
+ signUpView.onSignUpFailure()
+ }
+ })
+
+ Log.d("SignUpActivity", "All Finished")
+ }
+
+ fun logIn(user : User) {
+ val authService = getRetrofit().create(AuthRetrofitInterface::class.java)
+
+ val loginRequest = LoginRequest(
+ email = user.email,
+ password = user.password
+ )
+
+ authService.logIn(loginRequest).enqueue(object : Callback {
+ override fun onResponse(call: Call, response: Response) {
+ Log.d("LOGIN/SUCCESS", response.toString())
+ Log.d("LOGIN/RESPONSE_CODE", response.code().toString())
+ Log.d("LOGIN/RESPONSE_BODY", response.body()?.toString() ?: "Response body is null")
+ Log.d("LOGIN/REQUEST_BODY", Gson().toJson(user))
+
+ val resp: AuthResponse = response.body()!!
+
+ if (resp == null || !resp.isSuccess) {
+ logInView.onLogInFailure()
+ return
+ }
+
+ logInView.onLogInSuccess(resp.isSuccess)
+ }
+
+ override fun onFailure(call: Call, t: Throwable) {
+ Log.d("LOGIN/FAILURE", t.message.toString())
+ logInView.onLogInFailure()
+ }
+ })
+
+ Log.d("LoginActivity", "All Finished")
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/login/GlobalApplication.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/login/GlobalApplication.kt
new file mode 100644
index 0000000..a2031d6
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/login/GlobalApplication.kt
@@ -0,0 +1,13 @@
+package com.example.flo.login
+
+import android.app.Application
+import com.kakao.sdk.common.KakaoSdk
+import com.example.flo.BuildConfig
+
+class GlobalApplication : Application() {
+ override fun onCreate() {
+ super.onCreate()
+
+ KakaoSdk.init(this, BuildConfig.NATIVE_APP_KEY)
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/login/LogInActivity.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/login/LogInActivity.kt
new file mode 100644
index 0000000..4667842
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/login/LogInActivity.kt
@@ -0,0 +1,166 @@
+package com.example.flo.login
+
+import android.content.Intent
+import android.media.session.MediaSession.Token
+import android.os.Bundle
+import android.util.Log
+import android.widget.Toast
+import androidx.appcompat.app.AppCompatActivity
+import com.example.flo.MainActivity
+import com.example.flo.signup.SignUpOptionActivity
+import com.example.flo.data.entities.User
+import com.example.flo.data.remote.AuthService
+import com.example.flo.databinding.ActivityLogInBinding
+import com.kakao.sdk.auth.model.OAuthToken
+import com.kakao.sdk.common.model.AuthErrorCause
+import com.kakao.sdk.user.UserApiClient
+
+class LogInActivity: AppCompatActivity(), LogInView {
+
+ lateinit var binding: ActivityLogInBinding
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ binding = ActivityLogInBinding.inflate(layoutInflater)
+
+ initClickListener()
+
+ setContentView(binding.root)
+ }
+
+ private fun initClickListener() {
+ binding.logInCloseBtn.setOnClickListener {
+ finish()
+ }
+
+ binding.logInToSignUpTv.setOnClickListener {
+ startActivity(Intent(this, SignUpOptionActivity::class.java))
+ }
+
+ binding.logInActivateBtn.setOnClickListener {
+ logIn()
+ }
+
+ binding.logInKakaoBtn.setOnClickListener {
+ kakaoLogin()
+ }
+ }
+
+ private fun logIn() {
+ if (binding.logInEmailEditTv.text.toString().isEmpty() || binding.logInDirectEditTv.text.toString().isEmpty()) {
+ Toast.makeText(this, "이메일을 입력하세요.", Toast.LENGTH_SHORT).show()
+ return
+ }
+
+ if (binding.logInPwEditTv.text.toString().isEmpty()) {
+ Toast.makeText(this, "비밀번호를 입력하세요.", Toast.LENGTH_SHORT).show()
+ return
+ }
+
+ val email : String = binding.logInEmailEditTv.text.toString() + "@" + binding.logInDirectEditTv.text.toString()
+ val pwd: String = binding.logInPwEditTv.text.toString()
+
+// val songDB = SongDatabase.getInstance(this)!!
+// val user = songDB.userDao().getUser(email, pwd)
+//
+// user?.let {
+// Log.d("LOGIN_ACT/GET_USER", "userId : ${user.id}, $user")
+//// saveJwt(user.id)
+// startMainActivity()
+// }
+
+ val authService = AuthService()
+ authService.setLogInView(this)
+
+ authService.logIn(User(email, pwd, ""))
+ }
+
+// private fun saveJwt(jwt: Int) {
+// val spf = getSharedPreferences("auth", MODE_PRIVATE)
+// val editor = spf.edit()
+//
+// editor.putInt("jwt", jwt)
+// editor.apply()
+// }
+
+ private fun saveJwt2(jwt: String) {
+ val spf = getSharedPreferences("auth2", MODE_PRIVATE)
+ val editor = spf.edit()
+
+ editor.putString("jwt", jwt)
+ editor.apply()
+ }
+
+ private fun startMainActivity() {
+ val intent = Intent(this, MainActivity::class.java)
+ startActivity(intent)
+ }
+
+ override fun onLogInSuccess(isSuccess: Boolean) {
+// when (code) {
+// "COMMON200" -> {
+// saveJwt2(result.accessToken)
+// startMainActivity()
+// }
+// }
+ if (isSuccess == true) {
+// saveJwt2(result.accessToken)
+ Toast.makeText(this, "로그인에 성공했습니다.", Toast.LENGTH_SHORT).show()
+ startMainActivity()
+ }
+ }
+
+ override fun onLogInFailure() {
+ Toast.makeText(this, "회원 정보가 존재하지 않습니다.", Toast.LENGTH_SHORT).show()
+ }
+
+ private fun kakaoLogin() {
+ val callback: (OAuthToken?, Throwable?) -> Unit = {token, error ->
+ if (error != null) {
+ when {
+ error.toString() == AuthErrorCause.AccessDenied.toString() -> {
+ Toast.makeText(this, "접근이 거부 됨(동의 취소)", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidClient.toString() -> {
+ Toast.makeText(this, "유효하지 않은 앱", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidGrant.toString() -> {
+ Toast.makeText(this, "인증 수단이 유효하지 않아 인증할 수 없는 상태", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidRequest.toString() -> {
+ Toast.makeText(this, "요청 파라미터 오류", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidScope.toString() -> {
+ Toast.makeText(this, "유효하지 않은 scope ID", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.Misconfigured.toString() -> {
+ Toast.makeText(this, "설정이 올바르지 않음(android key hash)", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.ServerError.toString() -> {
+ Toast.makeText(this, "서버 내부 에러", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.Unauthorized.toString() -> {
+ Toast.makeText(this, "앱이 요청 권한이 없음", Toast.LENGTH_SHORT).show()
+ }
+ else -> { // Unknown
+ Toast.makeText(this, "기타 에러", Toast.LENGTH_SHORT).show()
+ }
+ }
+ }
+ else if (token != null) {
+ Log.d("token", token.accessToken)
+ Toast.makeText(this, "로그인에 성공하였습니다.", Toast.LENGTH_SHORT).show()
+ val intent = Intent(this, MainActivity::class.java)
+ startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
+ finish()
+ }
+ }
+
+ if(UserApiClient.instance.isKakaoTalkLoginAvailable(this)){
+ UserApiClient.instance.loginWithKakaoTalk(this, callback = callback)
+ }else{
+ UserApiClient.instance.loginWithKakaoAccount(this, callback = callback)
+ }
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/login/LogInView.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/login/LogInView.kt
new file mode 100644
index 0000000..e3f77d7
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/login/LogInView.kt
@@ -0,0 +1,6 @@
+package com.example.flo.login
+
+interface LogInView {
+ fun onLogInSuccess(isSuccess: Boolean)
+ fun onLogInFailure()
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/login/LoginRequest.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/login/LoginRequest.kt
new file mode 100644
index 0000000..0304fb7
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/login/LoginRequest.kt
@@ -0,0 +1,6 @@
+package com.example.flo.login
+
+data class LoginRequest(
+ val email: String,
+ val password: String
+)
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/AlbumFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/AlbumFragment.kt
new file mode 100644
index 0000000..b798b50
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/AlbumFragment.kt
@@ -0,0 +1,138 @@
+package com.example.flo.main.album
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.appcompat.app.AppCompatActivity
+import androidx.fragment.app.Fragment
+import androidx.core.view.WindowInsetsControllerCompat
+import com.example.flo.main.home.HomeFragment
+import com.example.flo.MainActivity
+import com.example.flo.R
+import com.example.flo.data.db.SongDatabase
+import com.example.flo.data.entities.Album
+import com.example.flo.data.entities.Like
+import com.example.flo.databinding.FragmentAlbumBinding
+import com.google.android.material.tabs.TabLayoutMediator
+import com.google.gson.Gson
+
+class AlbumFragment : Fragment() {
+
+ lateinit var binding: FragmentAlbumBinding
+ private var gson: Gson = Gson()
+
+ private var information = arrayListOf("수록곡", "상세정보", "영상")
+
+ private var isLiked : Boolean = false
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentAlbumBinding.inflate(inflater, container, false)
+
+ val albumJson = arguments?.getString("album")
+ val album = gson.fromJson(albumJson, Album::class.java)
+
+ isLiked = isLikedAlbum(album.id)
+
+ setInit(album)
+ initViewPager()
+ setClickListener(album)
+
+ return binding.root
+ }
+
+ private fun setInit(album: Album) {
+ binding.albumCoverIv.setImageResource(album.coverImg!!)
+ binding.albumTitleTv.text = album.title.toString()
+ binding.albumArtistTv.text = album.singer.toString()
+
+ if (isLiked) {
+ binding.icMyLikeOffIv.setImageResource(R.drawable.ic_my_like_on)
+ } else {
+ binding.icMyLikeOffIv.setImageResource(R.drawable.ic_my_like_off)
+ }
+ }
+
+ private fun getJwt(): Int {
+ val spf = activity?.getSharedPreferences("auth", AppCompatActivity.MODE_PRIVATE)
+ return spf!!.getInt("jwt", 0)
+ }
+
+ private fun likeAlbum(userId : Int, albumId: Int) {
+ val songDB = SongDatabase.getInstance(requireContext())!!
+ val like = Like(userId, albumId)
+
+ songDB.albumDao().likeAlbum(like)
+ }
+
+ private fun disLikeAlbum(userId: Int, albumId: Int) {
+ val songDB = SongDatabase.getInstance(requireContext())!!
+// val userId = getJwt()
+
+ songDB.albumDao().disLikedAlbum(userId, albumId)
+ }
+
+ private fun isLikedAlbum(albumId: Int) : Boolean {
+ val songDB = SongDatabase.getInstance(requireContext())!!
+ val userId = getJwt()
+
+ val likeId = songDB.albumDao().isLikedAlbum(userId, albumId)
+
+ return likeId != null
+ }
+
+ private fun setClickListener(album: Album) {
+
+ val userId = getJwt()
+
+ binding.icMyLikeOffIv.setOnClickListener {
+
+ if (isLiked) {
+ binding.icMyLikeOffIv.setImageResource(R.drawable.ic_my_like_off)
+ disLikeAlbum(userId, album.id)
+ } else {
+ binding.icMyLikeOffIv.setImageResource(R.drawable.ic_my_like_on)
+ likeAlbum(userId, album.id)
+ }
+
+ isLiked = ! isLiked
+ }
+
+ binding.btnArrowBackIv.setOnClickListener {
+ (context as MainActivity).supportFragmentManager.beginTransaction().replace(R.id.main_frm, HomeFragment()).commitAllowingStateLoss()
+ }
+ }
+
+ private fun initViewPager() {
+ val albumAdapter = AlbumVpAdapter(this)
+ binding.albumContentVp.adapter = albumAdapter
+
+ TabLayoutMediator(binding.albumContentTb, binding.albumContentVp){
+ tab, position ->
+ tab.text = information[position]
+ }.attach()
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ super.onViewCreated(view, savedInstanceState)
+
+ binding.albumTitleTv.isSelected = true
+ binding.albumTitleTv.visibility = View.VISIBLE
+ }
+
+ override fun onStart() {
+ super.onStart()
+ val windowInsetsController = WindowInsetsControllerCompat(requireActivity().window, requireActivity().window.decorView)
+ windowInsetsController.isAppearanceLightStatusBars = true
+ }
+
+ override fun onStop() {
+ super.onStop()
+ val windowInsetsController = WindowInsetsControllerCompat(requireActivity().window, requireActivity().window.decorView)
+ windowInsetsController.isAppearanceLightStatusBars = false
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/AlbumRVAdapter.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/AlbumRVAdapter.kt
new file mode 100644
index 0000000..24e0e1a
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/AlbumRVAdapter.kt
@@ -0,0 +1,87 @@
+package com.example.flo.main.album
+
+import android.view.LayoutInflater
+import android.view.ViewGroup
+import androidx.recyclerview.widget.RecyclerView
+import com.example.flo.data.db.SongDatabase
+import com.example.flo.data.entities.Album
+import com.example.flo.data.entities.Song
+import com.example.flo.databinding.ItemAlbumBinding
+
+class AlbumRVAdapter(
+ private val albumList: ArrayList,
+ private val songDatabase: SongDatabase
+) : RecyclerView.Adapter() {
+
+ private lateinit var mItemClickListener: MyItemClickListener
+
+ fun setMyItemClickListener(itemClickListener: MyItemClickListener) {
+ mItemClickListener = itemClickListener
+ }
+
+ override fun onCreateViewHolder(
+ viewGroup: ViewGroup,
+ viewType: Int
+ ): ViewHolder {
+ val binding: ItemAlbumBinding =
+ ItemAlbumBinding.inflate(LayoutInflater.from(viewGroup.context), viewGroup, false)
+
+ return ViewHolder(binding)
+ }
+
+ fun addItem(album: Album) {
+ albumList.add(album)
+ notifyDataSetChanged()
+ }
+
+ fun removeItem(position: Int) {
+ albumList.removeAt(position)
+ notifyDataSetChanged()
+ }
+
+ override fun onBindViewHolder(holder: ViewHolder, position: Int) {
+ val album = albumList[position]
+ holder.bind(album)
+
+ holder.itemView.setOnClickListener {
+ mItemClickListener.onItemClick(albumList[position])
+ }
+ //holder.binding.itemAlbumTitle1Tv.setOnClickListener { mItemClickListener.onRemoveAlbum(position) }
+
+ holder.binding.itemAlbumPlayBtn.setOnClickListener {
+
+ //mItemClickListener.onItemClick(albumList[position])
+
+ val firstSong = getFirstSongInAlbum(album.id)
+ firstSong?.let { song ->
+ mItemClickListener.onPlayAlbum(song) // 첫 곡을 MainActivity로 전달
+ }
+ }
+ }
+
+ private fun getFirstSongInAlbum(albumId: Int): Song? {
+ // SongDatabase에서 해당 albumId에 맞는 첫 번째 곡을 가져옴
+ val songs = songDatabase.songDao().getSongsByAlbumId(albumId)
+ return songs.firstOrNull() // 첫 번째 곡 반환
+ }
+
+ override fun getItemCount(): Int = albumList.size
+
+ interface MyItemClickListener {
+ fun onItemClick(album: Album)
+ fun onRemoveAlbum(position: Int)
+ fun onPlayAlbum(song: Song)
+ }
+
+ interface CommunicationInterface {
+ fun sendData(song: Song)
+ }
+
+ inner class ViewHolder(val binding: ItemAlbumBinding) : RecyclerView.ViewHolder(binding.root) {
+ fun bind(album: Album) {
+ binding.itemAlbumTitleTv.text = album.title
+ binding.itemAlbumSingerTv.text = album.singer
+ binding.itemAlbumIv.setImageResource(album.coverImg!!)
+ }
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/AlbumVpAdapter.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/AlbumVpAdapter.kt
new file mode 100644
index 0000000..aebabc5
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/AlbumVpAdapter.kt
@@ -0,0 +1,17 @@
+package com.example.flo.main.album
+
+import androidx.fragment.app.Fragment
+import androidx.viewpager2.adapter.FragmentStateAdapter
+
+class AlbumVpAdapter(fragment: Fragment) : FragmentStateAdapter(fragment) {
+ override fun getItemCount(): Int = 3
+
+ override fun createFragment(position: Int): Fragment {
+ return when(position) {
+ 0 -> SongFragment()
+ 1 -> DetailFragment()
+ else -> VideoFragment()
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/DetailFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/DetailFragment.kt
new file mode 100644
index 0000000..4edc139
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/DetailFragment.kt
@@ -0,0 +1,22 @@
+package com.example.flo.main.album
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import com.example.flo.databinding.FragmentDetailBinding
+
+class DetailFragment : Fragment() {
+ lateinit var binding: FragmentDetailBinding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentDetailBinding.inflate(inflater, container, false)
+
+ return binding.root
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/SongFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/SongFragment.kt
new file mode 100644
index 0000000..261c6e0
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/SongFragment.kt
@@ -0,0 +1,40 @@
+package com.example.flo.main.album
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import com.example.flo.databinding.FragmentSongBinding
+
+class SongFragment : Fragment() {
+ lateinit var binding: FragmentSongBinding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentSongBinding.inflate(inflater, container, false)
+
+ binding.btnToggleOffIv.setOnClickListener {
+ setMixBtnStatus(false)
+ }
+
+ binding.btnToggleOnIv.setOnClickListener {
+ setMixBtnStatus(true)
+ }
+
+ return binding.root
+ }
+
+ fun setMixBtnStatus(isPlaying: Boolean) {
+ if (isPlaying) {
+ binding.btnToggleOffIv.visibility = View.VISIBLE
+ binding.btnToggleOnIv.visibility = View.INVISIBLE
+ } else {
+ binding.btnToggleOffIv.visibility = View.INVISIBLE
+ binding.btnToggleOnIv.visibility = View.VISIBLE
+ }
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/VideoFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/VideoFragment.kt
new file mode 100644
index 0000000..5c00292
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/album/VideoFragment.kt
@@ -0,0 +1,22 @@
+package com.example.flo.main.album
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import com.example.flo.databinding.FragmentVideoBinding
+
+class VideoFragment : Fragment() {
+ lateinit var binding: FragmentVideoBinding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentVideoBinding.inflate(inflater, container, false)
+
+ return binding.root
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/BannerFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/BannerFragment.kt
new file mode 100644
index 0000000..ae7010c
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/BannerFragment.kt
@@ -0,0 +1,23 @@
+package com.example.flo.main.home
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import com.example.flo.databinding.FragmentBannerBinding
+
+class BannerFragment(val imgRes : Int) : Fragment() {
+ lateinit var binding: FragmentBannerBinding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentBannerBinding.inflate(inflater, container, false)
+
+ binding.bannerImageIv.setImageResource(imgRes)
+ return binding.root
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/BannerVpAdapter.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/BannerVpAdapter.kt
new file mode 100644
index 0000000..c52d5cf
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/BannerVpAdapter.kt
@@ -0,0 +1,19 @@
+package com.example.flo.main.home
+
+import androidx.fragment.app.Fragment
+import androidx.viewpager2.adapter.FragmentStateAdapter
+
+class BannerVpAdapter(fragment: Fragment) : FragmentStateAdapter(fragment) {
+
+ private val fragmentList : ArrayList = ArrayList()
+
+ override fun getItemCount(): Int = fragmentList.size
+
+ override fun createFragment(position: Int): Fragment = fragmentList[position]
+
+ fun addFragment(fragment: Fragment) {
+ fragmentList.add(fragment)
+ notifyItemInserted(fragmentList.size - 1)
+ }
+
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomeFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomeFragment.kt
new file mode 100644
index 0000000..b5dd17c
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomeFragment.kt
@@ -0,0 +1,212 @@
+package com.example.flo.main.home
+
+import android.os.Bundle
+import android.os.Handler
+import android.os.Looper
+import android.util.Log
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import androidx.recyclerview.widget.LinearLayoutManager
+import androidx.viewpager2.widget.ViewPager2
+import com.example.flo.MainActivity
+import com.example.flo.R
+import com.example.flo.data.db.SongDatabase
+import com.example.flo.data.entities.Album
+import com.example.flo.data.entities.Song
+import com.example.flo.databinding.FragmentHomeBinding
+import com.example.flo.main.album.AlbumFragment
+import com.example.flo.main.album.AlbumRVAdapter
+import com.google.gson.Gson
+
+class HomeFragment : Fragment(), AlbumRVAdapter.CommunicationInterface {
+
+ lateinit var binding: FragmentHomeBinding
+ private var albumDatas = ArrayList()
+ private lateinit var songDB: SongDatabase
+
+ private lateinit var homePanelAdapter: HomePanelVpAdapter
+ private val slideDelay: Long = 4000
+
+ private lateinit var handler: Handler
+ private lateinit var runnable: Runnable
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentHomeBinding.inflate(inflater, container, false)
+
+// inputDummyAlbums()
+
+ songDB = SongDatabase.getInstance(requireContext())!!
+ albumDatas.addAll(songDB.albumDao().getAlbums())
+ Log.d("albumList", albumDatas.toString())
+
+// albumDatas.apply {
+// add(Album("영화 대도시의 사랑법 (Original Motion Picture Soundtrack)", "Various Artists", R.drawable.img_album_cover_1, listOf(
+// Song("Old Love", "Die Boy", 0, 251, false, "music_old_love", R.drawable.img_album_cover_1)
+// )))
+//
+// add(Album("YOUNHA 7th Album 'GROWTH THEORY'", "윤하", R.drawable.img_album_cover_3, listOf(
+// Song("맹그로브", "윤하(YOUNHA)", 0, 259, false, "music_mangrove_tree", R.drawable.img_album_cover_3)
+// )))
+//
+// add(Album("Hadestown (Original Broadway Cast Recording)", "Anais Mitchell", R.drawable.img_album_cover_2, listOf(
+// Song("Road to Hell", "André De Sheilds & Hadestown Original Broadway Company", 0, 517, false, "music_road_to_hell", R.drawable.img_album_cover_2)
+// )))
+//
+// add(Album("Dear Evan Hason (Original Broadway Cast Recording)", "Various Artists", R.drawable.img_album_cover_4, listOf(
+// Song("Anybody Have a Map?", "Rachel Bay Jones & Jennifer Laura Thompson", 0, 226, false, "music_anybody_have_a_map", R.drawable.img_album_cover_4)
+// )))
+//
+// add(Album("Kinky Boots (Original Broadway Cast Recording)", "Original Broadway Cast of Kinky Boots", R.drawable.img_album_cover_5, listOf(
+// Song("Price and Son Theme / The Most Beautiful Thing in the World", "Full Company & Kinky Boots Ensemble", 0, 620, false, "music_price_and_son_theme_the_most_beautiful_thing_in_the_world", R.drawable.img_album_cover_5)
+// )))
+// }
+
+ val albumRVAdapter = AlbumRVAdapter(albumDatas, songDB)
+ binding.homeTodayMusicAlbumRv.adapter = albumRVAdapter
+ binding.homeTodayMusicAlbumRv.layoutManager = LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false)
+
+ albumRVAdapter.setMyItemClickListener(object: AlbumRVAdapter.MyItemClickListener{
+ override fun onItemClick(album: Album) {
+ changeAlbumFragment(album)
+ }
+
+ override fun onRemoveAlbum(position: Int) {
+ albumRVAdapter.removeItem(position)
+ }
+
+ override fun onPlayAlbum(song: Song) {
+ sendData(song)
+ }
+ })
+
+ //ViewPager2 설정 (홈 상단 패널)
+ homePanelAdapter = HomePanelVpAdapter(this)
+ homePanelAdapter.addFragment(HomePanel1Fragment())
+ homePanelAdapter.addFragment(HomePanel2Fragment())
+ homePanelAdapter.addFragment(HomePanel3Fragment())
+ binding.homePanelBackgroundVp.adapter = homePanelAdapter
+ binding.homePanelBackgroundVp.orientation = ViewPager2.ORIENTATION_HORIZONTAL
+
+ //인디케이터 연결
+ val indicator = binding.homePanelIndicator
+ indicator.setViewPager(binding.homePanelBackgroundVp)
+
+ //데이터 변경 시 인디케이터 업데이트
+ homePanelAdapter.registerAdapterDataObserver(indicator.getAdapterDataObserver())
+
+ //자동 슬라이드 기능
+ setupAutoSlide()
+
+ //ViewPager2 설정 (홈 배너)
+ val bannerAdapter = BannerVpAdapter(this)
+ bannerAdapter.addFragment(BannerFragment(R.drawable.img_home_viewpager_exp))
+ bannerAdapter.addFragment(BannerFragment(R.drawable.img_home_viewpager_exp2))
+ binding.homeBannerVp.adapter = bannerAdapter
+ binding.homeBannerVp.orientation = ViewPager2.ORIENTATION_HORIZONTAL
+
+ return binding.root
+ }
+
+// private fun inputDummyAlbums() {
+// val songDB = SongDatabase.getInstance(requireContext())!!
+// albumDatas.addAll(songDB.albumDao().getAlbums())
+
+// if (songs.isNotEmpty()) return
+//
+// songDB.albumDao().insert(
+// Album(
+// 1,
+// "영화 대도시의 사랑법 (Original Motion Picture Soundtrack)",
+// "Various Artists",
+// R.drawable.img_album_cover_1,
+// )
+// )
+//
+// songDB.albumDao().insert(
+// Album(
+// 2,
+// "YOUNHA 7th Album 'GROWTH THEORY'",
+// "윤하",
+// R.drawable.img_album_cover_3
+// )
+// )
+//
+// songDB.albumDao().insert(
+// Album(
+// 3,
+// "Hadestown (Original Broadway Cast Recording)",
+// "Anais Mitchell",
+// R.drawable.img_album_cover_2
+// )
+// )
+//
+// songDB.albumDao().insert(
+// Album(
+// 4,
+// "Dear Evan Hason (Original Broadway Cast Recording)",
+// "Various Artists",
+// R.drawable.img_album_cover_4
+// )
+// )
+//
+// songDB.albumDao().insert(
+// Album(
+// 5,
+// "Kinky Boots (Original Broadway Cast Recording)",
+// "Original Broadway Cast of Kinky Boots",
+// R.drawable.img_album_cover_5
+// )
+// )
+
+// val songDBData = songDB.albumDao().getAlbums()
+// Log.d("DB data", songDBData.toString())
+// }
+
+ private fun changeAlbumFragment(album: Album) {
+ (context as MainActivity).supportFragmentManager.beginTransaction()
+ .replace(R.id.main_frm, AlbumFragment().apply {
+ arguments = Bundle().apply {
+ val gson = Gson()
+ val albumJson = gson.toJson(album)
+ putString("album", albumJson)
+ }
+ })
+ .commitAllowingStateLoss()
+ }
+
+ private fun setupAutoSlide() {
+ handler = Handler(Looper.getMainLooper())
+ runnable = object : Runnable {
+ var currentItem = 0
+
+ override fun run() {
+ if (currentItem == homePanelAdapter.itemCount) {
+ currentItem = 0 // 마지막 페이지에서 처음으로 돌아감
+ }
+ binding.homePanelBackgroundVp.currentItem = currentItem++
+ handler.postDelayed(this, slideDelay) // 슬라이드 딜레이 설정
+ }
+ }
+ handler.postDelayed(runnable, slideDelay) // 초기 딜레이 설정
+ }
+
+ override fun onDestroyView() {
+ super.onDestroyView()
+ if (::handler.isInitialized) {
+ handler.removeCallbacks(runnable)
+ }
+ }
+
+ override fun sendData(song: Song) {
+ if (activity is MainActivity) {
+ val activity = activity as MainActivity
+ activity.updateMainPlayerCl(song) // MiniPlayer 업데이트
+ }
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanel1Fragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanel1Fragment.kt
new file mode 100644
index 0000000..4569d64
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanel1Fragment.kt
@@ -0,0 +1,22 @@
+package com.example.flo.main.home
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import com.example.flo.databinding.FragmentHomepanel1Binding
+
+class HomePanel1Fragment : Fragment() {
+ lateinit var binding: FragmentHomepanel1Binding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentHomepanel1Binding.inflate(inflater, container, false)
+
+ return binding.root
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanel2Fragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanel2Fragment.kt
new file mode 100644
index 0000000..b4f3e1b
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanel2Fragment.kt
@@ -0,0 +1,22 @@
+package com.example.flo.main.home
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import com.example.flo.databinding.FragmentHomepanel2Binding
+
+class HomePanel2Fragment : Fragment() {
+ lateinit var binding: FragmentHomepanel2Binding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentHomepanel2Binding.inflate(inflater, container, false)
+
+ return binding.root
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanel3Fragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanel3Fragment.kt
new file mode 100644
index 0000000..2348847
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanel3Fragment.kt
@@ -0,0 +1,22 @@
+package com.example.flo.main.home
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import com.example.flo.databinding.FragmentHomepanel3Binding
+
+class HomePanel3Fragment : Fragment() {
+ lateinit var binding: FragmentHomepanel3Binding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentHomepanel3Binding.inflate(inflater, container, false)
+
+ return binding.root
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanelVpAdapter.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanelVpAdapter.kt
new file mode 100644
index 0000000..b63ec30
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/home/HomePanelVpAdapter.kt
@@ -0,0 +1,19 @@
+package com.example.flo.main.home
+
+import androidx.fragment.app.Fragment
+import androidx.viewpager2.adapter.FragmentStateAdapter
+
+class HomePanelVpAdapter(fragment: Fragment) : FragmentStateAdapter(fragment) {
+
+ private val fragmentList : ArrayList = ArrayList()
+
+ override fun getItemCount(): Int = fragmentList.size
+
+ override fun createFragment(position: Int): Fragment = fragmentList[position]
+
+ fun addFragment(fragment: Fragment) {
+ fragmentList.add(fragment)
+ notifyItemInserted(fragmentList.size - 1)
+ }
+
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/LockerFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/LockerFragment.kt
new file mode 100644
index 0000000..8263dad
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/LockerFragment.kt
@@ -0,0 +1,135 @@
+package com.example.flo.main.locker
+
+import android.content.Intent
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import android.widget.Toast
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.view.WindowInsetsControllerCompat
+import androidx.fragment.app.Fragment
+import com.example.flo.login.LogInActivity
+import com.example.flo.MainActivity
+import com.example.flo.databinding.FragmentLockerBinding
+import com.google.android.material.tabs.TabLayoutMediator
+import com.kakao.sdk.user.UserApiClient
+
+class LockerFragment : Fragment() {
+
+ lateinit var binding: FragmentLockerBinding
+
+ private var information = arrayListOf("저장한 곡","저장한 앨범", "음악파일")
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentLockerBinding.inflate(inflater, container, false)
+
+ val lockerAdapter = LockerVpAdapter(this)
+ binding.lockerContentVp.adapter = lockerAdapter
+
+ TabLayoutMediator(binding.lockerContentTb, binding.lockerContentVp){
+ tab, position ->
+ tab.text = information[position]
+ }.attach()
+
+ binding.lockerLoginTv.setOnClickListener {
+ startActivity(Intent(activity, LogInActivity::class.java))
+ }
+
+ return binding.root
+ }
+
+ override fun onStart() {
+ super.onStart()
+ val windowInsetsController = WindowInsetsControllerCompat(requireActivity().window, requireActivity().window.decorView)
+ windowInsetsController.isAppearanceLightStatusBars = true
+
+ initViews()
+ }
+
+ override fun onStop() {
+ super.onStop()
+ val windowInsetsController = WindowInsetsControllerCompat(requireActivity().window, requireActivity().window.decorView)
+ windowInsetsController.isAppearanceLightStatusBars = false
+ }
+
+ private fun getJwt(): Int {
+ val spf = activity?.getSharedPreferences("auth", AppCompatActivity.MODE_PRIVATE)
+ return spf!!.getInt("jwt", 0)
+ }
+
+ private fun getKakaoToken(): String? {
+ val spf = activity?.getSharedPreferences("auth3", AppCompatActivity.MODE_PRIVATE)
+ return spf?.getString("kakao_token", null)
+ }
+
+ private fun initViews() {
+ val jwt : Int = getJwt()
+ val kakaoToken = getKakaoToken()
+
+ // if (jwt == 0) {
+ // binding.lockerLoginTv.text = "로그인"
+ // binding.lockerLoginTv.setOnClickListener {
+ // startActivity(Intent(activity, LogInActivity::class.java))
+ // }
+ // } else {
+ // binding.lockerLoginTv.text = "로그아웃"
+ // binding.lockerLoginTv.setOnClickListener {
+ // logOut()
+ // startActivity(Intent(activity, MainActivity::class.java))
+ // }
+ // }
+
+ // 카카오 로그인 처리
+ if (!kakaoToken.isNullOrEmpty()) {
+ // 카카오 로그인된 상태
+ binding.lockerLoginTv.text = "로그아웃"
+ binding.lockerLoginTv.setOnClickListener {
+ kakaoLogOut()
+ }
+ }
+ // 일반 로그인 처리
+ else if (jwt != 0) {
+ // 일반 로그인된 상태
+ binding.lockerLoginTv.text = "로그아웃"
+ binding.lockerLoginTv.setOnClickListener {
+ logOut()
+ }
+ }
+ // 로그인 안 된 상태
+ else {
+ binding.lockerLoginTv.text = "로그인"
+ binding.lockerLoginTv.setOnClickListener {
+ startActivity(Intent(activity, LogInActivity::class.java))
+ }
+ }
+ }
+
+ private fun kakaoLogOut() {
+ // 카카오 로그아웃
+ UserApiClient.instance.logout { error ->
+ if (error != null) {
+ Toast.makeText(activity, "로그아웃 실패", Toast.LENGTH_SHORT).show()
+ } else {
+ // 카카오 로그아웃 후 UI 갱신
+ val spf = activity?.getSharedPreferences("auth", AppCompatActivity.MODE_PRIVATE)
+ val editor = spf?.edit()
+ editor?.remove("kakao_token") // SharedPreferences에서 카카오 토큰 제거
+ editor?.apply()
+ binding.lockerLoginTv.text = "로그인"
+ Toast.makeText(activity, "카카오 로그아웃 성공", Toast.LENGTH_SHORT).show()
+ }
+ }
+ }
+
+ private fun logOut() {
+ val spf = activity?.getSharedPreferences("auth", AppCompatActivity.MODE_PRIVATE)
+ val editor = spf!!.edit()
+ editor.remove("jwt")
+ editor.apply()
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/LockerVpAdapter.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/LockerVpAdapter.kt
new file mode 100644
index 0000000..44a1c74
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/LockerVpAdapter.kt
@@ -0,0 +1,17 @@
+package com.example.flo.main.locker
+
+import androidx.fragment.app.Fragment
+import androidx.viewpager2.adapter.FragmentStateAdapter
+
+class LockerVpAdapter(fragment: Fragment) : FragmentStateAdapter(fragment) {
+ override fun getItemCount(): Int = 3
+
+ override fun createFragment(position: Int): Fragment {
+ return when(position) {
+ 0 -> SavedSongFragment()
+ 1 -> SavedAlbumFragment()
+ else -> SongFileFragment()
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedAlbumFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedAlbumFragment.kt
new file mode 100644
index 0000000..c55fc0f
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedAlbumFragment.kt
@@ -0,0 +1,55 @@
+package com.example.flo.main.locker
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.appcompat.app.AppCompatActivity
+import androidx.fragment.app.Fragment
+import androidx.recyclerview.widget.LinearLayoutManager
+import com.example.flo.data.db.SongDatabase
+import com.example.flo.databinding.FragmentSavedAlbumBinding
+
+class SavedAlbumFragment: Fragment() {
+
+ lateinit var binding: FragmentSavedAlbumBinding
+ lateinit var albumDB: SongDatabase
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentSavedAlbumBinding.inflate(inflater, container, false)
+
+ albumDB = SongDatabase.getInstance(requireContext())!!
+
+ return binding.root
+ }
+
+ override fun onStart() {
+ super.onStart()
+ initRecyclerView()
+ }
+
+ private fun initRecyclerView() {
+ binding.lockerSavedAlbumListRv.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)
+
+ val albumRVAdapter = SavedAlbumRVAdapter(albumDB.albumDao(), getJwt())
+
+ albumRVAdapter.setMyItemClickListener(object : SavedAlbumRVAdapter.MyItemClickListener {
+ override fun onRemoveAlbum(songId: Int) {
+ albumDB.albumDao().getLikedAlbums(getJwt())
+ }
+ })
+
+ binding.lockerSavedAlbumListRv.adapter = albumRVAdapter
+
+ albumRVAdapter.addAlbums(albumDB.albumDao().getLikedAlbums(getJwt()) as ArrayList)
+ }
+
+ private fun getJwt(): Int {
+ val spf = activity?.getSharedPreferences("auth", AppCompatActivity.MODE_PRIVATE)
+ return spf!!.getInt("jwt", 0)
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedAlbumRVAdapter.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedAlbumRVAdapter.kt
new file mode 100644
index 0000000..b66faee
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedAlbumRVAdapter.kt
@@ -0,0 +1,78 @@
+package com.example.flo.main.locker
+
+import android.annotation.SuppressLint
+import android.view.LayoutInflater
+import android.view.ViewGroup
+import androidx.recyclerview.widget.RecyclerView
+import com.example.flo.data.db.AlbumDao
+import com.example.flo.data.entities.Album
+import com.example.flo.databinding.ItemSavedAlbumBinding
+
+class SavedAlbumRVAdapter(
+ private val albumDao: AlbumDao,
+ private val userId: Int) :
+ RecyclerView.Adapter() {
+
+ private val albums = ArrayList()
+
+ interface MyItemClickListener {
+ fun onRemoveAlbum(songId: Int)
+ }
+
+ private lateinit var mItemClickListener: MyItemClickListener
+
+ fun setMyItemClickListener(itemClickListener: MyItemClickListener) {
+ mItemClickListener = itemClickListener
+ }
+
+ override fun onCreateViewHolder(viewGroup: ViewGroup, viewType: Int): ViewHolder {
+ val binding: ItemSavedAlbumBinding = ItemSavedAlbumBinding.inflate(LayoutInflater.from(viewGroup.context), viewGroup, false)
+
+ return ViewHolder(binding)
+ }
+
+ override fun onBindViewHolder(holder: ViewHolder, position: Int) {
+
+ holder.bind(albums[position])
+
+ holder.binding.lockerAlbumIv.setOnClickListener {
+ val albumId = albums[position].id
+
+ albumDao.disLikedAlbum(userId, albumId)
+
+ removeAlbum(position)
+// mItemClickListener.onRemoveAlbum(albums[position].id)
+
+ mItemClickListener.onRemoveAlbum(albumId)
+ }
+ }
+
+ override fun getItemCount(): Int = albums.size
+
+ @SuppressLint("NotifyDataSetChanged")
+ fun addAlbums(albums: ArrayList) {
+ this.albums.clear()
+ this.albums.addAll(albums)
+
+ notifyDataSetChanged()
+ }
+
+ @SuppressLint("NotifyDataSetChanged")
+ fun removeAlbum(position: Int){
+ albums.removeAt(position)
+ notifyDataSetChanged()
+ }
+
+ inner class ViewHolder(val binding: ItemSavedAlbumBinding): RecyclerView.ViewHolder(binding.root) {
+
+ fun bind(album: Album) {
+ binding.lockerAlbumTitleTv.text = album.title
+ binding.lockerAlbumArtistTv.text = album.singer
+ binding.lockerAlbumIv.setImageResource(album.coverImg!!)
+
+// binding.lockerAlbumIv.setOnClickListener {
+// mItemClickListener.onRemoveAlbum(adapterPosition)
+// }
+ }
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedSongFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedSongFragment.kt
new file mode 100644
index 0000000..4f88ddd
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedSongFragment.kt
@@ -0,0 +1,89 @@
+package com.example.flo.main.locker
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import androidx.recyclerview.widget.LinearLayoutManager
+import com.example.flo.BottomSheetFragment
+import com.example.flo.R
+import com.example.flo.data.db.SongDatabase
+import com.example.flo.data.entities.Album
+import com.example.flo.data.entities.Song
+import com.example.flo.databinding.FragmentSavedsongBinding
+
+class SavedSongFragment : Fragment() {
+
+ lateinit var binding: FragmentSavedsongBinding
+ //private var savedSongDatas = ArrayList()
+ lateinit var songDB: SongDatabase
+
+ private var isAllSelected = false
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentSavedsongBinding.inflate(inflater, container, false)
+
+ songDB = SongDatabase.getInstance(requireContext())!!
+
+ val bottomSheetFragment = BottomSheetFragment()
+
+ binding.savedSongWholeSelectTv.setOnClickListener {
+
+ if (!isAllSelected) {
+ bottomSheetFragment.show(requireFragmentManager(), "BottomSheetDialog")
+ setAllSelectedState(true)
+ } else {
+ setAllSelectedState(false)
+ }
+ }
+
+ parentFragmentManager.setFragmentResultListener("deleteRequestKey", viewLifecycleOwner) {
+ _, _ -> setAllSelectedState(false)
+ }
+
+ return binding.root
+ }
+
+ private fun setAllSelectedState(selected: Boolean) {
+ isAllSelected = selected
+ if (selected) {
+ binding.savedSongWholeSelectBtn.setImageResource(R.drawable.btn_playlist_select_on)
+ binding.savedSongWholeSelectTv.text = "선택해제"
+ binding.savedSongWholeSelectTv.setTextColor(resources.getColor(R.color.select_color))
+ } else {
+ binding.savedSongWholeSelectTv.text = "전체선택"
+ binding.savedSongWholeSelectTv.setTextColor(resources.getColor(R.color.black))
+ binding.savedSongWholeSelectBtn.setImageResource(R.drawable.btn_playlist_select_off)
+ }
+ }
+
+ override fun onStart() {
+ super.onStart()
+ initRecyclerView()
+ }
+
+ private fun initRecyclerView() {
+ binding.lockerSavedSongListRv.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)
+
+ val songRVAdapter = SavedSongRVAdapter()
+
+ songRVAdapter.setMyItemClickListener(object : SavedSongRVAdapter.MyItemClickListener {
+ override fun onItemClick(album: Album) {
+
+ }
+
+ override fun onRemoveSong(songId: Int) {
+ songDB.songDao().updateIsLikeById(false, songId)
+ }
+ })
+
+ binding.lockerSavedSongListRv.adapter = songRVAdapter
+
+ songRVAdapter.addSongs(songDB.songDao().getLikedSongs(true) as ArrayList)
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedSongRVAdapter.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedSongRVAdapter.kt
new file mode 100644
index 0000000..b8c7809
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SavedSongRVAdapter.kt
@@ -0,0 +1,105 @@
+package com.example.flo.main.locker
+
+import android.annotation.SuppressLint
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.recyclerview.widget.RecyclerView
+import com.example.flo.data.entities.Album
+import com.example.flo.data.entities.Song
+import com.example.flo.databinding.ItemSavedSongBinding
+
+class SavedSongRVAdapter() :
+ RecyclerView.Adapter() {
+
+ private var song: Song = Song()
+ private var songs = ArrayList()
+
+ interface MyItemClickListener {
+ fun onItemClick(album: Album)
+ //fun onRemoveSavedSong(position: Int)
+ fun onRemoveSong(songId: Int)
+ }
+
+ private lateinit var mItemClickListener: MyItemClickListener
+
+ fun setMyItemClickListener(itemClickListener: MyItemClickListener) {
+ mItemClickListener = itemClickListener
+ }
+
+// fun removeItem(position: Int) {
+// savedSongList.removeAt(position)
+// notifyDataSetChanged()
+// }
+
+ override fun onCreateViewHolder(viewGroup: ViewGroup, viewType: Int): ViewHolder {
+ val binding: ItemSavedSongBinding = ItemSavedSongBinding.inflate(LayoutInflater.from(viewGroup.context), viewGroup, false)
+
+ return ViewHolder(binding)
+ }
+
+ override fun onBindViewHolder(holder: ViewHolder, position: Int) {
+ holder.bind(songs[position])
+ holder.binding.savedSongBtnMore.setOnClickListener {
+ //mItemClickListener.onRemoveSavedSong(position)
+
+ mItemClickListener.onRemoveSong(songs[position].id)
+ removeSong(position)
+ }
+ }
+
+ override fun getItemCount(): Int = songs.size
+
+ @SuppressLint("NotifyDataSetChanged")
+ fun addSongs(songs: ArrayList) {
+ this.songs.clear()
+ this.songs.addAll(songs)
+
+ notifyDataSetChanged()
+ }
+
+ @SuppressLint("NotifyDataSetChanged")
+ fun removeSong(position: Int) {
+ songs.removeAt(position)
+ notifyDataSetChanged()
+ }
+
+ inner class ViewHolder(val binding: ItemSavedSongBinding): RecyclerView.ViewHolder(binding.root) {
+
+ fun bind(song: Song) {
+ binding.lockerSongTitleTv.text = song.title
+ binding.lockerSongSingerTv.text = song.singer
+ binding.lockerSongIv.setImageResource(song.coverImg!!)
+
+ setPlayerStatus(song.isPlaying)
+
+ binding.savedSongPlayBtn.setOnClickListener {
+ setPlayerStatus(true)
+ song.isPlaying = true
+ notifyItemChanged(adapterPosition)
+ }
+
+ binding.savedSongPauseBtn.setOnClickListener {
+ setPlayerStatus(false)
+ song.isPlaying = false
+ notifyItemChanged(adapterPosition)
+ }
+
+ binding.savedSongBtnMore.setOnClickListener {
+ //mItemClickListener.onRemoveSavedSong(adapterPosition)
+ }
+ }
+
+ fun setPlayerStatus(isPlaying: Boolean) {
+ song.isPlaying = isPlaying
+
+ if (isPlaying) {
+ binding.savedSongPlayBtn.visibility = View.INVISIBLE
+ binding.savedSongPauseBtn.visibility = View.VISIBLE
+ } else {
+ binding.savedSongPlayBtn.visibility = View.VISIBLE
+ binding.savedSongPauseBtn.visibility = View.INVISIBLE
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SongFileFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SongFileFragment.kt
new file mode 100644
index 0000000..c5011a2
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/locker/SongFileFragment.kt
@@ -0,0 +1,23 @@
+package com.example.flo.main.locker
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import com.example.flo.databinding.FragmentSongfileBinding
+
+class SongFileFragment : Fragment() {
+
+ lateinit var binding: FragmentSongfileBinding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentSongfileBinding.inflate(inflater, container, false)
+
+ return binding.root
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/look/ChartSong.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/look/ChartSong.kt
new file mode 100644
index 0000000..ed84502
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/look/ChartSong.kt
@@ -0,0 +1,8 @@
+package com.example.flo.main.look
+
+data class ChartSong(
+ val title: String,
+ val singer: String,
+ var coverImg: Int? = null,
+ var num: String,
+)
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/look/ChartSongRVAdapter.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/look/ChartSongRVAdapter.kt
new file mode 100644
index 0000000..040a907
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/look/ChartSongRVAdapter.kt
@@ -0,0 +1,27 @@
+package com.example.flo.main.look
+
+import android.view.LayoutInflater
+import android.view.ViewGroup
+import androidx.recyclerview.widget.RecyclerView
+import com.example.flo.databinding.ItemChartSongBinding
+
+class ChartSongRVAdapter(private val chartSong: List) : RecyclerView.Adapter() {
+
+ class ChartSongViewHolder(val binding: ItemChartSongBinding) : RecyclerView.ViewHolder(binding.root)
+
+ override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ChartSongViewHolder {
+ val binding = ItemChartSongBinding.inflate(LayoutInflater.from(parent.context), parent, false)
+ return ChartSongViewHolder(binding)
+ }
+
+ override fun onBindViewHolder(holder: ChartSongViewHolder, position: Int) {
+ val chartSong = chartSong[position]
+ holder.binding.itemChartSongTitleTv.text = chartSong.title
+ holder.binding.itemChartSongSingerTv.text = chartSong.singer
+ holder.binding.itemChartSongAlbumCoverIv.setImageResource(chartSong.coverImg!!)
+ holder.binding.itemChartSongNumTv.text = chartSong.num
+ }
+
+ override fun getItemCount(): Int = chartSong.size
+
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/look/LookFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/look/LookFragment.kt
new file mode 100644
index 0000000..8ffae21
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/look/LookFragment.kt
@@ -0,0 +1,49 @@
+package com.example.flo.main.look
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.core.view.WindowInsetsControllerCompat
+import androidx.fragment.app.Fragment
+import androidx.recyclerview.widget.LinearLayoutManager
+import com.example.flo.R
+import com.example.flo.databinding.FragmentLookBinding
+
+class LookFragment : Fragment() {
+
+ lateinit var binding: FragmentLookBinding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentLookBinding.inflate(inflater, container, false)
+
+ val chartSongs = listOf(
+ ChartSong("Whiplash", "aespa", R.drawable.img_chart_song_album_cover_1, "1"),
+ ChartSong("APT.", "로제 (ROSÉ) & Bruno Mars", R.drawable.img_chart_song_album_cover_2, "2"),
+ ChartSong("HAPPY", "DAY6 (데이식스)", R.drawable.img_chart_song_album_cover_3, "3"),
+ ChartSong("Drowning", "WOODZ", R.drawable.img_chart_song_album_cover_4, "4"),
+ ChartSong("UP (KARINA Solo)", "aespa", R.drawable.img_chart_song_album_cover_5, "5"),
+ )
+
+ val adapter = ChartSongRVAdapter(chartSongs)
+ binding.lookChartRv.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)
+ binding.lookChartRv.adapter = adapter
+
+ return binding.root
+ }
+ override fun onStart() {
+ super.onStart()
+ val windowInsetsController = WindowInsetsControllerCompat(requireActivity().window, requireActivity().window.decorView)
+ windowInsetsController.isAppearanceLightStatusBars = true
+ }
+
+ override fun onStop() {
+ super.onStop()
+ val windowInsetsController = WindowInsetsControllerCompat(requireActivity().window, requireActivity().window.decorView)
+ windowInsetsController.isAppearanceLightStatusBars = false
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/search/SearchFragment.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/search/SearchFragment.kt
new file mode 100644
index 0000000..5222672
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/search/SearchFragment.kt
@@ -0,0 +1,35 @@
+package com.example.flo.main.search
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.core.view.WindowInsetsControllerCompat
+import androidx.fragment.app.Fragment
+import com.example.flo.databinding.FragmentSearchBinding
+
+class SearchFragment : Fragment() {
+
+ lateinit var binding: FragmentSearchBinding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ binding = FragmentSearchBinding.inflate(inflater, container, false)
+
+ return binding.root
+ }
+ override fun onStart() {
+ super.onStart()
+ val windowInsetsController = WindowInsetsControllerCompat(requireActivity().window, requireActivity().window.decorView)
+ windowInsetsController.isAppearanceLightStatusBars = true
+ }
+
+ override fun onStop() {
+ super.onStop()
+ val windowInsetsController = WindowInsetsControllerCompat(requireActivity().window, requireActivity().window.decorView)
+ windowInsetsController.isAppearanceLightStatusBars = false
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/main/song/SongActivity.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/main/song/SongActivity.kt
new file mode 100644
index 0000000..3b5e74f
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/main/song/SongActivity.kt
@@ -0,0 +1,290 @@
+package com.example.flo.main.song
+
+import android.media.MediaPlayer
+import androidx.appcompat.app.AppCompatActivity
+import android.os.Bundle
+import android.util.Log
+import android.view.View
+import com.example.flo.CustomSnackbar
+import com.example.flo.R
+import com.example.flo.data.db.SongDatabase
+import com.example.flo.data.entities.Song
+import com.example.flo.databinding.ActivitySongBinding
+import com.google.gson.Gson
+
+class SongActivity: AppCompatActivity() {
+
+ lateinit var binding : ActivitySongBinding
+ //lateinit var song : Song
+ lateinit var timer : Timer
+ private var mediaPlayer: MediaPlayer? = null
+ private var gson: Gson = Gson()
+ private var isRepeat = false
+
+ val songs = arrayListOf()
+ lateinit var songDB: SongDatabase
+ var nowPos = 0
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ binding = ActivitySongBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ initPlayList()
+ initSong()
+ initClickListener()
+ //setPlayer(song)
+ }
+
+ private fun initPlayList() {
+ songDB = SongDatabase.getInstance(this)!!
+ songs.addAll(songDB.songDao().getSongs())
+ }
+
+ private fun initClickListener() {
+ binding.nuguBtnDownIv.setOnClickListener {
+ finish()
+// Toast.makeText(this, intent.getStringExtra("title"), Toast.LENGTH_SHORT).show()
+ }
+
+ binding.nuguBtnPlayIv.setOnClickListener {
+ setPlayerStatus(true)
+ }
+ binding.nuguBtnPauseIv.setOnClickListener {
+ setPlayerStatus(false)
+ }
+
+ binding.nuguBtnRepeatActiveIv.setOnClickListener {
+ setRepeatStatus(false)
+ }
+ binding.nuguBtnRepeatInactiveIv.setOnClickListener {
+ setRepeatStatus(true)
+ }
+
+ binding.nuguBtnRandomActiveIv.setOnClickListener {
+ setRandomStatus(false)
+ }
+ binding.nuguBtnRandomInactiveIv.setOnClickListener {
+ setRandomStatus(true)
+ }
+
+ binding.nuguBtnSkipNextIv.setOnClickListener {
+ moveSong(+1)
+ }
+
+ binding.nuguBtnSkipPreviousIv.setOnClickListener {
+ moveSong(-1)
+ }
+
+ binding.likeIconIv.setOnClickListener {
+ setLike(songs[nowPos].isLike)
+ }
+ }
+
+ private fun initSong() {
+
+ val spf = getSharedPreferences("song", MODE_PRIVATE)
+ val songId = spf.getInt("songId", 0)
+
+ nowPos = getPlayingSongPosition(songId)
+
+ Log.d("now Song ID", songs[nowPos].id.toString())
+
+ startTimer()
+ setPlayer(songs[nowPos])
+ }
+
+ private fun moveSong(direct: Int) {
+ if (nowPos + direct < 0) {
+ //Toast.makeText(this, "first song", Toast.LENGTH_SHORT).show()
+ CustomSnackbar.make(binding.root, "처음 곡입니다.").show()
+ return
+ }
+
+ if (nowPos + direct >= songs.size) {
+ //Toast.makeText(this, "last song", Toast.LENGTH_SHORT).show()
+ CustomSnackbar.make(binding.root, "마지막 곡입니다.").show()
+ return
+ }
+
+ nowPos += direct
+
+ timer.interrupt()
+ startTimer()
+
+ mediaPlayer?.release()
+ mediaPlayer = null
+
+ setPlayer(songs[nowPos])
+ }
+
+ private fun getPlayingSongPosition(songId: Int): Int {
+ for (i in 0 until songs.size) {
+ if (songs[i].id == songId) {
+ return i
+ }
+ }
+ return 0
+ }
+
+ private fun setPlayer(song : Song) {
+ binding.songTitleTv.text = song.title
+ binding.songSingerTv.text = song.singer
+ binding.albumCoverMainIv.setImageResource(song.coverImg!!)
+ binding.songStartTimeTv.text = String.format("%02d:%02d", song.second / 60, song.second % 60)
+ binding.songEndTimeTv.text = String.format("%02d:%02d", song.playTime / 60, song.playTime % 60)
+
+ val music = resources.getIdentifier(song.music, "raw", this.packageName)
+ mediaPlayer = MediaPlayer.create(this, music)
+
+ song.playTime = mediaPlayer?.duration?.div(1000) ?: 0
+
+ binding.songSeekbar.max = mediaPlayer?.duration ?: 0
+ binding.songSeekbar.progress = song.second
+
+ if (song.isLike) {
+ binding.likeIconIv.setImageResource(R.drawable.ic_my_like_on)
+ } else {
+ binding.likeIconIv.setImageResource(R.drawable.ic_my_like_off)
+ }
+
+ setPlayerStatus(song.isPlaying)
+ }
+
+ fun setPlayerStatus(isPlaying: Boolean) {
+// song.isPlaying = isPlaying
+ songs[nowPos].isPlaying = isPlaying
+ timer.isPlaying = isPlaying
+
+ if (isPlaying) {
+ if (timer.state == Thread.State.TERMINATED) {
+ startTimer()
+ }
+ binding.nuguBtnPlayIv.visibility = View.INVISIBLE
+ binding.nuguBtnPauseIv.visibility = View.VISIBLE
+ mediaPlayer?.start()
+ } else {
+ binding.nuguBtnPlayIv.visibility = View.VISIBLE
+ binding.nuguBtnPauseIv.visibility = View.INVISIBLE
+
+ if(mediaPlayer?.isPlaying == true) {
+ mediaPlayer?.pause()
+ }
+ }
+ }
+
+ override fun onPause() {
+ super.onPause()
+ setPlayerStatus(false)
+ songs[nowPos].second = mediaPlayer?.currentPosition?.div(1000) ?: 0
+
+ val sharedPreferences = getSharedPreferences("song", MODE_PRIVATE)
+ val editor = sharedPreferences.edit() //에디터
+
+ editor.putInt("songId", songs[nowPos].id)
+ editor.putInt("second", songs[nowPos].second)
+ editor.apply()
+ }
+
+ override fun onDestroy() {
+ super.onDestroy()
+ timer.interrupt()
+ mediaPlayer?.release() //미디어 플레이어가 갖고 있던 리소스 해제
+ mediaPlayer = null //미디어 플레이어 해제
+ }
+
+ inner class Timer(private val playTime : Int, var isPlaying : Boolean = true):Thread() {
+ private var second : Int = 0
+ //private var milis : Float = 0f
+// private var milis: Float = (song.second * 1000).toFloat() // 시작 위치 설정
+ private var milis: Float = (songs[nowPos].second * 1000).toFloat()
+
+ override fun run() {
+ super.run()
+ try {
+ while (true) {
+ if (second >= playTime) {
+ runOnUiThread {
+ setPlayerStatus(false) // 음악 멈추기
+
+ if (isRepeat) {
+ resetPlayer() // 반복 재생 시 재시작
+ setPlayerStatus(true)
+ } else {
+ resetPlayer() // 반복 재생이 아닐 때 0으로 초기화
+ }
+ }
+ break
+ }
+ if (isPlaying) {
+ sleep(10) // 10 밀리초 대기
+ milis += 10 // 밀리초 증가
+
+ runOnUiThread {
+ //binding.songSeekbar.progress = ((milis / (playTime) * 1000) * 100).toInt()
+ binding.songSeekbar.progress = mediaPlayer?.currentPosition ?: 0 // SeekBar 진행 업데이트
+ }
+
+ if (milis % 1000 == 0f) { // 1초마다
+ runOnUiThread {
+ binding.songStartTimeTv.text = String.format("%02d:%02d", second / 60, second % 60) // 시간 표시 업데이트
+ }
+ second ++ // 초 증가
+ }
+ }
+ }
+ } catch(e : InterruptedException) {
+ Log.d("Song", "스레드가 죽었습니다. ${e.message}")
+ }
+ }
+ }
+
+ private fun setLike(isLike: Boolean) {
+ songs[nowPos].isLike = !isLike
+ songDB.songDao().updateIsLikeById(!isLike, songs[nowPos].id)
+
+ if (!isLike) {
+ binding.likeIconIv.setImageResource(R.drawable.ic_my_like_on)
+ CustomSnackbar.make(binding.root, "좋아요 한 곡에 담겼습니다.").show()
+ } else {
+ binding.likeIconIv.setImageResource(R.drawable.ic_my_like_off)
+ CustomSnackbar.make(binding.root, "좋아요 한 곡이 취소되었습니다.").show()
+ }
+ }
+
+ private fun startTimer() {
+// timer = Timer(song.playTime, song.isPlaying)
+ timer = Timer(songs[nowPos].playTime, songs[nowPos].isPlaying)
+ timer.start()
+ }
+
+ private fun resetPlayer() {
+// song.second = 0
+ songs[nowPos].second = 0
+ binding.songSeekbar.progress = 0
+ binding.songStartTimeTv.text = "00:00"
+ mediaPlayer?.seekTo(0)
+ }
+
+ fun setRepeatStatus(isRepeat: Boolean) {
+ this.isRepeat = isRepeat
+ if (isRepeat) {
+ binding.nuguBtnRepeatActiveIv.visibility = View.VISIBLE
+ binding.nuguBtnRepeatInactiveIv.visibility = View.INVISIBLE
+ } else {
+ binding.nuguBtnRepeatActiveIv.visibility = View.INVISIBLE
+ binding.nuguBtnRepeatInactiveIv.visibility = View.VISIBLE
+ }
+ }
+
+ fun setRandomStatus(isRandom: Boolean) {
+ if (isRandom) {
+ binding.nuguBtnRandomActiveIv.visibility = View.VISIBLE
+ binding.nuguBtnRandomInactiveIv.visibility = View.INVISIBLE
+ } else {
+ binding.nuguBtnRandomActiveIv.visibility = View.INVISIBLE
+ binding.nuguBtnRandomInactiveIv.visibility = View.VISIBLE
+ }
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/signup/SignUpActivity.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/signup/SignUpActivity.kt
new file mode 100644
index 0000000..d8df789
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/signup/SignUpActivity.kt
@@ -0,0 +1,76 @@
+package com.example.flo.signup
+
+import android.content.Intent
+import android.os.Bundle
+import android.widget.Toast
+import androidx.appcompat.app.AppCompatActivity
+import com.example.flo.data.entities.User
+import com.example.flo.data.remote.AuthService
+import com.example.flo.databinding.ActivitySignUpBinding
+import com.example.flo.login.LogInActivity
+
+class SignUpActivity: AppCompatActivity(), SignUpView {
+
+ lateinit var binding: ActivitySignUpBinding
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ binding = ActivitySignUpBinding.inflate(layoutInflater)
+
+ initClickListener()
+
+ setContentView(binding.root)
+ }
+
+ private fun initClickListener() {
+ binding.signUpBackBtn.setOnClickListener {
+ finish()
+ }
+
+ binding.signUpCompleteBtn.setOnClickListener {
+ signUp()
+// startActivity(Intent(this, LogInActivity::class.java))
+ }
+ }
+
+ private fun getUser() : User {
+ val email : String = binding.signUpEmailEditTv.text.toString() + "@" + binding.signUpDirectEditTv.text.toString()
+ val pwd: String = binding.signUpPwEditTv.text.toString()
+ val name : String = binding.signUpNameEditTv.text.toString()
+
+ return User(email, pwd, name)
+ }
+
+ private fun signUp() {
+ if (binding.signUpEmailEditTv.text.toString().isEmpty() || binding.signUpDirectEditTv.text.toString().isEmpty()) {
+ Toast.makeText(this, "이메일 형식이 잘못되었습니다.", Toast.LENGTH_SHORT).show()
+ return
+ }
+
+ if (binding.signUpPwEditTv.text.toString() != binding.logInPwCheckEditTv.text.toString()) {
+ Toast.makeText(this, "비밀번호가 일치하지 않습니다.", Toast.LENGTH_SHORT).show()
+ return
+ }
+
+ if (binding.signUpNameEditTv.text.toString().isEmpty() || binding.signUpDirectEditTv.text.toString().isEmpty()) {
+ Toast.makeText(this, "이름 형식이 잘못되었습니다.", Toast.LENGTH_SHORT).show()
+ return
+ }
+
+ val authService = AuthService()
+ authService.setSignUpView(this)
+
+ authService.signUp(getUser())
+ }
+
+ override fun onSignUpSuccess() {
+ Toast.makeText(this, "회원 가입에 성공했습니다.", Toast.LENGTH_SHORT).show()
+ startActivity(Intent(this, LogInActivity::class.java))
+ finish()
+ }
+
+ override fun onSignUpFailure() {
+ Toast.makeText(this, "회원가입에 실패했습니다. 다시 시도해주세요.", Toast.LENGTH_SHORT).show()
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/signup/SignUpOptionActivity.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/signup/SignUpOptionActivity.kt
new file mode 100644
index 0000000..67b075a
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/signup/SignUpOptionActivity.kt
@@ -0,0 +1,139 @@
+package com.example.flo.signup
+
+import android.content.Intent
+import android.os.Bundle
+import android.util.Log
+import android.widget.Toast
+import androidx.appcompat.app.AppCompatActivity
+import com.example.flo.MainActivity
+import com.example.flo.UserInfoDialog
+import com.example.flo.databinding.ActivitySignUpOptionBinding
+import com.kakao.sdk.auth.model.OAuthToken
+import com.kakao.sdk.common.model.AuthErrorCause
+import com.kakao.sdk.user.UserApiClient
+import com.kakao.sdk.user.model.User as KakaoUser
+
+class SignUpOptionActivity: AppCompatActivity() {
+
+ lateinit var binding: ActivitySignUpOptionBinding
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ binding = ActivitySignUpOptionBinding.inflate(layoutInflater)
+
+ initClickListener()
+
+ setContentView(binding.root)
+ }
+
+ private fun initClickListener() {
+ binding.signUpBackBtn.setOnClickListener {
+ finish()
+ }
+
+ binding.signUpEmailBtn.setOnClickListener {
+ startActivity(Intent(this, SignUpActivity::class.java))
+ }
+
+ binding.signUpKakaoBtn.setOnClickListener {
+ kakaoLogin()
+ }
+ }
+
+ private fun kakaoLogin() {
+ val callback: (OAuthToken?, Throwable?) -> Unit = { token, error ->
+ if (error != null) {
+ when {
+ error.toString() == AuthErrorCause.AccessDenied.toString() -> {
+ Toast.makeText(this, "접근이 거부 됨(동의 취소)", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidClient.toString() -> {
+ Toast.makeText(this, "유효하지 않은 앱", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidGrant.toString() -> {
+ Toast.makeText(this, "인증 수단이 유효하지 않아 인증할 수 없는 상태", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidRequest.toString() -> {
+ Toast.makeText(this, "요청 파라미터 오류", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.InvalidScope.toString() -> {
+ Toast.makeText(this, "유효하지 않은 scope ID", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.Misconfigured.toString() -> {
+ Toast.makeText(this, "설정이 올바르지 않음(android key hash)", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.ServerError.toString() -> {
+ Toast.makeText(this, "서버 내부 에러", Toast.LENGTH_SHORT).show()
+ }
+ error.toString() == AuthErrorCause.Unauthorized.toString() -> {
+ Toast.makeText(this, "앱이 요청 권한이 없음", Toast.LENGTH_SHORT).show()
+ }
+ else -> { // Unknown
+ Toast.makeText(this, "기타 에러", Toast.LENGTH_SHORT).show()
+ }
+ }
+ }
+ else if (token != null) {
+ Log.d("token", token.accessToken)
+ val spf = getSharedPreferences("auth3", MODE_PRIVATE)
+ val editor = spf.edit()
+ editor.putString("kakao_token", token.accessToken)
+ editor.apply()
+ // Toast.makeText(this, "로그인에 성공하였습니다.", Toast.LENGTH_SHORT).show()
+ // val intent = Intent(this, MainActivity::class.java)
+ // startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
+ // finish()
+
+ getKakaoUserInfo()
+ }
+ }
+
+ // if(UserApiClient.instance.isKakaoTalkLoginAvailable(this)){
+ // UserApiClient.instance.loginWithKakaoTalk(this, callback = callback)
+ // }else{
+ // UserApiClient.instance.loginWithKakaoAccount(this, callback = callback)
+ // }
+
+ if (UserApiClient.instance.isKakaoTalkLoginAvailable(this)) {
+ UserApiClient.instance.loginWithKakaoTalk(this, callback = callback)
+ } else {
+ // 이메일 권한을 요청하면서 로그인
+ UserApiClient.instance.loginWithKakaoAccount(this) { token, error ->
+ if (error != null) {
+ Toast.makeText(this, "로그인 실패", Toast.LENGTH_SHORT).show()
+ } else if (token != null) {
+ // 이메일 권한이 이미 동의된 경우 정보 가져오기
+ getKakaoUserInfo()
+ }
+ }
+ }
+ }
+
+ private fun getKakaoUserInfo() {
+ UserApiClient.instance.me { kakaoUser, error ->
+ if (error != null) {
+ Toast.makeText(this, "사용자 정보 요청 실패", Toast.LENGTH_SHORT).show()
+ } else if (kakaoUser != null) {
+ // 사용자 정보를 가져왔으므로 팝업창을 띄웁니다
+ showUserInfoPopup(kakaoUser)
+ }
+ }
+ }
+
+ private fun showUserInfoPopup(kakaoUser: KakaoUser) {
+ val nickname = kakaoUser.kakaoAccount?.profile?.nickname
+ val profileImageUrl = kakaoUser.kakaoAccount?.profile?.profileImageUrl
+ val email = kakaoUser.kakaoAccount?.email
+
+ // 사용자 정보를 팝업창으로 띄우기
+ val dialog = UserInfoDialog(this, nickname, profileImageUrl, email)
+ dialog.setOnConfirmListener {
+ // CONFIRM 버튼 클릭 시 메인 액티비티로 이동
+ val intent = Intent(this, MainActivity::class.java)
+ startActivity(intent)
+ finish() // 현재 액티비티 종료
+ }
+ dialog.show()
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/java/com/example/flo/signup/SignUpView.kt b/joy/week10_FLO/app/src/main/java/com/example/flo/signup/SignUpView.kt
new file mode 100644
index 0000000..1142ece
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/java/com/example/flo/signup/SignUpView.kt
@@ -0,0 +1,6 @@
+package com.example.flo.signup
+
+interface SignUpView {
+ fun onSignUpSuccess()
+ fun onSignUpFailure()
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/anim/anim_fade_out.xml b/joy/week10_FLO/app/src/main/res/anim/anim_fade_out.xml
new file mode 100644
index 0000000..79a34a8
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/anim/anim_fade_out.xml
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/anim/anim_slide_in_from_left_fade_in.xml b/joy/week10_FLO/app/src/main/res/anim/anim_slide_in_from_left_fade_in.xml
new file mode 100644
index 0000000..6a0ed13
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/anim/anim_slide_in_from_left_fade_in.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/anim/anim_slide_in_from_right_fade_in.xml b/joy/week10_FLO/app/src/main/res/anim/anim_slide_in_from_right_fade_in.xml
new file mode 100644
index 0000000..bacd742
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/anim/anim_slide_in_from_right_fade_in.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/anim/fade_in.xml b/joy/week10_FLO/app/src/main/res/anim/fade_in.xml
new file mode 100644
index 0000000..2326c33
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/anim/fade_in.xml
@@ -0,0 +1,5 @@
+
+
diff --git a/joy/week10_FLO/app/src/main/res/anim/fade_out.xml b/joy/week10_FLO/app/src/main/res/anim/fade_out.xml
new file mode 100644
index 0000000..7b217c4
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/anim/fade_out.xml
@@ -0,0 +1,5 @@
+
+
diff --git a/joy/week10_FLO/app/src/main/res/anim/slide_in_left.xml b/joy/week10_FLO/app/src/main/res/anim/slide_in_left.xml
new file mode 100644
index 0000000..2a14f9d
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/anim/slide_in_left.xml
@@ -0,0 +1,5 @@
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/anim/slide_in_right.xml b/joy/week10_FLO/app/src/main/res/anim/slide_in_right.xml
new file mode 100644
index 0000000..8808e77
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/anim/slide_in_right.xml
@@ -0,0 +1,5 @@
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/anim/slide_out_left.xml b/joy/week10_FLO/app/src/main/res/anim/slide_out_left.xml
new file mode 100644
index 0000000..719f131
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/anim/slide_out_left.xml
@@ -0,0 +1,5 @@
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/anim/slide_out_right.xml b/joy/week10_FLO/app/src/main/res/anim/slide_out_right.xml
new file mode 100644
index 0000000..dc04392
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/anim/slide_out_right.xml
@@ -0,0 +1,5 @@
+
+
diff --git a/joy/week10_FLO/app/src/main/res/color/tab_text_style.xml b/joy/week10_FLO/app/src/main/res/color/tab_text_style.xml
new file mode 100644
index 0000000..a76e978
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/color/tab_text_style.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/joy/week10_FLO/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/apple_44.png b/joy/week10_FLO/app/src/main/res/drawable/apple_44.png
new file mode 100644
index 0000000..f365d20
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/apple_44.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/apple_logo.png b/joy/week10_FLO/app/src/main/res/drawable/apple_logo.png
new file mode 100644
index 0000000..f93fac5
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/apple_logo.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btm_color_selector.xml b/joy/week10_FLO/app/src/main/res/drawable/btm_color_selector.xml
new file mode 100644
index 0000000..a9ae2b2
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/btm_color_selector.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_actionbar_close.png b/joy/week10_FLO/app/src/main/res/drawable/btn_actionbar_close.png
new file mode 100644
index 0000000..b6cc3cc
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_actionbar_close.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_actionbar_instagram.png b/joy/week10_FLO/app/src/main/res/drawable/btn_actionbar_instagram.png
new file mode 100644
index 0000000..90bc027
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_actionbar_instagram.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_arrow_back.xml b/joy/week10_FLO/app/src/main/res/drawable/btn_arrow_back.xml
new file mode 100644
index 0000000..af62026
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/btn_arrow_back.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_arrow_black.png b/joy/week10_FLO/app/src/main/res/drawable/btn_arrow_black.png
new file mode 100644
index 0000000..cc38ca8
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_arrow_black.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_arrow_more.png b/joy/week10_FLO/app/src/main/res/drawable/btn_arrow_more.png
new file mode 100644
index 0000000..59e410c
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_arrow_more.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_add.png b/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_add.png
new file mode 100644
index 0000000..26ffa13
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_add.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_addplaylist.png b/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_addplaylist.png
new file mode 100644
index 0000000..a1180c2
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_addplaylist.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_delete.png b/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_delete.png
new file mode 100644
index 0000000..3417786
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_delete.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_download.png b/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_download.png
new file mode 100644
index 0000000..f295699
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_download.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_play.png b/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_play.png
new file mode 100644
index 0000000..c244c21
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_editbar_play.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_input_password.png b/joy/week10_FLO/app/src/main/res/drawable/btn_input_password.png
new file mode 100644
index 0000000..8c2eb18
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_input_password.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_input_password_off.png b/joy/week10_FLO/app/src/main/res/drawable/btn_input_password_off.png
new file mode 100644
index 0000000..8234f53
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_input_password_off.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_main_arrow_more.png b/joy/week10_FLO/app/src/main/res/drawable/btn_main_arrow_more.png
new file mode 100644
index 0000000..59e410c
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_main_arrow_more.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_main_mike.png b/joy/week10_FLO/app/src/main/res/drawable/btn_main_mike.png
new file mode 100644
index 0000000..9bddec6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_main_mike.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_main_setting.png b/joy/week10_FLO/app/src/main/res/drawable/btn_main_setting.png
new file mode 100644
index 0000000..7a8d5d6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_main_setting.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_main_ticket.png b/joy/week10_FLO/app/src/main/res/drawable/btn_main_ticket.png
new file mode 100644
index 0000000..52b6d64
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_main_ticket.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_miniplay_mvpause.png b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplay_mvpause.png
new file mode 100644
index 0000000..470e046
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplay_mvpause.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_miniplay_mvplay.png b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplay_mvplay.png
new file mode 100644
index 0000000..d118677
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplay_mvplay.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_miniplay_pause.png b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplay_pause.png
new file mode 100644
index 0000000..470e046
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplay_pause.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_go_list.png b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_go_list.png
new file mode 100644
index 0000000..1b2d977
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_go_list.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_next.png b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_next.png
new file mode 100644
index 0000000..3aedba3
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_next.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_play.png b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_play.png
new file mode 100644
index 0000000..f619072
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_play.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_previous.png b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_previous.png
new file mode 100644
index 0000000..d0bf1f6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_miniplayer_previous.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_nugu.png b/joy/week10_FLO/app/src/main/res/drawable/btn_nugu.png
new file mode 100644
index 0000000..9bddec6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_nugu.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_panel_play_large.png b/joy/week10_FLO/app/src/main/res/drawable/btn_panel_play_large.png
new file mode 100644
index 0000000..4ac7103
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_panel_play_large.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_player_eq_off.png b/joy/week10_FLO/app/src/main/res/drawable/btn_player_eq_off.png
new file mode 100644
index 0000000..f23d9c6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_player_eq_off.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_player_go_list.png b/joy/week10_FLO/app/src/main/res/drawable/btn_player_go_list.png
new file mode 100644
index 0000000..1b2d977
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_player_go_list.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_player_more.png b/joy/week10_FLO/app/src/main/res/drawable/btn_player_more.png
new file mode 100644
index 0000000..a8ad9e6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_player_more.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_player_play.png b/joy/week10_FLO/app/src/main/res/drawable/btn_player_play.png
new file mode 100644
index 0000000..f6c3201
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_player_play.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_player_related.png b/joy/week10_FLO/app/src/main/res/drawable/btn_player_related.png
new file mode 100644
index 0000000..9026fe5
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_player_related.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_player_setting.png b/joy/week10_FLO/app/src/main/res/drawable/btn_player_setting.png
new file mode 100644
index 0000000..0df8f69
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_player_setting.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_player_unlike_off.png b/joy/week10_FLO/app/src/main/res/drawable/btn_player_unlike_off.png
new file mode 100644
index 0000000..b539504
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_player_unlike_off.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_player_unlike_on.png b/joy/week10_FLO/app/src/main/res/drawable/btn_player_unlike_on.png
new file mode 100644
index 0000000..45a43ca
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_player_unlike_on.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_playlist_select_off.png b/joy/week10_FLO/app/src/main/res/drawable/btn_playlist_select_off.png
new file mode 100644
index 0000000..62ef45c
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_playlist_select_off.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_playlist_select_on.png b/joy/week10_FLO/app/src/main/res/drawable/btn_playlist_select_on.png
new file mode 100644
index 0000000..2d3b6af
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_playlist_select_on.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_setting_phone.png b/joy/week10_FLO/app/src/main/res/drawable/btn_setting_phone.png
new file mode 100644
index 0000000..d6de4c6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_setting_phone.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_textbox_close.png b/joy/week10_FLO/app/src/main/res/drawable/btn_textbox_close.png
new file mode 100644
index 0000000..10f1f63
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_textbox_close.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_titlebar_close.png b/joy/week10_FLO/app/src/main/res/drawable/btn_titlebar_close.png
new file mode 100644
index 0000000..6615def
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_titlebar_close.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_toggle_off.png b/joy/week10_FLO/app/src/main/res/drawable/btn_toggle_off.png
new file mode 100644
index 0000000..983360d
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_toggle_off.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/btn_toggle_on.png b/joy/week10_FLO/app/src/main/res/drawable/btn_toggle_on.png
new file mode 100644
index 0000000..fb609f4
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/btn_toggle_on.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/button_background_black_color.xml b/joy/week10_FLO/app/src/main/res/drawable/button_background_black_color.xml
new file mode 100644
index 0000000..cad3794
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/button_background_black_color.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/button_background_flo_color.xml b/joy/week10_FLO/app/src/main/res/drawable/button_background_flo_color.xml
new file mode 100644
index 0000000..d5e92f3
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/button_background_flo_color.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/button_background_gray_color.xml b/joy/week10_FLO/app/src/main/res/drawable/button_background_gray_color.xml
new file mode 100644
index 0000000..dbcaae2
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/button_background_gray_color.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/button_background_white_color.xml b/joy/week10_FLO/app/src/main/res/drawable/button_background_white_color.xml
new file mode 100644
index 0000000..32e9583
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/button_background_white_color.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/custom_snackbar_bg.xml b/joy/week10_FLO/app/src/main/res/drawable/custom_snackbar_bg.xml
new file mode 100644
index 0000000..57583de
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/custom_snackbar_bg.xml
@@ -0,0 +1,11 @@
+
+
+ -
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/discovery_banner_aos.jpg b/joy/week10_FLO/app/src/main/res/drawable/discovery_banner_aos.jpg
new file mode 100644
index 0000000..c905515
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/discovery_banner_aos.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/email_icon.png b/joy/week10_FLO/app/src/main/res/drawable/email_icon.png
new file mode 100644
index 0000000..ecf1da4
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/email_icon.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/flo_app_logo.png b/joy/week10_FLO/app/src/main/res/drawable/flo_app_logo.png
new file mode 100644
index 0000000..605e278
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/flo_app_logo.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/flo_app_logo_rounded.png b/joy/week10_FLO/app/src/main/res/drawable/flo_app_logo_rounded.png
new file mode 100644
index 0000000..a27a8f1
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/flo_app_logo_rounded.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/flo_logo_icon.png b/joy/week10_FLO/app/src/main/res/drawable/flo_logo_icon.png
new file mode 100644
index 0000000..660a193
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/flo_logo_icon.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/fragment_look_chart_background.xml b/joy/week10_FLO/app/src/main/res/drawable/fragment_look_chart_background.xml
new file mode 100644
index 0000000..64c040f
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/fragment_look_chart_background.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/fragment_look_chip_off_background.xml b/joy/week10_FLO/app/src/main/res/drawable/fragment_look_chip_off_background.xml
new file mode 100644
index 0000000..43005ce
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/fragment_look_chip_off_background.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/fragment_look_chip_on_background.xml b/joy/week10_FLO/app/src/main/res/drawable/fragment_look_chip_on_background.xml
new file mode 100644
index 0000000..ce894ed
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/fragment_look_chip_on_background.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/free_icon_sort_down.png b/joy/week10_FLO/app/src/main/res/drawable/free_icon_sort_down.png
new file mode 100644
index 0000000..d13a502
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/free_icon_sort_down.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/home_pannel_album_cover_1.jpg b/joy/week10_FLO/app/src/main/res/drawable/home_pannel_album_cover_1.jpg
new file mode 100644
index 0000000..81bb11d
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/home_pannel_album_cover_1.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/home_pannel_album_cover_2.jpg b/joy/week10_FLO/app/src/main/res/drawable/home_pannel_album_cover_2.jpg
new file mode 100644
index 0000000..3eaaf29
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/home_pannel_album_cover_2.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_home_no_select.png b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_home_no_select.png
new file mode 100644
index 0000000..69a8ab6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_home_no_select.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_home_select.png b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_home_select.png
new file mode 100644
index 0000000..c0ff48e
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_home_select.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_locker_no_select.png b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_locker_no_select.png
new file mode 100644
index 0000000..a67dec3
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_locker_no_select.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_locker_select.png b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_locker_select.png
new file mode 100644
index 0000000..042489f
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_locker_select.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_look_no_select.png b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_look_no_select.png
new file mode 100644
index 0000000..6c2f4f0
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_look_no_select.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_look_select.png b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_look_select.png
new file mode 100644
index 0000000..3d169e4
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_look_select.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_my_no_select.png b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_my_no_select.png
new file mode 100644
index 0000000..a67dec3
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_my_no_select.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_my_select.png b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_my_select.png
new file mode 100644
index 0000000..042489f
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_my_select.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_search_no_select.png b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_search_no_select.png
new file mode 100644
index 0000000..a77b8c5
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_search_no_select.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_search_select.png b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_search_select.png
new file mode 100644
index 0000000..d5c8a72
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_bottom_search_select.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_browse_arrow_right.png b/joy/week10_FLO/app/src/main/res/drawable/ic_browse_arrow_right.png
new file mode 100644
index 0000000..71b588b
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_browse_arrow_right.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_flo_logo.png b/joy/week10_FLO/app/src/main/res/drawable/ic_flo_logo.png
new file mode 100644
index 0000000..643224d
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_flo_logo.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_launcher_background.xml b/joy/week10_FLO/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..07d5da9
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_launcher_foreground.xml b/joy/week10_FLO/app/src/main/res/drawable/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_main_facebook.png b/joy/week10_FLO/app/src/main/res/drawable/ic_main_facebook.png
new file mode 100644
index 0000000..83e9732
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_main_facebook.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_main_facebook_btn.png b/joy/week10_FLO/app/src/main/res/drawable/ic_main_facebook_btn.png
new file mode 100644
index 0000000..83e9732
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_main_facebook_btn.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_main_instagram.png b/joy/week10_FLO/app/src/main/res/drawable/ic_main_instagram.png
new file mode 100644
index 0000000..398ce61
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_main_instagram.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_main_instagram_btn.png b/joy/week10_FLO/app/src/main/res/drawable/ic_main_instagram_btn.png
new file mode 100644
index 0000000..398ce61
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_main_instagram_btn.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_main_twitter.png b/joy/week10_FLO/app/src/main/res/drawable/ic_main_twitter.png
new file mode 100644
index 0000000..6ddc68e
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_main_twitter.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_main_twitter_btn.png b/joy/week10_FLO/app/src/main/res/drawable/ic_main_twitter_btn.png
new file mode 100644
index 0000000..6ddc68e
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_main_twitter_btn.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_main_youtube.png b/joy/week10_FLO/app/src/main/res/drawable/ic_main_youtube.png
new file mode 100644
index 0000000..0c4ec93
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_main_youtube.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_main_youtube_btn.png b/joy/week10_FLO/app/src/main/res/drawable/ic_main_youtube_btn.png
new file mode 100644
index 0000000..0c4ec93
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_main_youtube_btn.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_my_like_off.png b/joy/week10_FLO/app/src/main/res/drawable/ic_my_like_off.png
new file mode 100644
index 0000000..c06e139
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_my_like_off.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ic_my_like_on.png b/joy/week10_FLO/app/src/main/res/drawable/ic_my_like_on.png
new file mode 100644
index 0000000..22577c0
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ic_my_like_on.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/ico_20_logo_tid_white.png b/joy/week10_FLO/app/src/main/res/drawable/ico_20_logo_tid_white.png
new file mode 100644
index 0000000..c6f4d4f
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/ico_20_logo_tid_white.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/icon_browse_arrow_right.png b/joy/week10_FLO/app/src/main/res/drawable/icon_browse_arrow_right.png
new file mode 100644
index 0000000..71b588b
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/icon_browse_arrow_right.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_1.png b/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_1.png
new file mode 100644
index 0000000..8cac655
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_1.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_2.png b/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_2.png
new file mode 100644
index 0000000..e466049
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_2.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_3.png b/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_3.png
new file mode 100644
index 0000000..29cc70f
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_3.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_4.png b/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_4.png
new file mode 100644
index 0000000..6e755fe
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_4.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_5.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_5.jpg
new file mode 100644
index 0000000..1f7b67d
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_cover_5.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_exp.png b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp.png
new file mode 100644
index 0000000..6e3f38a
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_exp2.png b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp2.png
new file mode 100644
index 0000000..28ea3ee
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp2.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_exp3.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp3.jpg
new file mode 100644
index 0000000..6641600
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp3.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_exp4.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp4.jpg
new file mode 100644
index 0000000..aecebb6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp4.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_exp5.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp5.jpg
new file mode 100644
index 0000000..6a8d870
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp5.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_exp6.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp6.jpg
new file mode 100644
index 0000000..48202f2
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_exp6.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_album_lp.png b/joy/week10_FLO/app/src/main/res/drawable/img_album_lp.png
new file mode 100644
index 0000000..29fb1b4
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_album_lp.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_1.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_1.jpg
new file mode 100644
index 0000000..0b0dfd2
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_1.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_2.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_2.jpg
new file mode 100644
index 0000000..dc3b954
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_2.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_3.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_3.jpg
new file mode 100644
index 0000000..680e0ee
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_3.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_4.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_4.jpg
new file mode 100644
index 0000000..0da3e40
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_4.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_5.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_5.jpg
new file mode 100644
index 0000000..ce65d61
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_chart_song_album_cover_5.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_default_4_x_1.png b/joy/week10_FLO/app/src/main/res/drawable/img_default_4_x_1.png
new file mode 100644
index 0000000..926d34f
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_default_4_x_1.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_first_album_default.png b/joy/week10_FLO/app/src/main/res/drawable/img_first_album_default.png
new file mode 100644
index 0000000..926d34f
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_first_album_default.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_home_panel1_album_1.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel1_album_1.jpg
new file mode 100644
index 0000000..6c86eb6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel1_album_1.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_home_panel1_album_2.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel1_album_2.jpg
new file mode 100644
index 0000000..7a654e8
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel1_album_2.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_home_panel2_album_1.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel2_album_1.jpg
new file mode 100644
index 0000000..18c027d
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel2_album_1.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_home_panel2_album_2.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel2_album_2.jpg
new file mode 100644
index 0000000..3673695
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel2_album_2.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_home_panel3_album_1.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel3_album_1.jpg
new file mode 100644
index 0000000..9e98956
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel3_album_1.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_home_panel3_album_2.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel3_album_2.jpg
new file mode 100644
index 0000000..a4530b3
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel3_album_2.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_home_panel_background_1.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel_background_1.jpg
new file mode 100644
index 0000000..91f152d
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel_background_1.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_home_panel_background_2.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel_background_2.jpg
new file mode 100644
index 0000000..0d2c867
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel_background_2.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_home_panel_background_3.jpg b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel_background_3.jpg
new file mode 100644
index 0000000..bd173cb
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_home_panel_background_3.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_home_viewpager_exp.png b/joy/week10_FLO/app/src/main/res/drawable/img_home_viewpager_exp.png
new file mode 100644
index 0000000..da78032
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_home_viewpager_exp.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_home_viewpager_exp2.png b/joy/week10_FLO/app/src/main/res/drawable/img_home_viewpager_exp2.png
new file mode 100644
index 0000000..50fa4be
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_home_viewpager_exp2.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_1.png b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_1.png
new file mode 100644
index 0000000..f5455ae
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_1.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_10.png b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_10.png
new file mode 100644
index 0000000..719364c
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_10.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_2.png b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_2.png
new file mode 100644
index 0000000..c86cb92
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_2.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_3.png b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_3.png
new file mode 100644
index 0000000..0385316
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_3.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_4.png b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_4.png
new file mode 100644
index 0000000..03cd018
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_4.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_5.png b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_5.png
new file mode 100644
index 0000000..96f0f17
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_5.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_6.png b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_6.png
new file mode 100644
index 0000000..0a15594
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_6.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_7.png b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_7.png
new file mode 100644
index 0000000..356241c
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_7.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_8.png b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_8.png
new file mode 100644
index 0000000..8ae0b74
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_8.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_9.png b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_9.png
new file mode 100644
index 0000000..8f20d81
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_ilust_cover_9.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_jenre_exp_1.png b/joy/week10_FLO/app/src/main/res/drawable/img_jenre_exp_1.png
new file mode 100644
index 0000000..0d43e8e
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_jenre_exp_1.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_jenre_exp_2.png b/joy/week10_FLO/app/src/main/res/drawable/img_jenre_exp_2.png
new file mode 100644
index 0000000..f03efb2
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_jenre_exp_2.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_jenre_exp_3.png b/joy/week10_FLO/app/src/main/res/drawable/img_jenre_exp_3.png
new file mode 100644
index 0000000..51de684
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_jenre_exp_3.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_locker_no_saved_song.png b/joy/week10_FLO/app/src/main/res/drawable/img_locker_no_saved_song.png
new file mode 100644
index 0000000..973d4c7
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_locker_no_saved_song.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_locker_screen_share_icon.png b/joy/week10_FLO/app/src/main/res/drawable/img_locker_screen_share_icon.png
new file mode 100644
index 0000000..48ecce2
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_locker_screen_share_icon.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_potcast_exp.png b/joy/week10_FLO/app/src/main/res/drawable/img_potcast_exp.png
new file mode 100644
index 0000000..50a46e0
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_potcast_exp.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_setting_icon_black.png b/joy/week10_FLO/app/src/main/res/drawable/img_setting_icon_black.png
new file mode 100644
index 0000000..6ad5f10
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_setting_icon_black.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_splash_flo.png b/joy/week10_FLO/app/src/main/res/drawable/img_splash_flo.png
new file mode 100644
index 0000000..1aa7811
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_splash_flo.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_video_exp.png b/joy/week10_FLO/app/src/main/res/drawable/img_video_exp.png
new file mode 100644
index 0000000..bef9de7
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_video_exp.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/img_video_exp_2.png b/joy/week10_FLO/app/src/main/res/drawable/img_video_exp_2.png
new file mode 100644
index 0000000..82372a8
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/img_video_exp_2.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/indicator_selected.xml b/joy/week10_FLO/app/src/main/res/drawable/indicator_selected.xml
new file mode 100644
index 0000000..e842b60
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/indicator_selected.xml
@@ -0,0 +1,5 @@
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/indicator_unselected.xml b/joy/week10_FLO/app/src/main/res/drawable/indicator_unselected.xml
new file mode 100644
index 0000000..cb4a33a
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/indicator_unselected.xml
@@ -0,0 +1,5 @@
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/kakako_44.png b/joy/week10_FLO/app/src/main/res/drawable/kakako_44.png
new file mode 100644
index 0000000..243298e
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/kakako_44.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/kakao_logo.png b/joy/week10_FLO/app/src/main/res/drawable/kakao_logo.png
new file mode 100644
index 0000000..5cc8bb6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/kakao_logo.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/log_in_border.xml b/joy/week10_FLO/app/src/main/res/drawable/log_in_border.xml
new file mode 100644
index 0000000..5e3401f
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/log_in_border.xml
@@ -0,0 +1,13 @@
+
+
+
+ -
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/main_btm_color_selector.xml b/joy/week10_FLO/app/src/main/res/drawable/main_btm_color_selector.xml
new file mode 100644
index 0000000..3ecf8a7
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/main_btm_color_selector.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/main_btm_home_selector.xml b/joy/week10_FLO/app/src/main/res/drawable/main_btm_home_selector.xml
new file mode 100644
index 0000000..b018478
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/main_btm_home_selector.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/main_btm_look_selector.xml b/joy/week10_FLO/app/src/main/res/drawable/main_btm_look_selector.xml
new file mode 100644
index 0000000..89ced75
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/main_btm_look_selector.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/main_btm_my_selector.xml b/joy/week10_FLO/app/src/main/res/drawable/main_btm_my_selector.xml
new file mode 100644
index 0000000..d6739bf
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/main_btm_my_selector.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/main_btm_search_selector.xml b/joy/week10_FLO/app/src/main/res/drawable/main_btm_search_selector.xml
new file mode 100644
index 0000000..e6e823f
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/main_btm_search_selector.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/naver_44.png b/joy/week10_FLO/app/src/main/res/drawable/naver_44.png
new file mode 100644
index 0000000..d984487
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/naver_44.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/naver_logo_white.png b/joy/week10_FLO/app/src/main/res/drawable/naver_logo_white.png
new file mode 100644
index 0000000..43d6735
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/naver_logo_white.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_down.png b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_down.png
new file mode 100644
index 0000000..03a04c5
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_down.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_pause_32.png b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_pause_32.png
new file mode 100644
index 0000000..9388aa3
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_pause_32.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_play_32.png b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_play_32.png
new file mode 100644
index 0000000..b781e4c
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_play_32.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_random_inactive.png b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_random_inactive.png
new file mode 100644
index 0000000..fe4f880
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_random_inactive.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_repeat_inactive.png b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_repeat_inactive.png
new file mode 100644
index 0000000..1e4044d
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_repeat_inactive.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_skip_next_32.png b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_skip_next_32.png
new file mode 100644
index 0000000..fc02f28
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_skip_next_32.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_skip_previous_32.png b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_skip_previous_32.png
new file mode 100644
index 0000000..03ec854
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/nugu_btn_skip_previous_32.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/phone_icon.jpg b/joy/week10_FLO/app/src/main/res/drawable/phone_icon.jpg
new file mode 100644
index 0000000..a1fed39
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/phone_icon.jpg differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/playlist_repeat_song_icon.xml b/joy/week10_FLO/app/src/main/res/drawable/playlist_repeat_song_icon.xml
new file mode 100644
index 0000000..afebc62
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/playlist_repeat_song_icon.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/playlist_shuffle_icon.xml b/joy/week10_FLO/app/src/main/res/drawable/playlist_shuffle_icon.xml
new file mode 100644
index 0000000..2b9a127
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/playlist_shuffle_icon.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/rounded_icon.xml b/joy/week10_FLO/app/src/main/res/drawable/rounded_icon.xml
new file mode 100644
index 0000000..7eac154
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/rounded_icon.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/splash.xml b/joy/week10_FLO/app/src/main/res/drawable/splash.xml
new file mode 100644
index 0000000..881f094
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/splash.xml
@@ -0,0 +1,10 @@
+
+
+
+ -
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/splash2.xml b/joy/week10_FLO/app/src/main/res/drawable/splash2.xml
new file mode 100644
index 0000000..5d1beec
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/splash2.xml
@@ -0,0 +1,8 @@
+
+
+
+ -
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/drawable/t_world_logo_white.png b/joy/week10_FLO/app/src/main/res/drawable/t_world_logo_white.png
new file mode 100644
index 0000000..d576f2b
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/t_world_logo_white.png differ
diff --git a/joy/week10_FLO/app/src/main/res/drawable/textview_background_radius.xml b/joy/week10_FLO/app/src/main/res/drawable/textview_background_radius.xml
new file mode 100644
index 0000000..53beead
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/textview_background_radius.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/textview_background_select_color_radius.xml b/joy/week10_FLO/app/src/main/res/drawable/textview_background_select_color_radius.xml
new file mode 100644
index 0000000..ea8dc88
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/drawable/textview_background_select_color_radius.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
diff --git a/joy/week10_FLO/app/src/main/res/drawable/widget_black_play.png b/joy/week10_FLO/app/src/main/res/drawable/widget_black_play.png
new file mode 100644
index 0000000..0ec2700
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/drawable/widget_black_play.png differ
diff --git a/joy/week10_FLO/app/src/main/res/font/font_family.xml b/joy/week10_FLO/app/src/main/res/font/font_family.xml
new file mode 100644
index 0000000..c140f14
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/font/font_family.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/font/noto_sans_regular.ttf b/joy/week10_FLO/app/src/main/res/font/noto_sans_regular.ttf
new file mode 100644
index 0000000..1b14d32
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/font/noto_sans_regular.ttf differ
diff --git a/joy/week10_FLO/app/src/main/res/layout/activity_log_in.xml b/joy/week10_FLO/app/src/main/res/layout/activity_log_in.xml
new file mode 100644
index 0000000..863cdb3
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/activity_log_in.xml
@@ -0,0 +1,390 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/activity_main.xml b/joy/week10_FLO/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..8132147
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/activity_sign_up.xml b/joy/week10_FLO/app/src/main/res/layout/activity_sign_up.xml
new file mode 100644
index 0000000..a23ef2d
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/activity_sign_up.xml
@@ -0,0 +1,245 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/activity_sign_up_option.xml b/joy/week10_FLO/app/src/main/res/layout/activity_sign_up_option.xml
new file mode 100644
index 0000000..dd1fb44
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/activity_sign_up_option.xml
@@ -0,0 +1,355 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/activity_song.xml b/joy/week10_FLO/app/src/main/res/layout/activity_song.xml
new file mode 100644
index 0000000..5fee842
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/activity_song.xml
@@ -0,0 +1,346 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/activity_splash.xml b/joy/week10_FLO/app/src/main/res/layout/activity_splash.xml
new file mode 100644
index 0000000..325a030
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/activity_splash.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/custom_snackbar.xml b/joy/week10_FLO/app/src/main/res/layout/custom_snackbar.xml
new file mode 100644
index 0000000..d18ccf9
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/custom_snackbar.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/dialog_user_info.xml b/joy/week10_FLO/app/src/main/res/layout/dialog_user_info.xml
new file mode 100644
index 0000000..03bbbc2
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/dialog_user_info.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_album.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_album.xml
new file mode 100644
index 0000000..bfa3859
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_album.xml
@@ -0,0 +1,226 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_banner.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_banner.xml
new file mode 100644
index 0000000..e3e9613
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_banner.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_bottom_sheet.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_bottom_sheet.xml
new file mode 100644
index 0000000..b78c7eb
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_bottom_sheet.xml
@@ -0,0 +1,173 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_detail.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_detail.xml
new file mode 100644
index 0000000..5779de2
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_detail.xml
@@ -0,0 +1,185 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_home.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_home.xml
new file mode 100644
index 0000000..c142902
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_home.xml
@@ -0,0 +1,808 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_homepanel1.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_homepanel1.xml
new file mode 100644
index 0000000..f6f8df3
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_homepanel1.xml
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_homepanel2.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_homepanel2.xml
new file mode 100644
index 0000000..72bb42d
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_homepanel2.xml
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_homepanel3.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_homepanel3.xml
new file mode 100644
index 0000000..9c7baa1
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_homepanel3.xml
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_locker.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_locker.xml
new file mode 100644
index 0000000..89accca
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_locker.xml
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_look.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_look.xml
new file mode 100644
index 0000000..3317989
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_look.xml
@@ -0,0 +1,242 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_saved_album.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_saved_album.xml
new file mode 100644
index 0000000..d2e4f34
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_saved_album.xml
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_savedsong.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_savedsong.xml
new file mode 100644
index 0000000..4bdeef1
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_savedsong.xml
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_search.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_search.xml
new file mode 100644
index 0000000..6fbc0a9
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_search.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_song.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_song.xml
new file mode 100644
index 0000000..5a54940
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_song.xml
@@ -0,0 +1,743 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_songfile.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_songfile.xml
new file mode 100644
index 0000000..244be63
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_songfile.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/fragment_video.xml b/joy/week10_FLO/app/src/main/res/layout/fragment_video.xml
new file mode 100644
index 0000000..1aa2a4a
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/fragment_video.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/item_album.xml b/joy/week10_FLO/app/src/main/res/layout/item_album.xml
new file mode 100644
index 0000000..473ca75
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/item_album.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/item_chart_song.xml b/joy/week10_FLO/app/src/main/res/layout/item_chart_song.xml
new file mode 100644
index 0000000..fdd0a4c
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/item_chart_song.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/item_saved_album.xml b/joy/week10_FLO/app/src/main/res/layout/item_saved_album.xml
new file mode 100644
index 0000000..667fe99
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/item_saved_album.xml
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/layout/item_saved_song.xml b/joy/week10_FLO/app/src/main/res/layout/item_saved_song.xml
new file mode 100644
index 0000000..9ef82d2
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/layout/item_saved_song.xml
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/menu/bottom_nav_menu.xml b/joy/week10_FLO/app/src/main/res/menu/bottom_nav_menu.xml
new file mode 100644
index 0000000..9a55b1a
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/menu/bottom_nav_menu.xml
@@ -0,0 +1,28 @@
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/joy/week10_FLO/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..6f3b755
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/joy/week10_FLO/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..6f3b755
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/joy/week10_FLO/app/src/main/res/mipmap-hdpi/ic_launcher.webp
new file mode 100644
index 0000000..c209e78
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/joy/week10_FLO/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..b2dfe3d
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/joy/week10_FLO/app/src/main/res/mipmap-mdpi/ic_launcher.webp
new file mode 100644
index 0000000..4f0f1d6
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/joy/week10_FLO/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..62b611d
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/joy/week10_FLO/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
new file mode 100644
index 0000000..948a307
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/joy/week10_FLO/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..1b9a695
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/joy/week10_FLO/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..28d4b77
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/joy/week10_FLO/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9287f50
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/joy/week10_FLO/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..aa7d642
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ
diff --git a/joy/week10_FLO/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/joy/week10_FLO/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9126ae3
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ
diff --git a/joy/week10_FLO/app/src/main/res/raw/music_antmill.mp3 b/joy/week10_FLO/app/src/main/res/raw/music_antmill.mp3
new file mode 100644
index 0000000..087ab71
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/raw/music_antmill.mp3 differ
diff --git a/joy/week10_FLO/app/src/main/res/raw/music_any_way_the_wind_blows.mp3 b/joy/week10_FLO/app/src/main/res/raw/music_any_way_the_wind_blows.mp3
new file mode 100644
index 0000000..01fb0e5
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/raw/music_any_way_the_wind_blows.mp3 differ
diff --git a/joy/week10_FLO/app/src/main/res/raw/music_anybody_have_a_map.mp3 b/joy/week10_FLO/app/src/main/res/raw/music_anybody_have_a_map.mp3
new file mode 100644
index 0000000..803ca5d
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/raw/music_anybody_have_a_map.mp3 differ
diff --git a/joy/week10_FLO/app/src/main/res/raw/music_friends.mp3 b/joy/week10_FLO/app/src/main/res/raw/music_friends.mp3
new file mode 100644
index 0000000..c620072
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/raw/music_friends.mp3 differ
diff --git a/joy/week10_FLO/app/src/main/res/raw/music_mangrove_tree.mp3 b/joy/week10_FLO/app/src/main/res/raw/music_mangrove_tree.mp3
new file mode 100644
index 0000000..bcea84b
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/raw/music_mangrove_tree.mp3 differ
diff --git a/joy/week10_FLO/app/src/main/res/raw/music_old_love.mp3 b/joy/week10_FLO/app/src/main/res/raw/music_old_love.mp3
new file mode 100644
index 0000000..d14b3ff
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/raw/music_old_love.mp3 differ
diff --git a/joy/week10_FLO/app/src/main/res/raw/music_playing_pretend.mp3 b/joy/week10_FLO/app/src/main/res/raw/music_playing_pretend.mp3
new file mode 100644
index 0000000..0bc8935
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/raw/music_playing_pretend.mp3 differ
diff --git a/joy/week10_FLO/app/src/main/res/raw/music_price_and_son_theme_the_most_beautiful_thing_in_the_world.mp3 b/joy/week10_FLO/app/src/main/res/raw/music_price_and_son_theme_the_most_beautiful_thing_in_the_world.mp3
new file mode 100644
index 0000000..a25dad3
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/raw/music_price_and_son_theme_the_most_beautiful_thing_in_the_world.mp3 differ
diff --git a/joy/week10_FLO/app/src/main/res/raw/music_road_to_hell.mp3 b/joy/week10_FLO/app/src/main/res/raw/music_road_to_hell.mp3
new file mode 100644
index 0000000..20b3cf1
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/raw/music_road_to_hell.mp3 differ
diff --git a/joy/week10_FLO/app/src/main/res/raw/music_take_what_you_got.mp3 b/joy/week10_FLO/app/src/main/res/raw/music_take_what_you_got.mp3
new file mode 100644
index 0000000..a6bd076
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/raw/music_take_what_you_got.mp3 differ
diff --git a/joy/week10_FLO/app/src/main/res/raw/music_waving_through_a_window.mp3 b/joy/week10_FLO/app/src/main/res/raw/music_waving_through_a_window.mp3
new file mode 100644
index 0000000..b0bef60
Binary files /dev/null and b/joy/week10_FLO/app/src/main/res/raw/music_waving_through_a_window.mp3 differ
diff --git a/joy/week10_FLO/app/src/main/res/values-night/themes.xml b/joy/week10_FLO/app/src/main/res/values-night/themes.xml
new file mode 100644
index 0000000..1012b6f
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,7 @@
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/values/colors.xml b/joy/week10_FLO/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..0d19207
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/values/colors.xml
@@ -0,0 +1,31 @@
+
+
+ #3f3fff
+
+ #FFBB86FC
+ #FF6200EE
+ #FF3700B3
+ #f3f4fe
+ #FF03DAC5
+ #FF018786
+ #FF000000
+ #FFFFFFFF
+
+ #9cbee2
+ #062342
+ #424242
+ #6bb2ff
+ #252526
+
+ #00ff0000
+ #3f3fff
+ #282A2C
+ #959494
+ #a8a8a8
+ #E1E1E1
+ #F2F2F4
+ #3f3fff
+ #a8a8a8
+
+ #F11818
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/values/strings.xml b/joy/week10_FLO/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..9ac5010
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ FLO
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/values/themes.xml b/joy/week10_FLO/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..5b69bc8
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/values/themes.xml
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/xml/backup_rules.xml b/joy/week10_FLO/app/src/main/res/xml/backup_rules.xml
new file mode 100644
index 0000000..fa0f996
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/xml/backup_rules.xml
@@ -0,0 +1,13 @@
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/xml/data_extraction_rules.xml b/joy/week10_FLO/app/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 0000000..9ee9997
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/joy/week10_FLO/app/src/main/res/xml/network_security_config.xml b/joy/week10_FLO/app/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..92999eb
--- /dev/null
+++ b/joy/week10_FLO/app/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,6 @@
+
+
+
+ 3.35.121.185
+
+
diff --git a/joy/week10_FLO/app/src/test/java/com/example/flo/ExampleUnitTest.kt b/joy/week10_FLO/app/src/test/java/com/example/flo/ExampleUnitTest.kt
new file mode 100644
index 0000000..d39df20
--- /dev/null
+++ b/joy/week10_FLO/app/src/test/java/com/example/flo/ExampleUnitTest.kt
@@ -0,0 +1,17 @@
+package com.example.flo
+
+import org.junit.Test
+
+import org.junit.Assert.*
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * See [testing documentation](http://d.android.com/tools/testing).
+ */
+class ExampleUnitTest {
+ @Test
+ fun addition_isCorrect() {
+ assertEquals(4, 2 + 2)
+ }
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/build.gradle b/joy/week10_FLO/build.gradle
new file mode 100644
index 0000000..5bec31d
--- /dev/null
+++ b/joy/week10_FLO/build.gradle
@@ -0,0 +1,5 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+plugins {
+alias(libs.plugins.android.application) apply false
+ alias(libs.plugins.kotlin.android) apply false
+}
\ No newline at end of file
diff --git a/joy/week10_FLO/gradle.properties b/joy/week10_FLO/gradle.properties
new file mode 100644
index 0000000..3caa6cc
--- /dev/null
+++ b/joy/week10_FLO/gradle.properties
@@ -0,0 +1,24 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. For more details, visit
+# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Kotlin code style for this project: "official" or "obsolete":
+kotlin.code.style=official
+# Enables namespacing of each library's R class so that its R class includes only the
+# resources declared in the library itself and none from the library's dependencies,
+# thereby reducing the size of the R class for that library
+android.nonTransitiveRClass=true
+android.defaults.buildfeatures.buildconfig=true
\ No newline at end of file
diff --git a/joy/week10_FLO/gradle/libs.versions.toml b/joy/week10_FLO/gradle/libs.versions.toml
new file mode 100644
index 0000000..faf6ca2
--- /dev/null
+++ b/joy/week10_FLO/gradle/libs.versions.toml
@@ -0,0 +1,26 @@
+[versions]
+agp = "8.6.0"
+kotlin = "1.9.0"
+coreKtx = "1.13.1"
+junit = "4.13.2"
+junitVersion = "1.2.1"
+espressoCore = "3.6.1"
+appcompat = "1.7.0"
+material = "1.12.0"
+activity = "1.9.2"
+constraintlayout = "2.1.4"
+
+[libraries]
+androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
+junit = { group = "junit", name = "junit", version.ref = "junit" }
+androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
+androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
+androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
+material = { group = "com.google.android.material", name = "material", version.ref = "material" }
+androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
+androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
+
+[plugins]
+android-application = { id = "com.android.application", version.ref = "agp" }
+kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
+
diff --git a/joy/week10_FLO/gradle/wrapper/gradle-wrapper.jar b/joy/week10_FLO/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..e708b1c
Binary files /dev/null and b/joy/week10_FLO/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/joy/week10_FLO/gradle/wrapper/gradle-wrapper.properties b/joy/week10_FLO/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..342408a
--- /dev/null
+++ b/joy/week10_FLO/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Sat Oct 05 00:50:21 KST 2024
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/joy/week10_FLO/gradlew b/joy/week10_FLO/gradlew
new file mode 100644
index 0000000..4f906e0
--- /dev/null
+++ b/joy/week10_FLO/gradlew
@@ -0,0 +1,185 @@
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=`expr $i + 1`
+ done
+ case $i in
+ 0) set -- ;;
+ 1) set -- "$args0" ;;
+ 2) set -- "$args0" "$args1" ;;
+ 3) set -- "$args0" "$args1" "$args2" ;;
+ 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=`save "$@"`
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+exec "$JAVACMD" "$@"
diff --git a/joy/week10_FLO/gradlew.bat b/joy/week10_FLO/gradlew.bat
new file mode 100644
index 0000000..107acd3
--- /dev/null
+++ b/joy/week10_FLO/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/joy/week10_FLO/settings.gradle b/joy/week10_FLO/settings.gradle
new file mode 100644
index 0000000..f999d0b
--- /dev/null
+++ b/joy/week10_FLO/settings.gradle
@@ -0,0 +1,23 @@
+pluginManagement {
+ repositories {
+ google {
+ content {
+ includeGroupByRegex("com\\.android.*")
+ includeGroupByRegex("com\\.google.*")
+ includeGroupByRegex("androidx.*")
+ }
+ }
+ gradlePluginPortal()
+ }
+}
+dependencyResolutionManagement {
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
+ repositories {
+ google()
+ mavenCentral()
+ maven { url = uri("https://devrepo.kakao.com/nexus/content/groups/public/") }
+ }
+}
+
+rootProject.name = "FLO"
+include ':app'