-
Notifications
You must be signed in to change notification settings - Fork 107
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
学习 #8
Comments
有很多网络请求都是code是正确值的时候做处理,不是正确值的时候给个提示,不做其他处理,个人感觉这样还是挺好的,少了很多代码,如果需要特殊处理的话,可以用不过滤结果的方法来请求。 |
谢谢 希望能快速更新架构 学习学习 |
跟你在做一样的事情,做出好的结构分享一下啊 |
正在借鉴项目,准备用mvvm kotin 写项目 |
|
都三年了,架构出来了吗 |
小哥哥
有个小问题 就是 你home fragment 请求网络数据的时候 触发事件是 SwipeRefreshLayout setOnRefreshListener 就有下拉显示效果了 然后呢正常情况下 livedata 回来会把SwipeRefreshLayout的效果关掉 但是异常情况 并没有
最近用 jetpack+kotlin 替换 之前的 rxjava2等基础框架项目
也尝试着封装一个 jetpack+kotlin快速开发基类框架 在大量寻找和借鉴
有个小问题哈 就是 网络请求 一般情况下基类属性为{ code,msg,T} 就是请求到数据后 code不是正常返回结果 自己处理过滤抛一个异常 优雅不? 我之前在也是这样做的 在okhttp 搞一个拦截器 做了同样的事情
The text was updated successfully, but these errors were encountered: