How do I use AndroidInjection class in custom views or other android classes?

Viewed 5306

My issue with the Android-specific pattern is, if you use their AndroidInjection class, there is no way to members inject other objects besides Activities/Fragments/custom views/adapters, except with the Application Component. This is because you cannot get a reference the the Subcomponent (AndroidInjector) used to inject Activities/Fragments. This makes injecting Dialogs (if you use DialogFragments).

The AndroidInjection class seems to support just the core Android types.

4 Answers
Related