Skip to content

Instantly share code, notes, and snippets.

@Philio
Created April 22, 2019 11:02
Show Gist options
  • Save Philio/c469ffea114cf1bed6223965999d09cf to your computer and use it in GitHub Desktop.
Save Philio/c469ffea114cf1bed6223965999d09cf to your computer and use it in GitHub Desktop.
@Module
public class BindingModule {
@Provides @DataBinding ImageBindingAdapter provideImageBindingAdapter(Picasso picasso) {
return new ImageBindingAdapter(picasso);
}
}
@Module
object BindingModule {
@Provides @DataBinding fun provideImageBindingAdapter(picasso: Picasso) = ImageBindingAdapter(picasso)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment