title: Round corner for BottomSheetDialogFragment
body: <p>I have a custom BttomSheetDialogFragment and I want to have round corners in top of Bottom View</p>
  <p>This is my Custom class that inflates my layout that I want to appear from bottom</p>
  <pre class="lang-java prettyprint-override"><code>View mView;
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      mView = inflater.inflate(R.layout.charge_layout, container, false);
      initChargeLayoutViews();
      return mView;
  }
  </code></pre>
  <p>and also I have this XML resource file as background:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;shape xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:shape=&quot;rectangle&quot;
      &gt;
      &lt;corners android:topRightRadius=&quot;35dp&quot;
          android:topLeftRadius=&quot;35dp&quot;
          /&gt;
      &lt;solid android:color=&quot;@color/white&quot;/&gt;
  
      &lt;padding android:top=&quot;10dp&quot;
          android:bottom=&quot;10dp&quot;
          android:right=&quot;16dp&quot;
          android:left=&quot;16dp&quot;/&gt;
  &lt;/shape&gt;
  </code></pre>
  <p>The problem is, when I set this resource file as background of my Layout's root element, the corners still are not rounded.</p>
  <p>I can't use below code:</p>
  <pre class="lang-java prettyprint-override"><code>this.getDialog().getWindow().setBackgroundDrawableResource(R.drawable.charge_layout_background);
  </code></pre>
  <p>Because it overrides the default background of BottomSheetDialog and there won't be any semi-transparent gray color above my Bottom View.</p>