Skip to content

Conversation

@HwangJaemin49
Copy link

๐Ÿ“Œ ์ด์Šˆ ๋ฒˆํ˜ธ

ex) #1

๐Ÿ’ป ์ž‘์—… ๋‚ด์šฉ

์ด๋ฒˆ PR์—์„œ ์ž‘์—…ํ•œ ๋‚ด์šฉ์„ ๊ฐ„๋žตํžˆ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”(์ด๋ฏธ์ง€ ์ฒจ๋ถ€ ๊ฐ€๋Šฅ)
ํšŒ์›๊ฐ€์ž…, ๋กœ๊ทธ์ธ/๋กœ๊ทธ์•„์›ƒ ๊ธฐ๋Šฅ ๊ตฌํ˜„
์•จ๋ฒ” ์ข‹์•„์š” ๊ธฐ๋Šฅ ์ถ”๊ฐ€

๐Ÿ“ข ๊ธฐํƒ€ ์‚ฌํ•ญ

Copy link
Contributor

@SuHyeon00 SuHyeon00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์•„๋ž˜ ์ฝ”๋ฉ˜ํŠธ์— ๋‚จ๊ฒจ์ง„ ๋ถ€๋ถ„๋Œ€๋กœ ์ˆ˜์ •ํ•œ ํ›„ ์‹คํ–‰ํ•ด๋ณด์•˜์„ ๋•Œ ๊ธฐ๋Šฅ๋“ค์€ ์ œ๋Œ€๋กœ ๋™์ž‘ํ•˜๋Š” ๊ฒƒ ๊ฐ™์•„์š”! ํ˜„์žฌ flo ํ”„๋กœ์ ํŠธ์˜ ๊ฐ ํด๋ž˜์Šค๋“ค์ด ์–ด๋–ค ๊ธฐ๋Šฅ์„ ํ•˜๋Š” ๊ฒƒ์ธ์ง€ ํŒŒ์•…ํ•  ํ•„์š”๊ฐ€ ์žˆ์–ด ๋ณด์ž…๋‹ˆ๋‹ค! ๊ฐ ๊ธฐ๋Šฅ์— ๋งž์ถ”์–ด ํด๋”๋„ ์ •๋ฆฌํ•ด๋ณด์‹œ๋Š” ๊ฑธ ์ถ”์ฒœ๋“œ๋ ค์š”~ ์‹ค์Šต ํ•˜์‹œ๋А๋ผ ์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค!

android:id="@+id/main_player_cl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/player_bg"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ•ด๋‹น ๋ฆฌ์†Œ์Šค๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†๋‹ค๊ณ  ๋œน๋‹ˆ๋‹ค! colors.xml ํŒŒ์ผ์— ์ •์˜๋œ ์ปฌ๋Ÿฌ๋ฅผ ์—ฐ๊ฒฐํ•ด์ฃผ์‹œ๊ฑฐ๋‚˜ ์ƒˆ๋กœ ์ƒ‰์ƒ ์ •์˜ํ•ด์ฃผ์„ธ์š”~

@@ -0,0 +1,60 @@
package com.example.flo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ˜„์žฌ SavedAlbumFragment ํŒŒ์ผ์˜ ํŒจํ‚ค์ง€ ์„ค์ •์ด com.example.flo๋กœ ๋˜์–ด์žˆ์–ด์„œ LockerRVAdapter ํด๋ž˜์Šค์—์„œ SavedAlbumFragment๋ฅผ ์ž„ํฌํŠธํ•˜๋Š” ๋ถ€๋ถ„๊ณผ ์ถฉ๋Œ์ด ๋‚˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ํ•ด๋‹น ํŒจํ‚ค์ง€๋ฅผ com.example.flo_clone์œผ๋กœ ์ˆ˜์ •ํ•ด์ฃผ์‹œ๊ฑฐ๋‚˜ LockerRVAdapter์— ์ž„ํฌํŠธ๋ฌธ์„ ์ˆ˜์ •ํ•ด์ฃผ์„ธ์š”!


import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.example.flo_clone.SavedAlbumFragment
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด๋ถ€๋ถ„์ž…๋‹ˆ๋‹ค~

Comment on lines +15 to +28
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

<activity
android:name=".SongActivity"
android:exported="true" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MainActivity์™€ SongActivity๋ฅผ mainfest ํŒŒ์ผ์— ์ถ”๊ฐ€ํ•ด์ฃผ์‹  ๊ฒƒ์ฒ˜๋Ÿผ ์ƒˆ๋กœ์šด ์•กํ‹ฐ๋น„ํ‹ฐ๋ฅผ ์‚ฌ์šฉํ•˜์‹ ๋‹ค๋ฉด (LoginActivity, SingUpActivity) ์ด ํŒŒ์ผ์— ํ•ญ์ƒ ์ถ”๊ฐ€ํ•ด์ฃผ์…”์•ผ์ง€ ํ™”๋ฉด์— ๋ถˆ๋Ÿฌ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค!

