MvpApp icon indicating copy to clipboard operation
MvpApp copied to clipboard

Android MVP Architecture

Results 22 MvpApp issues
Sort by recently updated
recently updated
newest added

Could not find any version that matches com.android.support:appcompat-v7:19.+.

Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.It will be removed at the end of 2018。我用的studio3.2,我已经全部替换掉了compile,但是还是报了这个错误

public static Observable getPhotoList() { return sNewsService.getPhotoList() .subscribeOn(Schedulers.io()) .unsubscribeOn(Schedulers.io()) .subscribeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread()); } 如果获取接口数据都是使用静态方法 不会导致内存溢出吗?如果会,还有什么好的方法来解决这个问题呢?

你好,刚开始做安卓,就下了这个项目,非常感谢代码开源,不过也遇到了一个问题,我在模拟器上进行模拟,模拟器可正常联网,但是这个app显示 “网络异常,点击重试” 这是什么原因?

Error:Cannot choose between the following configurations of project :RecyclerViewHelper: - debugApiElements - debugRuntimeElements - releaseApiElements - releaseRuntimeElements All of them match the consumer attributes: - Configuration 'debugApiElements': - Found com.android.build.api.attributes.BuildTypeAttr...

大神,我在将项目移植到本地使用时,设置每页加载条数足够少(3条),在执行加载OnRequestDataListener中的onLoadMore()方法时,初始应该就是要连续两次执行加载更多的方法加载的数据才能够满屏使得BaseQuickAdapter中的mLoadingView不可见。但此时就会抛标题所述的异常。并且具体也没有在log日志中显示是哪行代码出这个异常。我猜想可能是 baseViewHolder = onCreateDefViewHolder(parent, viewType);出现这个异常。我本想在拷贝下的你的项目中来修改INCREASE_PAGE = 3;来重现一下,但page* INCREASE_PAGE来得到的数据我理解为本次请求的条数和你的项目中@GET("nc/article/{type}/{id}/{startPage}-20.html")的startPage的意思好像有点不同,因此没能重现。另外若我设置每页加载5条在我的程序中就只需一次加载更多就能使数据满屏,此时就不会抛这个异常。希望能帮忙看看这是怎么回事。

@Override public void swap(int fromPos, int toPos, List list) { NewsTypeInfo fromInfo = list.get(fromPos); NewsTypeInfo toInfo = list.get(toPos); NewsTypeInfo tem = fromInfo; //要重写创建对象,不能去改变源对象,因为源对象在多处使用到 fromInfo = new NewsTypeInfo(tem.getId(), toInfo.getName(), toInfo.getTypeId()); toInfo...

RetrofitService.getNewsList(mNewsId, mPage)没有看到数据库保存方法,手机断开网络后进入app也能看到上次的数据