-
Notifications
You must be signed in to change notification settings - Fork 6
HW-1 RxJava 네이버 영화정보 검색 어플리케이션 #4
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
base: rxjava-NackUn
Are you sure you want to change the base?
Conversation
sport0102
left a comment
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.
수정 필요없다고 생각하시는 부분은 댓글 달아주시고, 수정하신 부분에는 커밋번호 넣어주세요!
|
|
||
| import com.example.navermoviesample.vo.MovieItem | ||
|
|
||
| class Repository private constructor( |
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.
Repository 이름이 명확했으면 좋겠습니다. 어떤 걸 다루는 Repository인지 명시해주세요
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.
변경했습니다.
b48cb4b
| class Repository private constructor( | ||
| private val remoteDataSource: DataSource | ||
| ) : DataSource { | ||
| override fun requestMovies( |
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.
우리가 RxJava를 배웠으니까 RxJava Single을 사용해서 가져오는 방식은 어떨까요?
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.
변경했습니다.
081cfc7
NaverMovieSample/app/src/main/java/com/example/navermoviesample/data/Repository.kt
Outdated
Show resolved
Hide resolved
NaverMovieSample/app/src/main/java/com/example/navermoviesample/data/remote/RemoteDataSource.kt
Outdated
Show resolved
Hide resolved
NaverMovieSample/app/src/main/java/com/example/navermoviesample/ui/movie/MovieViewModel.kt
Show resolved
Hide resolved
NaverMovieSample/app/src/main/java/com/example/navermoviesample/ui/movie/MovieViewModel.kt
Outdated
Show resolved
Hide resolved
| 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 -> |
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.
null safety 처리를 위해서 ?.let이 아니라면 굳이 let을 사용할게 아니라 webpage라는 변수에 그냥 앞의 내용을 넣어도 될 것 같습니다.
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.
감사합니다! 변경했습니다.
1eeaa6e
| import androidx.databinding.BindingAdapter | ||
| import com.bumptech.glide.Glide | ||
|
|
||
| @BindingAdapter("setUrlImg") |
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.
바인딩 이름에 bind: 를 붙여주면 다른 함수랑 겹치지 않아서 헷갈리지 않더라구요!
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에 bind: 로 하면 xmlns을 추가해줘야되는 것 같네요. 조금 더 생각해보도록 하겠습니다!
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.
해당 부분은 layout에 추가되는 것 때문에 bind: 로 안하는 게 제 생각에는 괜찮은 것 같습니다~
| type="com.example.navermoviesample.ui.movie.MovieViewModel" /> | ||
| </data> | ||
|
|
||
| <LinearLayout |
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.
시간되실 때 constraint layout 도전하시지용 ㅎㅎ
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.
namjackson (조남재) 의 공간입니다.
No description provided.