MVVMRxJavaRetrofitSample icon indicating copy to clipboard operation
MVVMRxJavaRetrofitSample copied to clipboard

MVVM RxJava Retrofit Sample

Results 4 MVVMRxJavaRetrofitSample issues
Sort by recently updated
recently updated
newest added

学习的时候发现这个项目,但是API都过期了,所以自己翻新了一下。因为自己并没有系统的学过MVVM,大家看看就好,没啥必要pull requests了怪丢人现眼的…… 地址 https://github.com/PaienNate/MVVMRxJavaRetrofitSample_Fix

在RetrofitHelper中 `.map(new Func1() { @Override public List call(Response listResponse) { return listResponse.getSubjects(); } }) .flatMap(new Func1() { @Override public Observable call(List movies) { return Observable.from(movies); } })` 这个地方只要下游事件接收List就可以了吧,又flatMap一次。。。

看了你关于MVVM的博客:http://haohaochang.cn/2017/02/12/MVVM,RxJava和Retrofit的一次实践 有一点不太明白,@BindingAdapter({"app:imageUrl"})对应的是ui布局里面的app:imageUrl="@{viewModel.imageUrl}",@{viewModel.imageUrl}中的imageUrl是viewModel中的属性,但是我找了一下,貌似没有找到这个属性,还望不吝赐教,谢谢!!!!