diff --git a/.gitignore b/.gitignore
index e5cbb64..aa724b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,34 +1,15 @@
-# Gradle files
-.gradle/
-build/
-
-# Local configuration file (sdk path, etc)
-local.properties
-
-# Log/OS Files
-*.log
-
-# Android Studio generated files and folders
-captures/
-.externalNativeBuild/
-.cxx/
-*.aab
-*.apk
-output-metadata.json
-
-# IntelliJ
*.iml
-.idea/
-misc.xml
-deploymentTargetDropDown.xml
-render.experimental.xml
-
-# Keystore files
-*.jks
-*.keystore
-
-# Google Services (e.g. APIs or Firebase)
-google-services.json
-
-# Android Profiling
-*.hprof
+.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/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/AndroidProjectSystem.xml b/.idea/AndroidProjectSystem.xml
new file mode 100644
index 0000000..4a53bee
--- /dev/null
+++ b/.idea/AndroidProjectSystem.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..b86273d
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml
new file mode 100644
index 0000000..b268ef3
--- /dev/null
+++ b/.idea/deploymentTargetSelector.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/deviceManager.xml b/.idea/deviceManager.xml
new file mode 100644
index 0000000..91f9558
--- /dev/null
+++ b/.idea/deviceManager.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..639c779
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/migrations.xml b/.idea/migrations.xml
new file mode 100644
index 0000000..f8051a6
--- /dev/null
+++ b/.idea/migrations.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..74dd639
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
new file mode 100644
index 0000000..16660f1
--- /dev/null
+++ b/.idea/runConfigurations.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/studiobot.xml b/.idea/studiobot.xml
new file mode 100644
index 0000000..539e3b8
--- /dev/null
+++ b/.idea/studiobot.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..b2bdec2
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
new file mode 100644
index 0000000..d8cdc20
--- /dev/null
+++ b/app/build.gradle.kts
@@ -0,0 +1,52 @@
+plugins {
+ alias(libs.plugins.android.application)
+ alias(libs.plugins.kotlin.android)
+}
+
+android {
+ namespace = "com.example.week4"
+ compileSdk = 36
+
+ buildFeatures {
+ viewBinding=true
+ }
+
+ defaultConfig {
+ applicationId = "com.example.week4"
+ minSdk = 24
+ targetSdk = 36
+ versionCode = 1
+ versionName = "1.0"
+
+ testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ isMinifyEnabled = false
+ proguardFiles(
+ getDefaultProguardFile("proguard-android-optimize.txt"),
+ "proguard-rules.pro"
+ )
+ }
+ }
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_11
+ targetCompatibility = JavaVersion.VERSION_11
+ }
+ kotlinOptions {
+ jvmTarget = "11"
+ }
+}
+
+dependencies {
+
+ implementation(libs.androidx.core.ktx)
+ implementation(libs.androidx.appcompat)
+ implementation(libs.material)
+ implementation(libs.androidx.activity)
+ implementation(libs.androidx.constraintlayout)
+ testImplementation(libs.junit)
+ androidTestImplementation(libs.androidx.junit)
+ androidTestImplementation(libs.androidx.espresso.core)
+}
\ No newline at end of file
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..481bb43
--- /dev/null
+++ b/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/app/src/androidTest/java/com/example/week4/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/example/week4/ExampleInstrumentedTest.kt
new file mode 100644
index 0000000..2f35ad8
--- /dev/null
+++ b/app/src/androidTest/java/com/example/week4/ExampleInstrumentedTest.kt
@@ -0,0 +1,24 @@
+package com.example.week4
+
+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.week4", appContext.packageName)
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..9f6c6dd
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/Album.kt b/app/src/main/java/com/example/week4/Album.kt
new file mode 100644
index 0000000..a8ca02c
--- /dev/null
+++ b/app/src/main/java/com/example/week4/Album.kt
@@ -0,0 +1,8 @@
+package com.example.week4
+
+data class Album(
+ val title: String = "",
+ val singer: String = "",
+ val coverImg: Int,
+ val songs: ArrayList? = null
+)
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/AlbumFragment.kt b/app/src/main/java/com/example/week4/AlbumFragment.kt
new file mode 100644
index 0000000..48b2ac3
--- /dev/null
+++ b/app/src/main/java/com/example/week4/AlbumFragment.kt
@@ -0,0 +1,46 @@
+package com.example.week4
+
+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.week4.databinding.FragmentAlbumBinding
+
+class AlbumFragment : Fragment() {
+ lateinit var binding: FragmentAlbumBinding
+ private val songData = ArrayList()
+
+ override fun onCreateView(
+ inflater: LayoutInflater, container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ binding = FragmentAlbumBinding.inflate(inflater, container, false)
+
+ initDummyData()
+
+ initRecyclerView()
+
+ binding.albumBackIv.setOnClickListener {
+ (activity as MainActivity).supportFragmentManager.popBackStack()
+ }
+
+ return binding.root
+ }
+
+ private fun initRecyclerView(){
+ val songRVAdapter = SavedSongRVAdapter(songData)
+ binding.albumSongListRv.adapter = songRVAdapter
+ binding.albumSongListRv.layoutManager = LinearLayoutManager(context)
+ }
+
+ private fun initDummyData(){
+ songData.add(Song("LILAC", "아이유 (IU)"))
+ songData.add(Song("Flu", "아이유 (IU)"))
+ songData.add(Song("Coin", "아이유 (IU)"))
+ songData.add(Song("봄 안녕 봄", "아이유 (IU)"))
+ songData.add(Song("Celebrity", "아이유 (IU)"))
+ songData.add(Song("돌림노래", "아이유 (IU)"))
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/AlbumRVAdapter.kt b/app/src/main/java/com/example/week4/AlbumRVAdapter.kt
new file mode 100644
index 0000000..5b73574
--- /dev/null
+++ b/app/src/main/java/com/example/week4/AlbumRVAdapter.kt
@@ -0,0 +1,41 @@
+package com.example.week4
+
+import android.view.LayoutInflater
+import android.view.ViewGroup
+import androidx.recyclerview.widget.RecyclerView
+import com.example.week4.Album
+import com.example.week4.databinding.ItemAlbumBinding
+
+class AlbumRVAdapter(private val albumList: ArrayList) : RecyclerView.Adapter() {
+
+ interface MyItemClickListener {
+ fun onItemClick(album: Album)
+ fun onPlayClick(album: Album)
+ }
+
+ 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)
+ }
+
+ override fun onBindViewHolder(holder: ViewHolder, position: Int) {
+ holder.bind(albumList[position])
+ holder.itemView.setOnClickListener { mItemClickListener.onItemClick(albumList[position]) }
+ holder.binding.itemAlbumPlayIv.setOnClickListener { mItemClickListener.onPlayClick(albumList[position]) }
+ }
+
+ override fun getItemCount(): Int = albumList.size
+
+ 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.itemAlbumCoverIv.setImageResource(album.coverImg)
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/HomeFragment.kt b/app/src/main/java/com/example/week4/HomeFragment.kt
new file mode 100644
index 0000000..82199bc
--- /dev/null
+++ b/app/src/main/java/com/example/week4/HomeFragment.kt
@@ -0,0 +1,74 @@
+package com.example.week4
+
+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.week4.Album
+import com.example.week4.Song
+import com.example.week4.databinding.FragmentHomeBinding
+
+class HomeFragment : Fragment() {
+ lateinit var binding: FragmentHomeBinding
+ private lateinit var albumRVAdapter: AlbumRVAdapter
+ private val albumData = ArrayList()
+
+ override fun onCreateView(
+ inflater: LayoutInflater, container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ binding = FragmentHomeBinding.inflate(inflater, container, false)
+
+ initDummyData()
+
+ initRecyclerView()
+
+ binding.miniplayerRootLayout.setOnClickListener {
+ (activity as? MainActivity)?.startActivity(android.content.Intent(activity, SongActivity::class.java))
+ }
+
+ return binding.root
+ }
+
+ private fun initRecyclerView() {
+ albumRVAdapter = AlbumRVAdapter(albumData)
+ binding.homeTodayMusicAlbumRv.adapter = albumRVAdapter
+ binding.homeTodayMusicAlbumRv.layoutManager = LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false)
+
+ albumRVAdapter.setMyItemClickListener(object : AlbumRVAdapter.MyItemClickListener {
+ override fun onItemClick(album: Album) {
+ (activity as MainActivity).supportFragmentManager.beginTransaction()
+ .replace(R.id.main_frm, AlbumFragment())
+ .addToBackStack(null)
+ .commitAllowingStateLoss()
+ }
+
+ override fun onPlayClick(album: Album) {
+ album.songs?.let {
+ if (it.isNotEmpty()) {
+ val firstSong = it[0]
+ binding.homePannelPlayingNowTv.text = "${firstSong.title}\n${firstSong.singer}"
+ }
+ }
+ }
+ })
+ }
+
+ private fun initDummyData() {
+ if(albumData.isEmpty()){
+ val songs1 = arrayListOf(Song("LILAC", "아이유 (IU)"), Song("Coin", "아이유 (IU)"))
+ albumData.add(Album("LILAC", "아이유 (IU)", R.drawable.img_album_exp2, songs1))
+
+ val songs2 = arrayListOf(Song("Butter", "방탄소년단"), Song("Permission to Dance", "방탄소년단"))
+ albumData.add(Album("Butter", "방탄소년단", R.drawable.img_album_exp, songs2))
+
+ val songs3 = arrayListOf(Song("Weekend", "태연 (TAEYEON)"), Song("Fine", "태연 (TAEYEON)"))
+ albumData.add(Album("Weekend", "태연 (TAEYEON)", R.drawable.img_album_exp2, songs3))
+
+ val songs4 = arrayListOf(Song("Next Level", "aespa"), Song("Black Mamba", "aespa"))
+ albumData.add(Album("Next Level", "aespa", R.drawable.img_album_exp, songs4))
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/LockerFragment.kt b/app/src/main/java/com/example/week4/LockerFragment.kt
new file mode 100644
index 0000000..a27a726
--- /dev/null
+++ b/app/src/main/java/com/example/week4/LockerFragment.kt
@@ -0,0 +1,43 @@
+package com.example.week4
+
+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.week4.Song
+import com.example.week4.databinding.FragmentLockerBinding
+
+class LockerFragment : Fragment() {
+ lateinit var binding: FragmentLockerBinding
+ private val savedSongData = ArrayList()
+
+ override fun onCreateView(
+ inflater: LayoutInflater, container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ binding = FragmentLockerBinding.inflate(inflater, container, false)
+
+ initDummyData()
+
+ initRecyclerView()
+
+ return binding.root
+ }
+
+ private fun initRecyclerView(){
+ val savedSongRVAdapter = SavedSongRVAdapter(savedSongData)
+ binding.lockerSavedSongRv.adapter = savedSongRVAdapter
+ binding.lockerSavedSongRv.layoutManager = LinearLayoutManager(context)
+ }
+
+ private fun initDummyData(){
+ savedSongData.add(Song("Butter", "방탄소년단"))
+ savedSongData.add(Song("Next Level", "aespa"))
+ savedSongData.add(Song("Celebrity", "아이유 (IU)"))
+ savedSongData.add(Song("Weekend", "태연 (TAEYEON)"))
+ savedSongData.add(Song("LILAC", "아이유 (IU)"))
+ savedSongData.add(Song("Permission to Dance", "방탄소년단"))
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/LookFragment.kt b/app/src/main/java/com/example/week4/LookFragment.kt
new file mode 100644
index 0000000..8341670
--- /dev/null
+++ b/app/src/main/java/com/example/week4/LookFragment.kt
@@ -0,0 +1,21 @@
+package com.example.week4
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import com.example.week4.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)
+ return binding.root
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/MainActivity.kt b/app/src/main/java/com/example/week4/MainActivity.kt
new file mode 100644
index 0000000..af7053c
--- /dev/null
+++ b/app/src/main/java/com/example/week4/MainActivity.kt
@@ -0,0 +1,58 @@
+package com.example.week4
+
+import android.content.Intent
+import androidx.appcompat.app.AppCompatActivity
+import android.os.Bundle
+import com.example.week4.databinding.ActivityMainBinding
+
+class MainActivity : AppCompatActivity() {
+
+ lateinit var binding: ActivityMainBinding
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ binding = ActivityMainBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ if (savedInstanceState == null) {
+ supportFragmentManager.beginTransaction()
+ .replace(R.id.main_frm, HomeFragment())
+ .commitAllowingStateLoss()
+ }
+
+ initBottomNavigation()
+ }
+
+ private fun initBottomNavigation(){
+ binding.mainBnv.setOnItemSelectedListener { item ->
+ when (item.itemId) {
+ R.id.homeFragment -> {
+ supportFragmentManager.beginTransaction()
+ .replace(R.id.main_frm, HomeFragment())
+ .commitAllowingStateLoss()
+ return@setOnItemSelectedListener true
+ }
+
+ R.id.lookFragment -> {
+ supportFragmentManager.beginTransaction()
+ .replace(R.id.main_frm, LookFragment())
+ .commitAllowingStateLoss()
+ return@setOnItemSelectedListener true
+ }
+ R.id.searchFragment -> {
+ supportFragmentManager.beginTransaction()
+ .replace(R.id.main_frm, SearchFragment())
+ .commitAllowingStateLoss()
+ return@setOnItemSelectedListener true
+ }
+ R.id.lockerFragment -> {
+ supportFragmentManager.beginTransaction()
+ .replace(R.id.main_frm, LockerFragment())
+ .commitAllowingStateLoss()
+ return@setOnItemSelectedListener true
+ }
+ }
+ false
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/SavedSongRVAdapter.kt b/app/src/main/java/com/example/week4/SavedSongRVAdapter.kt
new file mode 100644
index 0000000..c784845
--- /dev/null
+++ b/app/src/main/java/com/example/week4/SavedSongRVAdapter.kt
@@ -0,0 +1,38 @@
+package com.example.week4
+
+import android.view.LayoutInflater
+import android.view.ViewGroup
+import androidx.recyclerview.widget.RecyclerView
+import com.example.week4.Song
+import com.example.week4.databinding.ItemSavedSongBinding
+
+class SavedSongRVAdapter(private var songList: ArrayList) : RecyclerView.Adapter() {
+
+ 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(songList[position])
+
+ holder.binding.itemSavedSongMoreIv.setOnClickListener {
+ removeSong(holder.bindingAdapterPosition)
+ }
+ }
+
+ override fun getItemCount(): Int = songList.size
+
+ private fun removeSong(position: Int) {
+ songList.removeAt(position)
+ notifyItemRemoved(position)
+ }
+
+ inner class ViewHolder(val binding: ItemSavedSongBinding) : RecyclerView.ViewHolder(binding.root) {
+ fun bind(song: Song) {
+ binding.itemSavedSongTitleTv.text = song.title
+ binding.itemSavedSongSingerTv.text = song.singer
+ binding.itemSavedSongCoverIv.setImageResource(R.drawable.img_album_exp)
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/SearchFragment.kt b/app/src/main/java/com/example/week4/SearchFragment.kt
new file mode 100644
index 0000000..314f341
--- /dev/null
+++ b/app/src/main/java/com/example/week4/SearchFragment.kt
@@ -0,0 +1,21 @@
+package com.example.week4
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import com.example.week4.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
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/Song.kt b/app/src/main/java/com/example/week4/Song.kt
new file mode 100644
index 0000000..9f2a0e4
--- /dev/null
+++ b/app/src/main/java/com/example/week4/Song.kt
@@ -0,0 +1,10 @@
+package com.example.week4
+
+
+data class Song(
+ var title: String = "",
+ var singer: String = "",
+ var albumArt: Int? = null,
+ var releaseInfo: String = "",
+ var isPlaying: Boolean = false
+)
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/SongActivity.kt b/app/src/main/java/com/example/week4/SongActivity.kt
new file mode 100644
index 0000000..587b91b
--- /dev/null
+++ b/app/src/main/java/com/example/week4/SongActivity.kt
@@ -0,0 +1,123 @@
+package com.example.week4
+
+import android.media.MediaPlayer
+import android.os.Bundle
+import android.os.Handler
+import android.os.Looper
+import android.view.View
+import android.widget.SeekBar
+import androidx.appcompat.app.AppCompatActivity
+import com.example.week4.databinding.ActivitySongBinding
+import java.util.concurrent.TimeUnit
+
+class SongActivity : AppCompatActivity() {
+
+ private lateinit var binding: ActivitySongBinding
+ private var mediaPlayer: MediaPlayer? = null
+ private val handler = Handler(Looper.getMainLooper())
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ binding = ActivitySongBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ mediaPlayer = MediaPlayer.create(this, R.raw.butter)
+
+ binding.songEndTimeTv.text = millisecondsToTimer(mediaPlayer?.duration?.toLong() ?: 0)
+ binding.songSeekBar.max = mediaPlayer?.duration ?: 0
+
+ binding.songMiniplayerIv.setOnClickListener {
+ mediaPlayer?.let {
+ if (!it.isPlaying) {
+ it.start()
+ updateSeekBar()
+ binding.songMiniplayerIv.visibility = View.GONE
+ binding.songPauseIv.visibility = View.VISIBLE
+ }
+ }
+ }
+
+ binding.songPauseIv.setOnClickListener {
+ mediaPlayer?.let {
+ if (it.isPlaying) {
+ it.pause()
+ handler.removeCallbacks(updater)
+ binding.songMiniplayerIv.visibility = View.VISIBLE
+ binding.songPauseIv.visibility = View.GONE
+ }
+ }
+ }
+
+ binding.songPreviousIv.setOnClickListener { seekToStart() }
+ binding.songNextIv.setOnClickListener { seekToStart() }
+
+ binding.songSeekBar.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
+ override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
+ if (fromUser) {
+ mediaPlayer?.seekTo(progress)
+ }
+ }
+ override fun onStartTrackingTouch(seekBar: SeekBar?) {
+ handler.removeCallbacks(updater)
+ }
+ override fun onStopTrackingTouch(seekBar: SeekBar?) {
+ if (mediaPlayer?.isPlaying == true) {
+ updateSeekBar()
+ }
+ }
+ })
+
+ mediaPlayer?.setOnCompletionListener {
+ binding.songMiniplayerIv.visibility = View.VISIBLE
+ binding.songPauseIv.visibility = View.GONE
+ binding.songSeekBar.progress = 0
+ binding.songStartTimeTv.text = "00:00"
+ handler.removeCallbacks(updater)
+ }
+
+ binding.songDownIb.setOnClickListener {
+ finish()
+ }
+ }
+
+ private fun seekToStart() {
+ mediaPlayer?.seekTo(0)
+ if (mediaPlayer?.isPlaying == false) {
+ mediaPlayer?.start()
+ updateSeekBar()
+ binding.songMiniplayerIv.visibility = View.GONE
+ binding.songPauseIv.visibility = View.VISIBLE
+ }
+ }
+
+ private val updater = object : Runnable {
+ override fun run() {
+ mediaPlayer?.let {
+ if (it.isPlaying) {
+ binding.songSeekBar.progress = it.currentPosition
+ binding.songStartTimeTv.text = millisecondsToTimer(it.currentPosition.toLong())
+
+ handler.postDelayed(this, 1000)
+ }
+ }
+ }
+ }
+
+ private fun updateSeekBar() {
+ handler.post(updater)
+ }
+
+ private fun millisecondsToTimer(milliseconds: Long): String {
+ val minutes = TimeUnit.MILLISECONDS.toMinutes(milliseconds)
+ val seconds = TimeUnit.MILLISECONDS.toSeconds(milliseconds) -
+ TimeUnit.MINUTES.toSeconds(minutes)
+ return String.format("%02d:%02d", minutes, seconds)
+ }
+
+ override fun onDestroy() {
+ super.onDestroy()
+ mediaPlayer?.release()
+ mediaPlayer = null
+ handler.removeCallbacks(updater)
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/week4/SplashActivity.kt b/app/src/main/java/com/example/week4/SplashActivity.kt
new file mode 100644
index 0000000..0eb6f24
--- /dev/null
+++ b/app/src/main/java/com/example/week4/SplashActivity.kt
@@ -0,0 +1,24 @@
+package com.example.week4
+
+import android.content.Intent
+import android.os.Bundle
+import android.os.Handler
+import android.os.Looper
+import androidx.appcompat.app.AppCompatActivity
+import com.example.week4.databinding.ActivitySplashBinding
+
+class SplashActivity : AppCompatActivity() {
+ lateinit var binding: ActivitySplashBinding
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ binding = ActivitySplashBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ Handler(Looper.getMainLooper()).postDelayed({
+ val intent = Intent(this, MainActivity::class.java)
+ startActivity(intent)
+ finish()
+ }, 1500)
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/res/drawable/btn_actionbar_instagram.png b/app/src/main/res/drawable/btn_actionbar_instagram.png
new file mode 100644
index 0000000..90bc027
Binary files /dev/null and b/app/src/main/res/drawable/btn_actionbar_instagram.png differ
diff --git a/app/src/main/res/drawable/btn_arrow_black.png b/app/src/main/res/drawable/btn_arrow_black.png
new file mode 100644
index 0000000..cc38ca8
Binary files /dev/null and b/app/src/main/res/drawable/btn_arrow_black.png differ
diff --git a/app/src/main/res/drawable/btn_main_arrow_more.png b/app/src/main/res/drawable/btn_main_arrow_more.png
new file mode 100644
index 0000000..59e410c
Binary files /dev/null and b/app/src/main/res/drawable/btn_main_arrow_more.png differ
diff --git a/app/src/main/res/drawable/btn_main_mike.png b/app/src/main/res/drawable/btn_main_mike.png
new file mode 100644
index 0000000..9bddec6
Binary files /dev/null and b/app/src/main/res/drawable/btn_main_mike.png differ
diff --git a/app/src/main/res/drawable/btn_main_setting.png b/app/src/main/res/drawable/btn_main_setting.png
new file mode 100644
index 0000000..7a8d5d6
Binary files /dev/null and b/app/src/main/res/drawable/btn_main_setting.png differ
diff --git a/app/src/main/res/drawable/btn_main_ticket.png b/app/src/main/res/drawable/btn_main_ticket.png
new file mode 100644
index 0000000..52b6d64
Binary files /dev/null and b/app/src/main/res/drawable/btn_main_ticket.png differ
diff --git a/app/src/main/res/drawable/btn_miniplay_mvpause.png b/app/src/main/res/drawable/btn_miniplay_mvpause.png
new file mode 100644
index 0000000..470e046
Binary files /dev/null and b/app/src/main/res/drawable/btn_miniplay_mvpause.png differ
diff --git a/app/src/main/res/drawable/btn_miniplay_pause.png b/app/src/main/res/drawable/btn_miniplay_pause.png
new file mode 100644
index 0000000..470e046
Binary files /dev/null and b/app/src/main/res/drawable/btn_miniplay_pause.png differ
diff --git a/app/src/main/res/drawable/btn_miniplayer_go_list.png b/app/src/main/res/drawable/btn_miniplayer_go_list.png
new file mode 100644
index 0000000..1b2d977
Binary files /dev/null and b/app/src/main/res/drawable/btn_miniplayer_go_list.png differ
diff --git a/app/src/main/res/drawable/btn_miniplayer_next.png b/app/src/main/res/drawable/btn_miniplayer_next.png
new file mode 100644
index 0000000..3aedba3
Binary files /dev/null and b/app/src/main/res/drawable/btn_miniplayer_next.png differ
diff --git a/app/src/main/res/drawable/btn_miniplayer_play.png b/app/src/main/res/drawable/btn_miniplayer_play.png
new file mode 100644
index 0000000..f619072
Binary files /dev/null and b/app/src/main/res/drawable/btn_miniplayer_play.png differ
diff --git a/app/src/main/res/drawable/btn_miniplayer_previous.png b/app/src/main/res/drawable/btn_miniplayer_previous.png
new file mode 100644
index 0000000..d0bf1f6
Binary files /dev/null and b/app/src/main/res/drawable/btn_miniplayer_previous.png differ
diff --git a/app/src/main/res/drawable/btn_panel_play_large.png b/app/src/main/res/drawable/btn_panel_play_large.png
new file mode 100644
index 0000000..4ac7103
Binary files /dev/null and b/app/src/main/res/drawable/btn_panel_play_large.png differ
diff --git a/app/src/main/res/drawable/btn_player_eq_off.png b/app/src/main/res/drawable/btn_player_eq_off.png
new file mode 100644
index 0000000..f23d9c6
Binary files /dev/null and b/app/src/main/res/drawable/btn_player_eq_off.png differ
diff --git a/app/src/main/res/drawable/btn_player_go_list.png b/app/src/main/res/drawable/btn_player_go_list.png
new file mode 100644
index 0000000..1b2d977
Binary files /dev/null and b/app/src/main/res/drawable/btn_player_go_list.png differ
diff --git a/app/src/main/res/drawable/btn_player_more.png b/app/src/main/res/drawable/btn_player_more.png
new file mode 100644
index 0000000..a8ad9e6
Binary files /dev/null and b/app/src/main/res/drawable/btn_player_more.png differ
diff --git a/app/src/main/res/drawable/btn_player_related.png b/app/src/main/res/drawable/btn_player_related.png
new file mode 100644
index 0000000..9026fe5
Binary files /dev/null and b/app/src/main/res/drawable/btn_player_related.png differ
diff --git a/app/src/main/res/drawable/btn_player_setting.png b/app/src/main/res/drawable/btn_player_setting.png
new file mode 100644
index 0000000..0df8f69
Binary files /dev/null and b/app/src/main/res/drawable/btn_player_setting.png differ
diff --git a/app/src/main/res/drawable/btn_player_unlike_off.png b/app/src/main/res/drawable/btn_player_unlike_off.png
new file mode 100644
index 0000000..b539504
Binary files /dev/null and b/app/src/main/res/drawable/btn_player_unlike_off.png differ
diff --git a/app/src/main/res/drawable/discovery_banner_aos.jpg b/app/src/main/res/drawable/discovery_banner_aos.jpg
new file mode 100644
index 0000000..c905515
Binary files /dev/null and b/app/src/main/res/drawable/discovery_banner_aos.jpg differ
diff --git a/app/src/main/res/drawable/ic_bottom_home_no_select.png b/app/src/main/res/drawable/ic_bottom_home_no_select.png
new file mode 100644
index 0000000..69a8ab6
Binary files /dev/null and b/app/src/main/res/drawable/ic_bottom_home_no_select.png differ
diff --git a/app/src/main/res/drawable/ic_bottom_home_select.png b/app/src/main/res/drawable/ic_bottom_home_select.png
new file mode 100644
index 0000000..c0ff48e
Binary files /dev/null and b/app/src/main/res/drawable/ic_bottom_home_select.png differ
diff --git a/app/src/main/res/drawable/ic_bottom_locker_no_select.png b/app/src/main/res/drawable/ic_bottom_locker_no_select.png
new file mode 100644
index 0000000..a67dec3
Binary files /dev/null and b/app/src/main/res/drawable/ic_bottom_locker_no_select.png differ
diff --git a/app/src/main/res/drawable/ic_bottom_locker_select.png b/app/src/main/res/drawable/ic_bottom_locker_select.png
new file mode 100644
index 0000000..042489f
Binary files /dev/null and b/app/src/main/res/drawable/ic_bottom_locker_select.png differ
diff --git a/app/src/main/res/drawable/ic_bottom_look_no_select.png b/app/src/main/res/drawable/ic_bottom_look_no_select.png
new file mode 100644
index 0000000..6c2f4f0
Binary files /dev/null and b/app/src/main/res/drawable/ic_bottom_look_no_select.png differ
diff --git a/app/src/main/res/drawable/ic_bottom_look_select.png b/app/src/main/res/drawable/ic_bottom_look_select.png
new file mode 100644
index 0000000..3d169e4
Binary files /dev/null and b/app/src/main/res/drawable/ic_bottom_look_select.png differ
diff --git a/app/src/main/res/drawable/ic_bottom_search_no_select.png b/app/src/main/res/drawable/ic_bottom_search_no_select.png
new file mode 100644
index 0000000..a77b8c5
Binary files /dev/null and b/app/src/main/res/drawable/ic_bottom_search_no_select.png differ
diff --git a/app/src/main/res/drawable/ic_bottom_search_select.png b/app/src/main/res/drawable/ic_bottom_search_select.png
new file mode 100644
index 0000000..d5c8a72
Binary files /dev/null and b/app/src/main/res/drawable/ic_bottom_search_select.png differ
diff --git a/app/src/main/res/drawable/ic_flo_logo.png b/app/src/main/res/drawable/ic_flo_logo.png
new file mode 100644
index 0000000..643224d
Binary files /dev/null and b/app/src/main/res/drawable/ic_flo_logo.png differ
diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..07d5da9
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_main_facebook.png b/app/src/main/res/drawable/ic_main_facebook.png
new file mode 100644
index 0000000..83e9732
Binary files /dev/null and b/app/src/main/res/drawable/ic_main_facebook.png differ
diff --git a/app/src/main/res/drawable/ic_main_instagram.png b/app/src/main/res/drawable/ic_main_instagram.png
new file mode 100644
index 0000000..398ce61
Binary files /dev/null and b/app/src/main/res/drawable/ic_main_instagram.png differ
diff --git a/app/src/main/res/drawable/ic_main_twitter.png b/app/src/main/res/drawable/ic_main_twitter.png
new file mode 100644
index 0000000..6ddc68e
Binary files /dev/null and b/app/src/main/res/drawable/ic_main_twitter.png differ
diff --git a/app/src/main/res/drawable/ic_main_youtube.png b/app/src/main/res/drawable/ic_main_youtube.png
new file mode 100644
index 0000000..0c4ec93
Binary files /dev/null and b/app/src/main/res/drawable/ic_main_youtube.png differ
diff --git a/app/src/main/res/drawable/ic_my_like_off.png b/app/src/main/res/drawable/ic_my_like_off.png
new file mode 100644
index 0000000..c06e139
Binary files /dev/null and b/app/src/main/res/drawable/ic_my_like_off.png differ
diff --git a/app/src/main/res/drawable/ic_today_music.png b/app/src/main/res/drawable/ic_today_music.png
new file mode 100644
index 0000000..714f4ad
Binary files /dev/null and b/app/src/main/res/drawable/ic_today_music.png differ
diff --git a/app/src/main/res/drawable/img_album_exp.png b/app/src/main/res/drawable/img_album_exp.png
new file mode 100644
index 0000000..6e3f38a
Binary files /dev/null and b/app/src/main/res/drawable/img_album_exp.png differ
diff --git a/app/src/main/res/drawable/img_album_exp2.png b/app/src/main/res/drawable/img_album_exp2.png
new file mode 100644
index 0000000..28ea3ee
Binary files /dev/null and b/app/src/main/res/drawable/img_album_exp2.png differ
diff --git a/app/src/main/res/drawable/img_album_lp.png b/app/src/main/res/drawable/img_album_lp.png
new file mode 100644
index 0000000..29fb1b4
Binary files /dev/null and b/app/src/main/res/drawable/img_album_lp.png differ
diff --git a/app/src/main/res/drawable/img_first_album_default.png b/app/src/main/res/drawable/img_first_album_default.png
new file mode 100644
index 0000000..926d34f
Binary files /dev/null and b/app/src/main/res/drawable/img_first_album_default.png differ
diff --git a/app/src/main/res/drawable/img_home_viewpager_exp.png b/app/src/main/res/drawable/img_home_viewpager_exp.png
new file mode 100644
index 0000000..da78032
Binary files /dev/null and b/app/src/main/res/drawable/img_home_viewpager_exp.png differ
diff --git a/app/src/main/res/drawable/img_home_viewpager_exp2.png b/app/src/main/res/drawable/img_home_viewpager_exp2.png
new file mode 100644
index 0000000..50fa4be
Binary files /dev/null and b/app/src/main/res/drawable/img_home_viewpager_exp2.png differ
diff --git a/app/src/main/res/drawable/img_potcast_exp.png b/app/src/main/res/drawable/img_potcast_exp.png
new file mode 100644
index 0000000..50a46e0
Binary files /dev/null and b/app/src/main/res/drawable/img_potcast_exp.png differ
diff --git a/app/src/main/res/drawable/img_video_exp.png b/app/src/main/res/drawable/img_video_exp.png
new file mode 100644
index 0000000..7f6b05f
Binary files /dev/null and b/app/src/main/res/drawable/img_video_exp.png differ
diff --git a/app/src/main/res/drawable/nugu_btn_down.png b/app/src/main/res/drawable/nugu_btn_down.png
new file mode 100644
index 0000000..03a04c5
Binary files /dev/null and b/app/src/main/res/drawable/nugu_btn_down.png differ
diff --git a/app/src/main/res/drawable/nugu_btn_pause_32.png b/app/src/main/res/drawable/nugu_btn_pause_32.png
new file mode 100644
index 0000000..9388aa3
Binary files /dev/null and b/app/src/main/res/drawable/nugu_btn_pause_32.png differ
diff --git a/app/src/main/res/drawable/nugu_btn_play_32.png b/app/src/main/res/drawable/nugu_btn_play_32.png
new file mode 100644
index 0000000..b781e4c
Binary files /dev/null and b/app/src/main/res/drawable/nugu_btn_play_32.png differ
diff --git a/app/src/main/res/drawable/nugu_btn_random_inactive.png b/app/src/main/res/drawable/nugu_btn_random_inactive.png
new file mode 100644
index 0000000..fe4f880
Binary files /dev/null and b/app/src/main/res/drawable/nugu_btn_random_inactive.png differ
diff --git a/app/src/main/res/drawable/nugu_btn_repeat_inactive.png b/app/src/main/res/drawable/nugu_btn_repeat_inactive.png
new file mode 100644
index 0000000..1e4044d
Binary files /dev/null and b/app/src/main/res/drawable/nugu_btn_repeat_inactive.png differ
diff --git a/app/src/main/res/drawable/nugu_btn_skip_next_32.png b/app/src/main/res/drawable/nugu_btn_skip_next_32.png
new file mode 100644
index 0000000..fc02f28
Binary files /dev/null and b/app/src/main/res/drawable/nugu_btn_skip_next_32.png differ
diff --git a/app/src/main/res/drawable/nugu_btn_skip_previous_32.png b/app/src/main/res/drawable/nugu_btn_skip_previous_32.png
new file mode 100644
index 0000000..03ec854
Binary files /dev/null and b/app/src/main/res/drawable/nugu_btn_skip_previous_32.png differ
diff --git a/app/src/main/res/drawable/widget_black_play.png b/app/src/main/res/drawable/widget_black_play.png
new file mode 100644
index 0000000..0ec2700
Binary files /dev/null and b/app/src/main/res/drawable/widget_black_play.png differ
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..91a6ca1
--- /dev/null
+++ b/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_song.xml b/app/src/main/res/layout/activity_song.xml
new file mode 100644
index 0000000..508d71c
--- /dev/null
+++ b/app/src/main/res/layout/activity_song.xml
@@ -0,0 +1,251 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_splash.xml b/app/src/main/res/layout/activity_splash.xml
new file mode 100644
index 0000000..eb6e1c1
--- /dev/null
+++ b/app/src/main/res/layout/activity_splash.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_album.xml b/app/src/main/res/layout/fragment_album.xml
new file mode 100644
index 0000000..8f4fe46
--- /dev/null
+++ b/app/src/main/res/layout/fragment_album.xml
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
new file mode 100644
index 0000000..b064ee9
--- /dev/null
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_locker.xml b/app/src/main/res/layout/fragment_locker.xml
new file mode 100644
index 0000000..64b8ca9
--- /dev/null
+++ b/app/src/main/res/layout/fragment_locker.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_look.xml b/app/src/main/res/layout/fragment_look.xml
new file mode 100644
index 0000000..77d9ef6
--- /dev/null
+++ b/app/src/main/res/layout/fragment_look.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_search.xml b/app/src/main/res/layout/fragment_search.xml
new file mode 100644
index 0000000..77d9ef6
--- /dev/null
+++ b/app/src/main/res/layout/fragment_search.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_song_activity.xml b/app/src/main/res/layout/fragment_song_activity.xml
new file mode 100644
index 0000000..2be8fd8
--- /dev/null
+++ b/app/src/main/res/layout/fragment_song_activity.xml
@@ -0,0 +1,275 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_album.xml b/app/src/main/res/layout/item_album.xml
new file mode 100644
index 0000000..9ce569b
--- /dev/null
+++ b/app/src/main/res/layout/item_album.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_saved_song.xml b/app/src/main/res/layout/item_saved_song.xml
new file mode 100644
index 0000000..1e37452
--- /dev/null
+++ b/app/src/main/res/layout/item_saved_song.xml
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_song.xml b/app/src/main/res/layout/item_song.xml
new file mode 100644
index 0000000..b1b081a
--- /dev/null
+++ b/app/src/main/res/layout/item_song.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/menu/bottom_nav_menu.xml b/app/src/main/res/menu/bottom_nav_menu.xml
new file mode 100644
index 0000000..a198054
--- /dev/null
+++ b/app/src/main/res/menu/bottom_nav_menu.xml
@@ -0,0 +1,19 @@
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..6f3b755
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..6f3b755
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/app/src/main/res/mipmap-hdpi/ic_launcher.webp
new file mode 100644
index 0000000..c209e78
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..b2dfe3d
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/app/src/main/res/mipmap-mdpi/ic_launcher.webp
new file mode 100644
index 0000000..4f0f1d6
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..62b611d
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
new file mode 100644
index 0000000..948a307
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..1b9a695
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..28d4b77
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9287f50
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..aa7d642
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9126ae3
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ
diff --git a/app/src/main/res/raw/butter.mp3 b/app/src/main/res/raw/butter.mp3
new file mode 100644
index 0000000..6fdbfd9
Binary files /dev/null and b/app/src/main/res/raw/butter.mp3 differ
diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml
new file mode 100644
index 0000000..be4f9a9
--- /dev/null
+++ b/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,7 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..c8524cd
--- /dev/null
+++ b/app/src/main/res/values/colors.xml
@@ -0,0 +1,5 @@
+
+
+ #FF000000
+ #FFFFFFFF
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..ca79f85
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ week4
+
\ No newline at end of file
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..84c3eef
--- /dev/null
+++ b/app/src/main/res/values/themes.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/xml/backup_rules.xml b/app/src/main/res/xml/backup_rules.xml
new file mode 100644
index 0000000..4df9255
--- /dev/null
+++ b/app/src/main/res/xml/backup_rules.xml
@@ -0,0 +1,13 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/xml/data_extraction_rules.xml b/app/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 0000000..9ee9997
--- /dev/null
+++ b/app/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/test/java/com/example/week4/ExampleUnitTest.kt b/app/src/test/java/com/example/week4/ExampleUnitTest.kt
new file mode 100644
index 0000000..37368c0
--- /dev/null
+++ b/app/src/test/java/com/example/week4/ExampleUnitTest.kt
@@ -0,0 +1,17 @@
+package com.example.week4
+
+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/build.gradle.kts b/build.gradle.kts
new file mode 100644
index 0000000..922f551
--- /dev/null
+++ b/build.gradle.kts
@@ -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/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..20e2a01
--- /dev/null
+++ b/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/gradle/libs.versions.toml b/gradle/libs.versions.toml
new file mode 100644
index 0000000..c44280b
--- /dev/null
+++ b/gradle/libs.versions.toml
@@ -0,0 +1,26 @@
+[versions]
+agp = "8.13.0"
+kotlin = "2.0.21"
+coreKtx = "1.17.0"
+junit = "4.13.2"
+junitVersion = "1.3.0"
+espressoCore = "3.7.0"
+appcompat = "1.7.1"
+material = "1.13.0"
+activity = "1.11.0"
+constraintlayout = "2.2.1"
+
+[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/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..e708b1c
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..42edf62
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Thu Oct 09 11:59:05 KST 2025
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
new file mode 100644
index 0000000..4f906e0
--- /dev/null
+++ b/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/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..107acd3
--- /dev/null
+++ b/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/settings.gradle.kts b/settings.gradle.kts
new file mode 100644
index 0000000..c06a002
--- /dev/null
+++ b/settings.gradle.kts
@@ -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()
+ }
+}
+
+rootProject.name = "week4"
+include(":app")
+
\ No newline at end of file