title: android rounded bottom sheet style causes laggy animation
body: <p>I have a bottom sheet, in which i should make top left and right borders rounded. I tried to use below style for <code>BottomSheetFragment</code> but it makes bottom sheet non-smooth, and it is very like laggy. It seems like style given to bottomsheet fragment removes all default animation that is given to it before.</p>
  <pre><code>&lt;style name=&quot;AppBottomSheetDialogTheme&quot; parent=&quot;Theme.Design.Light.BottomSheetDialog&quot;&gt;
     &lt;item name=&quot;bottomSheetStyle&quot;&gt;@style/SemiRoundBottomSheetStyle&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name=&quot;SemiRoundBottomSheetStyle&quot; parent=&quot;Widget.Design.BottomSheet.Modal&quot;&gt;
     &lt;item name=&quot;android:background&quot;&gt;@drawable/bg_semi_round&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  <p>Below is my <code>@drawable/bg_semi_round</code> background file</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;shape xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:shape=&quot;rectangle&quot;&gt;
      &lt;solid android:color=&quot;@android:color/white&quot; /&gt;
      &lt;corners
          android:topLeftRadius=&quot;24dp&quot;
          android:topRightRadius=&quot;24dp&quot; /&gt;
  &lt;/shape&gt;
  </code></pre>
  <p>And this is how i set theme to bottom sheet fragment</p>
  <pre><code>override fun getTheme(): Int {
     return R.style.AppBottomSheetDialogTheme
  }
  </code></pre>
  <p>i tried to use custom animation with <code>slide_up</code> and <code>slide_bottom</code> animations, it worked but couldn't set specific <code>duration</code>, even though i set them in their anim file it ignored that duration.</p>