-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEP-51 feat: Navigator 구현 #17
Conversation
SonarCloud Code Analysis에서 Quality failed가 뜬 이유는 |
} | ||
|
||
private fun changeFragment(fragment: Fragment) { | ||
supportFragmentManager.beginTransaction().replace(binding.flMain.id, fragment).commit() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 transaction 이 있네요. 신기하네요 ㅋㅋ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flutter에도 있나보군요! ㅋㅋㅋ
<item | ||
android:id="@+id/homeFragment" | ||
android:icon="@drawable/ic_tab_home" | ||
android:title="홈" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title 값은 string.xml 에 정의하는 것보다 bottom_nav_menu.xml 에서 관리하는게 나을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서 노란색으로 경고표시..?가 뜬다면 추출하고 아니라면 굳이 안해도 되지 않을까 싶습니닷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
노란색 경고 뜨긴합니다... ㅎㅎ...
정석은 이런 거 다 string.xml에 놓는 게 맞긴 한데
저번에 oo회사에서는 이런 걸 정말 다 일일이 string.xml에 넣어 놓고 사용하나 봤는데
그냥 이렇게 짜는 것 같더라구요 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다~! 구조 짜주셔서 감사해요!!!
@@ -0,0 +1 @@ | |||
/build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
엇 친절하게 설명과 링크까지... 감사합니다 ㅎㅎ!
// 혜인님 레포에 있는 것처럼 setOnSingleClickListener를 만들어서 사용할 지 여부와 | ||
// viewModel에서 클릭리스너를 달아줄지 등을 협의하고 확정되면 추후에 수정하겠습니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
viewModel에서 클릭리스너를 다는 방식은 어떤건가용 ?.?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
양방향 바인딩이용!
xml 에서 onClick에 람다식 넣어주는 거요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하!! 흠 그러게요,,.. 섞어서 써도 괜찮을 것 같고 그냥 하나로 정하는 것도 좋을 것 같아요!
서버 호출 생각하면 setOnSingleClickListener를 쓰는게 좋을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setOnSingleClickListener 이거 interval을 주고 그러던데 정확히 무엇을 위한 커스텀인가요? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 굳이 interval 값을 고정하는게 아니라 파라미터로서 주는 이유는 잘 모르겠습니닷.....
presentation/home/build.gradle
Outdated
implementation deps.jetpack.appCompat | ||
implementation deps.jetpack.material | ||
implementation deps.jetpack.constraintLayout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implementation(jetpackDeps)
를 했는데 오류가 뜨는건가요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앗... 제가 헷갈렸네요... 아닙니다 ㅠ 롤백해두었습니다.
SonarCloud Quality Gate failed. |
💁♂️ PR 내용
📢 전달사항
혜인님 레포에는 BottomNavigationView를 TabLayout이랑 ViewPager로 만들었던데
뭔가 특정 커스텀을 위해 그렇게 만드신 것 같아서
저는 그냥
BottomNavigationView
사용했습니다! (Jetpack 아님)근데 제가
Navigator
를 제대로 이해하고 사용한 건지 모르겠네요...만들어 두긴 했는데 활용이 안되고 있는 것 같은데 😵💫
우선 UT 전 결과물에는 문제 없습니다.
StatusBar
를 흰색으로 변경했습니다.이거 하나를 위해 브랜치를 따기 애매해서 같이 바꿔버렸어요.
그래도 따로 하나 파는 게 바람직 한 걸까 싶기도 하고...
BaseFragment의
_binding
부분이 계속 오류가 떠서 코드를 조금 수정했습니다.