80945540 / freebook Goto Github PK
View Code? Open in Web Editor NEW基于MVP模式开发的带缓存网络爬虫,采用最流行框架搭建,干货多多
基于MVP模式开发的带缓存网络爬虫,采用最流行框架搭建,干货多多
1、下载不能暂停,暂停又自动继续下载
2、当最后一个下载过的书目被删除后,下载Frg不会显示empty的状态
请问你这个路径在哪呢? 库里面都没有呢, 代码貌似不全吧?
数据请求不了,WiFi还是流量都不行,是接口关了吗
建议你不要爬单个的网站,可以从小说搜索引擎的入口去爬。这样书能全很多
每次请求网络时,第一次总是失败,重新尝试才能加载,这是为何?
有没有POST请求方式,麻烦博主做一个登录的MVP就好~
@BindView(R.id.hometab_radio)
RadioGroup hometabRadio;
protected void findViewById() {
hometabRadio = (RadioGroup) findViewById(R.id.hometab_radio);
}
请问已经用butterfly 绑定了,为什么还要用findViewById
还有推主,你有建群么,可以到群里面交流么
我好像邮件回不了你哈
Parcelable不能使用在要将数据存储在磁盘上的情况,因为Parcelable不能很好的保证数据的持续性在外界有变化的情况下。尽管Serializable效率低点,但此时还是建议使用Serializable 。
那class BookTypeDto implements Parcelable
不是要把一些资源通过缓存到本地吗
那这样会有影响么
使用你封装的 RxJava+Retrofit2+Okhttp+RxCache 这个网络请求 我都加上了 这几个的混淆 但是还是不行 是不是还差什么 现在是 混淆后 请求还没有发出去就崩溃了
clone项目下来,出现 No resource found that matches the given name 'RecoveryTheme'.
超哥,想请教一下,代码中单例类用的是懒汉式,不需要加双重检查么(加同步代码块)
protected static Retrofit getRetrofit() {
if (null == mRetrofit) {
if (null == mOkHttpClient) {
mOkHttpClient = OkHttp3Utils.getOkHttpClient();
}
//Retrofit2后使用build设计模式
mRetrofit = new Retrofit.Builder()
//设置服务器路径
.baseUrl(Constant.API_SERVER + "/")
//添加转化库,默认是Gson
.addConverterFactory(GsonConverterFactory.create())
//添加回调库,采用RxJava
.addCallAdapterFactory(RxJavaCallAdapterFactory.create())
//设置使用okhttp网络请求
.client(mOkHttpClient)
.build();
}
return mRetrofit;
}
Banner切换的时候可以看到后面下拉刷新的字
下载的时候点击暂停,过两秒又自动下载了......
//获取书库分类信息
@get("freebook/typeconfigs.json")
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.