fangx / zhihumvp Goto Github PK
View Code? Open in Web Editor NEW采用MVP架构的仿知乎APP
采用MVP架构的仿知乎APP
private static Retrofit singleton;
public static <T> T createApi(Context context, Class<T> clazz)
对于RetrofitUtils
类中的 createApi
方法,可以将 静态成员 singleton
定义为 volatile
进行优化。
I changed the color of theme, and open the app again, title display blue.
您好,学习了您写的代码,收益匪浅,但是小弟 有个疑问:直接在activity中调用presenter的方法,是否使彼此的耦合度提高了,有没有什么方法降低彼此的耦合呢?本人是一菜鸟,说的不对,请海涵
比如,分享到微信以后,会出现dialog,dialog下方有两个按钮,一个显示的内容是"返回第三方工具",另一个显示的内容是"留在微信";这个用的貌似是原生的代码逻辑,如何把"返回第三方工具",修改为返回app的名字呢?
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.