title: How to Provide a View in Dagger2?
body: <p>Below is the Activity, it is still using an old DI model, and i'm trying to migrate to Dagger2 (with dagger-android). I want to inject the Presenter, and as you can see, one dependency is the 'NewProjectDisplayer' which is a custom view in the activity.</p>
  
  <p><a href="https://i.stack.imgur.com/pgOXI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pgOXI.png" alt="enter image description here"></a></p>
  
  <p>This is the 'NewProjectDisplayer' which I want to provide to the Presenter</p>
  
  <p><a href="https://i.stack.imgur.com/QjPnk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QjPnk.png" alt="enter image description here"></a></p>
  
  <p>I have a Module (AppModule) which provides the global dependencies like ProjectService, LoginService etc.. </p>
  
  <p>Below is the NewProjectModule which I am having trouble with. One of the dependencies which is tied to the activity is the 'NewProjectDisplayer'. And I have no idea how I can provide it..</p>
  
  <pre><code>@Module
  public class NewProjectActivityModule {
  
      @Provides
      NewProjectDisplayer provideNewProjectDisplayer(View view) {
          // ??? return view.findViewById(R.id.create_project_view);
      }
  
      @Provides
      NewProjectNavigator provideNewProjectNavigator(BaseActivity baseActivity) {
          return new AndroidNewProjectNavigator(baseActivity);
      }
  
      @Provides
      NewProjectPresenter provideNewProjectPresenter(NewProjectDisplayer displayer, //
                                                     ProjectService projectService,
                                                     LoginService loginService,
                                                     UserService userService,
                                                     NewProjectNavigator navigator, //
                                                     PermissionHandler permissionHandler,//
                                                     CropImageHandler cropImageHandler,//
                                                     RxSchedulers schedulers) {
          return new NewProjectPresenter(displayer, projectService, loginService,
                  userService, navigator, permissionHandler, cropImageHandler, schedulers);
      }
  
  }
  </code></pre>
  
  <p>How can I provide this 'NewProjectDisplayer' so that the Presenter can be created and injected? I am using dagger-android.</p>