janishar / android-mvvm-architecture

This repository contains a detailed sample app that implements MVVM architecture using Dagger2, Room, RxJava2, FastAndroidNetworking and PlaceholderView
https://janisharali.com
Apache License 2.0
2.95k stars 936 forks source link

Inject Context into fragment #33

Open Nivedita-Puneet opened 5 years ago

Nivedita-Puneet commented 5 years ago

Hi Amit, I follow your tutorials and it has helped me a lot to understand dagger MVP, MVVM architecture. Am following this example in one of my projects but for MVP architecture. Now, I need a small clarification am using a view pager with fragments and my fragment module needs activity context. As, per my understanding we can use Qualifier activity context in constructor and use it in Activity builder. Is this approach appropriate. Looking forward to your feedback.