title: Add/Replace Fragment inside of BottomSheetDialogFragment
body: <p>This this code :
  in which i open bottomSheetDialogFragment in that i want to add fragment. </p>
  
  <p>I want to add multiple fragments in bottomsheetDialogFragment but it throws</p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: No view found for id 0x7f0a01cb  </p>
  </blockquote>
  
  <pre><code>class AddNotesBottomSheetDialog : BottomSheetDialogFragment() {
  
  private lateinit var bottomSheetDialog: BottomSheetDialog
  private lateinit var bottomSheetBehavior: BottomSheetBehavior&lt;View&gt;
  
  override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
      Log.v(LOG_TAG, "-&gt; onCreateDialog")
  
      bottomSheetDialog = BottomSheetDialog(context!!)
  
      var view = View.inflate(context, R.layout.bottom_sheet_notes, null)
      bindViews(view)
      bottomSheetDialog.setContentView(view)
      bottomSheetBehavior = BottomSheetBehavior.from(view.parent as View)
      bottomSheetBehavior.isHideable = false
      bottomSheetBehavior.state = BottomSheetBehavior.STATE_EXPANDED
  
      return bottomSheetDialog
  }
  
  private fun bindViews(view: View) {
      loadAddNotesFragments()
  
  }
  
  override fun onStart() {
      super.onStart()
      Log.v(LOG_TAG, "-&gt; onStart")
  
      bottomSheetBehavior.isHideable = false
      bottomSheetBehavior.state = BottomSheetBehavior.STATE_EXPANDED
      if (!visible)
          dialog.hide()
  }
  
  
  fun show(fragmentManager: FragmentManager) {
      Log.v(LOG_TAG, "-&gt; show")
  
      visible = true
      if (isAdded) {
          Log.v(LOG_TAG, "-&gt; Is already added")
          dialog.show()
      } else {
          Log.v(LOG_TAG, "-&gt; Not added")
          show(fragmentManager, AddNotesBottomSheetDialog.LOG_TAG)
      }
  }
  
  override fun onDestroyView() {
      super.onDestroyView()
      Log.v(LOG_TAG, "-&gt; onDestroyView")
  }
  
  private fun loadAddNotesFragments() {
  
      val createNoteFragment = CreateNoteFragment()
      val ft = fragmentManager?.beginTransaction()
      ft?.replace(R.id.placeHolderBottomSheet, createNoteFragment)
      ft?.commit()
  }
  }
  </code></pre>
  
  <p><strong>Solved:</strong> I tried to add multiple fragments transaction in bottomSheetDialogFragment but it's not possible to do transaction in BottomSheetDialogFragment thats why its through this exception. so i used viewPager inside the BottomsheetDialog and its work perfect. </p>