V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
uleh
V2EX  ›  Android

有人开发 Android App 使用 IoC 框架吗

  •  
  •   uleh · 2014-08-25 11:03:53 +08:00 · 5797 次点击
    这是一个创建于 3532 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在网上搜了一下,老外推荐 RoboGuice 和 AndroidAnnotation,国内也有人写了个 xUtil(基于Afinal)和 ThinkAndroid。
    不过到底有多少人实际开发在使用这些框架呢?
    导入 IoC 容器对应用的运行效率会有多少影响?
    4 条回复    2014-09-20 08:32:09 +08:00
    lins05
        1
    lins05  
       2014-08-26 10:21:26 +08:00   ❤️ 1
    Roboguice 用的人挺多的,看它的 Readme 下面那一排 app 图标就知道了。https://github.com/roboguice/roboguice

    这个 dagger 也不错。https://github.com/square/dagger
    tamamaxox
        2
    tamamaxox  
       2014-08-27 17:11:24 +08:00
    用过,无觉得方便多少,还怕出问题
    skyxin888
        3
    skyxin888  
       2014-08-29 11:47:32 +08:00
    用过 感觉一般般吧,没有方便多少
    alex110
        4
    alex110  
       2014-09-20 08:32:09 +08:00
    我也是觉得怕出问题 。
    spring也有了。还有个butterknife。
    其实也提供别的注入,比如service之类的 。
    不过大部分还只是用于view的注入。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   903 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:12 · PVG 05:12 · LAX 14:12 · JFK 17:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.