ButterKnife is for input submissions only. A non-injection injection simply means that you can provide your own view root to introduce views from (for example, using manually-inflated views, etc.). The dagger is a little harder. It can enter anything you like if you specify Module - a class that satisfies these dependencies (as an alternative, you can use the constructor injection).
As the bottom line - I would say that ButterKnife helps you avoid all this code template for creating views (aka (TextView)findViewById(R.id.some_text_view); ). Nothing more. Under the hood, he is still doing all this boring code. So this is not really an injection ..
It's also worth mentioning that Jake Wharton is one of the developers for both of these cool libraries :)
Here are some useful links:
GitHub Dagger Design Draft
Introducing the Dagger at Devoxx (Jake Wharton)
Dagger contrast with dagger
Not many useful ButterKnife links. It’s really simple and straight forward, so I hope you don’t need to
Pavel Dudka Dec 29 '13 at 1:49 on 2013-12-29 01:49
source share