werbhelius / gankwithzhihu Goto Github PK
View Code? Open in Web Editor NEWjust for reading
just for reading
关于我页面里的链接一点就崩
//允许为空,不是所有都要实现MVP模式
if(createPresenter()!=null) {
mPresenter = createPresenter();
mPresenter.attachView((V) this);
}
根据你在ApiRetrofit中构造函数里的代码 猜想你是希望建立一个ApiRetrofit实例 然后分别获取ZhihuApi、GankApi和DailyApi的单例对象 但是现在ApiFactory的代码显然会创建三个ApiRetrofit实例然后分别获取单例对象 改进方法也简单 在ApiRetrofit里放一个static ApiRetrofit instance;然后getInstance单例获取就好了
According to your code in method 'ApiRetrofit()' ,I guess you want to get an instance for class ApiRetrofit,and then get three Api instances in ApiFactory.One way to fix this:Add 'static ApiRetrofit instance;'in ApiRetrofit.class and then use getInstance() to get it.
作为一个Android初学者,请问作者这个项目适合我阅读吗?^-^
?
那啥,闪退频率有点高,最近也在搞mvp+rxjava+retrofit,可以互相切磋下,还望给个机会
白屏闪退
我在使用GankActivity看优酷视频的时候,就是为所欲为那个视频,没看完,然后点击后退,结果音频还在播放
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.