…ovides methods are instance methods and they need an instance of our module in order to be invoked. If our Module is abstract and contains
@Binds methods, dagger will not instantiate our module and instead directly use the
Provider of our injected parameter (
LoginPresenter in the above case).
Note: In Anko, you specify LayoutParams right after a View description. This is recommended by official documentation, but you can see that it is also possible to define it inside of view, but with some limitations and drawbacks. You can read for instance this GitHub issue here.
gage the people you…ouple of times a week. At weekends I attend hackathons, I travel to conferences or organize events. Working as a developer is a very social experience and work doesn’t stop when you leave the office. Being a developer means to be in the loop constantly, to learn, to engage the people you meet at events, to experiment, to build, to try, to fail, to fix and improve. This can be a big challenge for people breaking into the industry when older because some of us ha…
Note: As pointed out in the previous linked blog post do not call initLoader() within a Fragment’s onCreate() — always wait for onActivityCreated() or you’ll run into issues where Loaders appear to be shared across fragments as noted in this Lint request and this related Google+ post.