Skip to content

Conversation

@NackUn
Copy link

@NackUn NackUn commented Dec 19, 2019

No description provided.

@NackUn NackUn added the Review Needed 리뷰어의 리뷰가 필요한 경우 label Dec 19, 2019
@NackUn NackUn requested a review from shareitDOIK December 19, 2019 18:19
@NackUn NackUn self-assigned this Dec 19, 2019
@NackUn NackUn changed the title HW-1 RxJava 이용 네이버 영화정보 검색 어플리케이션 HW-1 RxJava 네이버 영화정보 검색 어플리케이션 Dec 19, 2019
@NackUn NackUn requested review from sport0102 and removed request for shareitDOIK December 20, 2019 08:09
Copy link

@sport0102 sport0102 left a comment

Choose a reason for hiding this comment

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

수정 필요없다고 생각하시는 부분은 댓글 달아주시고, 수정하신 부분에는 커밋번호 넣어주세요!


import com.example.navermoviesample.vo.MovieItem

class Repository private constructor(

Choose a reason for hiding this comment

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

Repository 이름이 명확했으면 좋겠습니다. 어떤 걸 다루는 Repository인지 명시해주세요

Copy link
Author

Choose a reason for hiding this comment

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

변경했습니다.
b48cb4b

class Repository private constructor(
private val remoteDataSource: DataSource
) : DataSource {
override fun requestMovies(

Choose a reason for hiding this comment

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

우리가 RxJava를 배웠으니까 RxJava Single을 사용해서 가져오는 방식은 어떨까요?

Copy link
Author

Choose a reason for hiding this comment

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

변경했습니다.
081cfc7

val child = rv.findChildViewUnder(e.x, e.y)
val position = rv.getChildAdapterPosition(child!!)

val webIntent: Intent = Uri.parse(vm.movieItems.value!![position].link).let { webpage ->

Choose a reason for hiding this comment

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

null safety 처리를 위해서 ?.let이 아니라면 굳이 let을 사용할게 아니라 webpage라는 변수에 그냥 앞의 내용을 넣어도 될 것 같습니다.

Copy link
Author

@NackUn NackUn Jan 4, 2020

Choose a reason for hiding this comment

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

감사합니다! 변경했습니다.
1eeaa6e

import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide

@BindingAdapter("setUrlImg")

Choose a reason for hiding this comment

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

바인딩 이름에 bind: 를 붙여주면 다른 함수랑 겹치지 않아서 헷갈리지 않더라구요!

Copy link
Author

Choose a reason for hiding this comment

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

좋은 의견 감사합니다. xml에 bind: 로 하면 xmlns을 추가해줘야되는 것 같네요. 조금 더 생각해보도록 하겠습니다!

Copy link
Author

Choose a reason for hiding this comment

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

해당 부분은 layout에 추가되는 것 때문에 bind: 로 안하는 게 제 생각에는 괜찮은 것 같습니다~

type="com.example.navermoviesample.ui.movie.MovieViewModel" />
</data>

<LinearLayout

Choose a reason for hiding this comment

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

시간되실 때 constraint layout 도전하시지용 ㅎㅎ

Copy link
Author

Choose a reason for hiding this comment

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

넵 자꾸 미뤄두다가 아직도 못했네요. 도전해야죠!!

Copy link
Author

@NackUn NackUn Jan 13, 2020

Choose a reason for hiding this comment

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

866abbd
c659857
컨스트레인트를 적용해보았습니다!

@sport0102 sport0102 added Answer Needed PR담당자의 응답이 필요한 경우 and removed Review Needed 리뷰어의 리뷰가 필요한 경우 labels Dec 21, 2019
@NackUn NackUn added Review Needed 리뷰어의 리뷰가 필요한 경우 and removed Answer Needed PR담당자의 응답이 필요한 경우 labels Jan 13, 2020
@NackUn NackUn requested a review from sport0102 January 13, 2020 08:07
NackUn pushed a commit to NackUn/RxJavaStudy that referenced this pull request Feb 8, 2020
namjackson (조남재) 의 공간입니다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review Needed 리뷰어의 리뷰가 필요한 경우

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants