Skip to content

Conversation

@Nick9417
Copy link
Contributor

@Nick9417 Nick9417 commented Oct 29, 2025

📌 PR 제목

해당 pr에 대한 내용을 요약해주세요

✅ 변경 사항

이번 PR에서 변경된 내용을 간략히 정리해주세요.

  • 보관함 화면(LockerFragment) 저장 앨범 탭에 들어갈 RecyclerView 레이아웃 및 RecyclerView 만들기
  • 재생/멈춤 버튼을 누르면, 음악 재생/정지 해보기
  • 이전곡/다음곡 버튼을 누르면, 음악 초기화 해보기(음원이 하나일 경우, 다시 처음부터 재생)
  • SeekBar를 이용해, 음악 진행도 표현해보기
  • 텍스트를 통해 현재, 노래 진행 시간 출력해보기
  • 맨 처음 앱을 실행할 때, 1-2초간 스플래쉬 화면을 보여주고, 메인 화면(MainActivity)로 전환되도록 구현하기

📷 영상 및 스크린샷

스플래쉬 화면
화면 캡처 2025-10-29 171059
보관함 - 저장된 앨법 재생버튼 클릭시 더보기 버튼 클릭시
화면 캡처 2025-10-29 171135 화면 캡처 2025-10-29 171203 화면 캡처 2025-10-29 171232
MusicPlayer Seekbar
화면 캡처 2025-10-29 171319

🔗 알게 된 사항

seekbar를 다루는 방법을 알게 되었ㅅ브니당!
+테마를 이용하여 스플래쉬 화면을 구현하는 방법을 알게 되었습니다.

📝 질문 사항

@Nick9417 Nick9417 changed the title Nick/#47 [Misson] 5주차 미션 수행 Oct 30, 2025
@Nick9417 Nick9417 linked an issue Oct 30, 2025 that may be closed by this pull request
Copy link
Member

@yangjiae12 yangjiae12 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

runOnUiThread {
binding.songSeekbarSb.progress = ((mills/playTime)*100).toInt()
binding.songSeekbarSb.progress = ((mills/playTime)*10).toInt()
}
Copy link
Member

Choose a reason for hiding this comment

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

지난 번에 Progress 계산에서 오류가 났다고 말씀해 주셨는데, 코드를 보니까 SeekBar의 Max값이 10000이어서 그런 것 같습니다! 현재 Progress를 계산할 때 밀리초를 초로 나눈 다음 100을 곱했는데 이렇게 되면 60초 노래 기준으로 최종 계산 값이 100000이라서 Max값을 10000으로 했을 때는 노래가 6초만 재생되어도 Seekbar가 끝났던 것으로 보이네요~

보정 계수가 직관적이지 않으니까 아예 playTime을 밀리초로 통일해서 코드를 더 명확하게 개선해도 좋을 것 같아요~

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.

[Mission] 5주차 미션 제출

3 participants