Skip to content

Instantly share code, notes, and snippets.

@Syex
Created October 9, 2022 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Syex/b743c8efa8ca94da7c960e72f3521875 to your computer and use it in GitHub Desktop.
Save Syex/b743c8efa8ca94da7c960e72f3521875 to your computer and use it in GitHub Desktop.
class UserView private constructor(
private val binding: UserViewBinding,
) {
companion object {
fun inflate(
inflater: LayoutInflater,
container: ViewGroup?,
) = UserView(
UserViewBinding.inflate(
inflater,
container,
false
)
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment