-
Notifications
You must be signed in to change notification settings - Fork 0
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
[FIX] week calendar #38
The head ref may contain hidden characters: "29-fix-\uC9C0\uB3C4-\uC5F0\uB3D9-\uBB38\uC81C-\uC218\uC815"
Conversation
… 29-fix-지도-연동-문제-수정 # Conflicts: # app/build.gradle # app/src/main/AndroidManifest.xml
… 29-fix-지도-연동-문제-수정 # Conflicts: # app/build.gradle # app/src/main/AndroidManifest.xml
… 29-fix-지도-연동-문제-수정 # Conflicts: # .idea/misc.xml # app/src/main/java/com/eatssu/android/ui/main/MainActivity.kt
today = binding.date.text as String | ||
day = binding.day.text as String |
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.
여기 as String을 붙여준 이유가 따로 있나요?
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으로 자동 변환이 안된다는 오류 있어서 강제 변환 해줬습니당
/* | ||
binding.root.setOnClickListener { | ||
// Update the selectedDate to the clicked date | ||
selectedDate = today as String? | ||
// Update the background of the clicked date | ||
for(holder in allViewHolders){ | ||
holder.binding.weekCardview.setBackgroundResource(com.eatssu.android.R.drawable.ic_selector_background_white) | ||
Log.d("searchfor", holder.toString()) | ||
} | ||
selectedDate?.let { it1 -> Log.d("rootdata", it1) } | ||
val bundle : Bundle = Bundle() | ||
bundle.putString("calendardata", selectedDate) | ||
|
||
val intent = Intent(binding.root.context, MainActivity::class.java) | ||
intent.putExtra("calendardata", selectedDate) | ||
ContextCompat.startActivity(binding.root.context, intent, null) | ||
|
||
*//*val lunchFragment = LunchFragment() | ||
lunchFragment.arguments = bundle*//* | ||
|
||
*//*val caledarFragment = CalendarFragment() | ||
|
||
lateinit var dataPassListener : onDataPassListener | ||
|
||
dataPassListener = caledarFragment.context as onDataPassListener | ||
dataPassListener.onDataPass(selectedDate)*//* | ||
|
||
binding.weekCardview.setBackgroundResource(com.eatssu.android.R.drawable.selector_background_blue) | ||
}*/ |
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.
Adapter에 있을 코드를 MainActivity로 옮겨서 삭제할게요!
android:fontFamily="@font/noto_medium" | ||
android:text="저작권 도용 의심 (사진 등)" /> | ||
android:text="저작권 도용 의심 (사진 등)" /> |
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.
text는 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.
네! 신고하기 브랜치에서 변경할게용
개요
작업 사항
스크린샷 및 작동 영상