Comment on lines +21 to +22
signUp()
finish()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finish() ํ•จ์ˆ˜๋ฅผ ์ด๊ณณ์— ๋‘๊ฒŒ ๋œ๋‹ค๋ฉด signUp์ด ์ œ๋Œ€๋กœ ๋˜์ง€ ์•Š์•˜์„ ๋•Œ์—๋„ ํšŒ์›๊ฐ€์ž… ํ™”๋ฉด์ด ์ข…๋ฃŒ๋˜๊ธฐ ๋•Œ๋ฌธ์— finish๋Š” ํšŒ์›๊ฐ€์ž…์ด ์„ฑ๊ณตํ–ˆ์„ ๊ฒฝ์šฐ์—๋งŒ ํ˜„์žฌ ์•กํ‹ฐ๋น„ํ‹ฐ๊ฐ€ ์ข…๋ฃŒ๋˜๋„๋ก ์„ค์ •ํ•ด์ฃผ์„ธ์š”!

Comment on lines +9 to +10
import androidx.media3.common.util.Log
import androidx.media3.common.util.UnstableApi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋กœ๊ทธ ํด๋ž˜์Šค๋Š” android.util์—์„œ ์ž„ํฌํŠธํ•ด์ฃผ์„ธ์š”!

Comment on lines +43 to +45
override fun onRemoveSong(songId: Int) {
albumDB.albumDao().getLikedAlbums(getJwt())
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํด๋ฆญ ๋ฆฌ์Šค๋„ˆ ๋„ค์ด๋ฐ๊ณผ ์‹ค์ œ๋กœ ๋™์ž‘ํ•˜๋Š” ๊ธฐ๋Šฅ์ด ๋งค์น˜๋˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์•„์š”. AlbumLockerRVAdapter์˜ onRemove ํ•จ์ˆ˜ ๋™์ž‘์„ ์‚ดํŽด๋ณด๋ฉด ๋”๋ณด๊ธฐ ์•„์ด์ฝ˜์„ ๋ˆŒ๋ €์„ ๋•Œ ์ข‹์•„์š”ํ–ˆ๋˜ ์•จ๋ฒ”์ด ์ข‹์•„์š”๊ฐ€ ํ•ด์ œ๋˜์–ด์•ผ ํ•˜๋Š” ๊ฒƒ ๊ฐ™์€๋ฐ ํ˜„์žฌ๋Š” ๋กœ๊ทธ์ธ ํ•œ ์œ ์ €์˜ ์ข‹์•„์š”ํ•œ ์•จ๋ฒ” ๋ชฉ๋ก์„ ๋ถˆ๋Ÿฌ์˜ค๋Š” ๊ธฐ๋Šฅ์œผ๋กœ ๊ตฌํ˜„๋˜์–ด์žˆ๋Š” ๊ฒƒ ๊ฐ™๋„ค์š”. ํ•ด๋‹น ๋ถ€๋ถ„ ์ˆ˜์ • ๋ถ€ํƒ๋“œ๋ ค์š”!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ถ”๊ฐ€๋กœ ํŒŒ๋ผ๋ฏธํ„ฐ ๋„ค์ด๋ฐ๋„ song์ด ์•„๋‹Œ album๊ณผ ๊ด€๋ จ๋œ ๊ธฐ๋Šฅ์ด๊ธฐ ๋•Œ๋ฌธ์— ์ˆ˜์ •ํ•  ํ•„์š”๊ฐ€ ์žˆ์–ด ๋ณด์ž…๋‹ˆ๋‹ค..!

Comment on lines +33 to +44
// binding.homeAlbumImgIv1.setOnClickListener {
// var albumFragment = AlbumFragment()
// albumFragment.arguments = Bundle().apply {
// putString("title", binding.homeAlbumTitleTv1.text.toString())
// putString("singer", binding.homeAlbumSingerTv1.text.toString())
// }
// (context as MainActivity)
// .supportFragmentManager
// .beginTransaction()
// .replace(R.id.nav_host_fragment_activity_main, albumFragment)
// .commitAllowingStateLoss()
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ์ฝ”๋“œ๋Š” ์ง€์›Œ์ฃผ์„ธ์š”!

Comment on lines +15 to +24
companion object {
fun onItemClick(album: Album) {

}

fun onRemoveAlbum(position: Int) {

}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด๋ถ€๋ถ„์€ ๋ญ˜๊นŒ์š”..?!

}

override fun onRemoveAlbum(position: Int) {
albumRVAdapter.removeItem(position)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์•จ๋ฒ” ์‚ญ์ œ์™€ ๊ด€๋ จ๋œ ๋กœ์ง์ด homeFragment์—์„œ ๋™์ž‘ํ•  ๊ธฐ๋Šฅ์ด ์—†๊ณ  AlbumRVAdapter ๋‚ด๋ถ€์—์„œ๋งŒ ๋™์ž‘ํ•˜๋ฉด ๋˜๋Š” ๊ธฐ๋Šฅ์ด๋ผ๋ฉด ๊ตณ์ด ํด๋ฆญ ๋ฆฌ์Šค๋„ˆ๋กœ ์™ธ๋ถ€์—์„œ ์„ค์ •ํ•  ํ•„์š” ์—†์ด AlbumRVAdpater์˜ onRemove ํ•จ์ˆ˜๋ฅผ ์ •์˜ํ•˜์…”์„œ ํ•ด๋‹น ํ•จ์ˆ˜๋กœ ์—ฐ๊ฒฐํ•ด์ฃผ์‹œ๋ฉด ๋  ๊ฒƒ ๊ฐ™์•„์š”~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants