title: Slide Up Bottom Sheet
body: <p>I am trying to make a Slide Up Bottom Sheet as shown in the photo below(First shows what Im trying to make and the second what I have now). I've tried different ways and looked around SO and the web to see if there are any documentation on this and there doesn't seem to be much. The code I have below is the closest I can make it similar but something doesn't seem correct. Any help with the code to create this or any useful material would be appreciated.</p>
  
  <p><a href="https://i.stack.imgur.com/sJ0KL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sJ0KL.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/7Jb6f.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7Jb6f.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/T4RPZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T4RPZ.png" alt="enter image description here"></a></p>
  
  <p>MainActivity.kt</p>
  
  <pre><code>class MainActivity : AppCompatActivity() {
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
              val sheet = DemoBottomSheetFragment()
              sheet.show(supportFragmentManager, "DemoBottomSheetFragment")
      }
  }
  
  class DemoBottomSheetFragment : SuperBottomSheetFragment() {
      override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
          super.onCreateView(inflater, container, savedInstanceState)
          return inflater.inflate(R.layout.fragment_demo_sheet, container, false)
      }
  
      override fun getCornerRadius() = context!!.resources.getDimension(R.dimen.demo_sheet_rounded_corner)
  
  }
  </code></pre>
  
  <p>activity_main</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  
  <p>fragment_demo_sheet</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.coordinatorlayout.widget.CoordinatorLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;TextView
          android:id="@+id/show_sheet"
          android:layout_width="wrap_content"
          android:layout_height="1000dp"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;/androidx.coordinatorlayout.widget.CoordinatorLayout&gt;
  </code></pre>