V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
uleh
V2EX  ›  Android

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

  •  
  •   uleh · Aug 25, 2014 · 13835 views
    This topic created in 4262 days ago, the information mentioned may be changed or developed.
    在网上搜了一下,老外推荐 RoboGuice 和 AndroidAnnotation,国内也有人写了个 xUtil(基于Afinal)和 ThinkAndroid。
    不过到底有多少人实际开发在使用这些框架呢?
    导入 IoC 容器对应用的运行效率会有多少影响?
    4 replies    2014-09-20 08:32:09 +08:00
    lins05
        1
    lins05  
       Aug 26, 2014   ❤️ 1
    Roboguice 用的人挺多的,看它的 Readme 下面那一排 app 图标就知道了。https://github.com/roboguice/roboguice

    这个 dagger 也不错。https://github.com/square/dagger
    tamamaxox
        2
    tamamaxox  
       Aug 27, 2014
    用过,无觉得方便多少,还怕出问题
    skyxin888
        3
    skyxin888  
       Aug 29, 2014
    用过 感觉一般般吧,没有方便多少
    alex110
        4
    alex110  
       Sep 20, 2014
    我也是觉得怕出问题 。
    spring也有了。还有个butterknife。
    其实也提供别的注入,比如service之类的 。
    不过大部分还只是用于view的注入。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5362 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 01:21 · PVG 09:21 · LAX 18:21 · JFK 21:21
    ♥ Do have faith in what you're doing.