Skip to content

Instantly share code, notes, and snippets.

@hadilq
Last active April 8, 2019 13:42
Show Gist options
  • Save hadilq/bd2922daff6a153984ad9ac88b8f2eef to your computer and use it in GitHub Desktop.
Save hadilq/bd2922daff6a153984ad9ac88b8f2eef to your computer and use it in GitHub Desktop.
class FooViewHolder(
view: View,
// other needed objects
) : RecyclerView.ViewHolder(view) {
@Inject
constructor(bridge: FooBridge, /* other needed objects to inject by Dagger*/) : this(
bridge.parent.inflate(R.layout.foo),
// other needed objects
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment