Skip to content
This repository was archived by the owner on Nov 14, 2018. It is now read-only.

Conversation

@zTrap
Copy link

@zTrap zTrap commented Apr 9, 2018

  • create extension for inflate from ViewGroup

This is useful for creating RecyclerView.ViewHolder

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
    return ViewHolder(parent.inflate(R.layout.item))
}

@MGaetan89
Copy link

This already exists in #162

@zTrap
Copy link
Author

zTrap commented Apr 9, 2018

@MGaetan89 Didn't see that one. My bad.

@zTrap zTrap closed this Apr 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants