-
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
[FEAT] update review #65
Conversation
… 53-feat-update-review # Conflicts: # app/src/main/java/com/eatssu/android/adapter/FixedMenuAdapter.kt # app/src/main/java/com/eatssu/android/view/review/ReviewListActivity.kt
… 53-feat-update-review # Conflicts: # app/src/main/AndroidManifest.xml # app/src/main/java/com/eatssu/android/adapter/TodayMealAdapter.kt
… 53-feat-update-review
…tSSU-Android into 53-feat-update-review
@@ -143,13 +140,17 @@ class MainActivity : AppCompatActivity() { | |||
|
|||
calendarAdapter = CalendarAdapter(calendarList) | |||
|
|||
val viewModel = ViewModelProvider(this@MainActivity)[CalendarViewModel::class.java] |
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.
앗 그건 아니구 처음 접근 했을 때 오늘 날짜 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.
오잉 그러면 어캐한거죠!?
val service = mRetrofit.create(ReviewService::class.java) | ||
|
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.
요기 mRetrofit
은 멀티파트용 레트로핏 객체입니다! 리뷰 수정의 경우, 멀티파트 폼이 아닌 json형식으로 저희 일반 토큰 있는 레트로핏
을 사용해야해요! 420 뜨던데, 이게 문제였던 것 같음요
Toast.makeText(this@MyReviewDialogActivity, "리뷰 삭제가 취소되었습니다", Toast.LENGTH_SHORT).show() | ||
}) | ||
setPositiveButton("삭제", DialogInterface.OnClickListener { dialog, which -> | ||
val service = mRetrofit.create(ReviewService::class.java) |
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.
요기도 일반 토큰 있는 레트로핏
객체 불러다 호출하면 될겁니당
<!-- <TextView--> | ||
<!-- android:id="@+id/tv_eat_ssu"--> | ||
<!-- android:layout_width="match_parent"--> | ||
<!-- android:layout_height="80dp"--> | ||
<!-- android:text="리뷰 남기기"--> | ||
<!-- android:gravity="center"--> | ||
<!-- android:textSize="25dp"--> | ||
<!-- android:textColor="@color/white"--> | ||
<!-- android:textStyle="bold"--> | ||
<!-- android:background="@color/main"--> | ||
<!-- app:layout_constraintEnd_toEndOf="parent"--> | ||
<!-- app:layout_constraintStart_toStartOf="parent"--> | ||
<!-- app:layout_constraintTop_toTopOf="parent" />--> |
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.
레거시 코드는 지워주세요!
개요
작업 사항
스크린샷 및 작동 영상