Skip to content

Instantly share code, notes, and snippets.

@shkcodes
Created July 17, 2021 08:16
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 shkcodes/23421cad15d9c0e87e1e46cda6f4ada9 to your computer and use it in GitHub Desktop.
Save shkcodes/23421cad15d9c0e87e1e46cda6f4ada9 to your computer and use it in GitHub Desktop.
Box {
AndroidView(
factory = { context ->
context.inflate<PlayerView>(R.layout.player_view).apply {
layoutParams = ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT)
player = exoPlayer
}
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment