有像春天的任何Android应用程序框架?
Spring framework for Android - Spring for Android . Currently it has only a couple of features.
The most used dependency injection frameworks for Android:
Choosing the right framework largely depends on your needs.
ps . A tip from Managing Your App's Memory :
Avoid dependency injection frameworks.
Though this recommendation does not apply equally to all DI frameworks [why?] .
spring-android是一个新鲜的春季组合项目。
Look at roboguice: http://code.google.com/p/roboguice/
BTW, nothing prevents you from use spring - as this is pure java framework. but it is heavyweight and probably overkill for your purposes.
Question is - what do you like to inject as dependency?
You might also want to consider Spring ME . Contrary to classic Spring, it is incredibly lightweight. (Where the Spring runtime requires a lot of library code to wire all your beans at compile time, Spring ME is doing all of that at build time, leaving you with a BeanFactory that has no dependencies on a runtime at all .)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.