-
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
footerの実装 #43
base: master
Are you sure you want to change the base?
footerの実装 #43
Conversation
shoppingListTabLayout.addOnTabSelectedListener(object: TabLayout.OnTabSelectedListener { | ||
override fun onTabSelected(tab: TabLayout.Tab) { | ||
var position = shoppingListTabLayout.selectedTabPosition | ||
if (position == 0) { |
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.
ここif文よりもwhenの方がいいかも
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.
ちなみにif文よりもwhen文のほうがいい理由って何ですか?
|
||
override fun onTabReselected(tab: TabLayout.Tab) { | ||
var position = shoppingListTabLayout.selectedTabPosition | ||
if (position == 0) { |
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.
ここも
↑「if文からwhen文に変更」のミスです |
マージしたいのでコンフリクト直しておいてください。 |
… into add-tabButton-shinbo
… into add-tabButton-shinbo
baseBranchを変更したらコンフリクトが治りました。 |
Issueの番号 / Title
#8
どのように解決したか / How
tabLayoutでfooterを作成した
なぜそのような解決策を取ったのか / Why
tabLayoutでfooterを作成した
その他 / スクリーンショットなど
ui作成のプルリクから変更してません