Skip to content

Instantly share code, notes, and snippets.

@k0siara
Last active November 6, 2022 09:58
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 k0siara/19411c085e349e9a2b7bf48a3e268d34 to your computer and use it in GitHub Desktop.
Save k0siara/19411c085e349e9a2b7bf48a3e268d34 to your computer and use it in GitHub Desktop.
CustomDialog.kt
class CustomDialog : DialogFragment(R.layout.custom_dialog) {
private val binding by viewBinding<CustomDialogBinding>()
private val viewModel by viewModels<CustomDialogViewModel>()
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
// Setup UI and other stuff ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment