title: I want to show DialogFragment in Android using Kotlin
body: <p>I want to show <code>DialogFragment</code> 
  when button is <code>clicked</code> 
  but I have error in my code 
  the error is in fun " show "</p>
  
  <p>this my code " button on click "</p>
  
  <p>DialogFragment</p>
  
  <pre><code>val pop = alarm_first()
  val fm = FragmentManager
  pop.show( fm , "name")
  </code></pre>
  
  <p>and this my fragment class  for "alarm_first" :</p>
  
  <pre><code>class alarm_first : DialogFragment() {
  override fun onCreateView(inflater: LayoutInflater?, container: 
   ViewGroup?, savedInstanceState: Bundle?): View {
  
      var myView = inflater!!.inflate(R.layout.fragment_alarm_first
              , container, false)
  
      return myView
  }}
  </code></pre>