title: DialogFragment rounded corners - how to set transparency
body: <p>I've made custom layout for dialogFragment with rounded corners but when dialog is called corners are rounded he looks like below. </p>
  
  <p><a href="https://i.imgur.com/aE4PMhZ.png" rel="nofollow noreferrer">https://i.imgur.com/aE4PMhZ.png</a></p>
  
  <p>I know i need to set transparency <code>dialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);</code>
  but I dont know where to put this in my code, additionally I'm using Kotlin.</p>
  
  <p><em>Below is the part of code where Dialog is called.</em></p>
  
  <pre><code> myDialog = Event_Dialog.newInstance(args,args1)
                  myDialog.show(fragmentManager, "MyDialog")
  </code></pre>
  
  <p>This is Event_Dialog class.</p>
  
  <pre><code>class Event_Dialog : DialogFragment() {
  
  companion object {
  
      fun newInstance(bundle: String, bundle1: String): Event_Dialog {
          //description
          val args: Bundle = Bundle()
          args.putString("desc", bundle)
          //link
          args.putString("link", bundle1)
  
          val fragmentDialog = Event_Dialog()
          fragmentDialog.arguments = args
  
          return fragmentDialog
      }
  }
  override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
      val x = inflater.inflate(R.layout.event_detail, container, false)
  some code.......
  return x
  </code></pre>
  
  <p>Could you tell me guys where I should set the transparency of custom background ?
  Thanks !</p>