android - 将 DIP(Dependency Inversion) 应用于 Android Activity 类

标签 android

是否可以将 DIP 应用于 Android Activity ?

最佳答案

您可以使用 RoboGuice在 Android 上做依赖注入(inject)。它使用 Google 的 Guice 框架。

关于android - 将 DIP(Dependency Inversion) 应用于 Android Activity 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10250524/

相关文章:

Android和Vitamio : sorry, 此视频无法播放

android - 如何将现有的C/C++代码导入到Eclipse中?

android - 在此 MapSample 小部件上方找不到正确的 Provider<AppState>

Android:以编程方式检测设备是否连接了硬件触摸屏

android - 无法升级到gradle 5-得到了 “The project name ' ../../' must not contain any of the following characters: [/,\, :, <, >, ”,?,*,|]。

android - 在 Android 模拟器上安装 Flash Player

Android:外部存储上的 mkdirs()/mkdir() 返回 false

android - 重用线程

java - BaseAdapter类方法需要显式调用吗?

java - 在 Android 中使用 Retrofit 2 解析两个不同的 API 响应