Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dyguests
Created March 28, 2019 02:39
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 dyguests/682055d10beae1373bd2958be23f935c to your computer and use it in GitHub Desktop.
Save dyguests/682055d10beae1373bd2958be23f935c to your computer and use it in GitHub Desktop.
Rounded Corners Dialog
class XxxDialogFragment:DialogFragment(){
override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? {
val view = inflater?.inflate(R.layout.dialog_share_vehicle, container, false)
dialog?.window?.apply {
setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
requestFeature(Window.FEATURE_NO_TITLE)
}
return view
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment