title: Expanding bottom sheet dialog in android app
body: <p>I'm displaying data on a bottom sheet which is invoked when a button screen is pressed. However, there is more text on the sheet than can be shown on screen, and as a result, the text is clipped. How can I fix this so that dialog can be scrolled off the edge of the screen?</p>
  
  <p>My bottom layout xml files is as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"&gt;
  
  &lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center_vertical"
      android:text=""
      android:id="@+id/splo"
      /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and I'm summoning it with the following code:</p>
  
  <pre><code> BottomSheetDialog dialog = new BottomSheetDialog(this);
  
      View view = getLayoutInflater().inflate(R.layout.fragment_bottom_layout, null);
  
      dialog.setContentView( view );
  
      TextView tv = (TextView) view.findViewById( R.id.splo);
      tv.setText( sp );
  
      dialog.show();
  </code></pre>