Dialog with rounded corner in android
<blockquote>
  <p>I have gone through some solutions but none solve my issue. </p>
</blockquote>

<p>I have created a custom <code>DialogFragment</code>. and root element of <code>dialog is cardView</code>. I set <code>cardCornerRadius</code> of <code>cardView</code>. </p>

<p>Then i try to set Transparent Dialog because background color is also showing with it. </p>

<p>then i try to set the dialog theme like</p>

<pre><code>&lt;style name="PauseDialog" parent="@style/Theme.AppCompat.Light.Dialog"&gt;
       &lt;!-- TTheme.AppCompat.Translucent--&gt;
        &lt;item name="android:windowAnimationStyle"&gt;@style/PauseDialogAnimation&lt;/item&gt;
        &lt;!--&lt;item name="android:windowBackground"&gt;@android:color/transparent&lt;/item&gt;--&gt;
        &lt;item name="android:windowBackground"&gt;@color/transparent&lt;/item&gt;
        &lt;item name="android:colorBackgroundCacheHint"&gt;@android:color/transparent&lt;/item&gt;


        &lt;item name="android:windowFrame"&gt;@null&lt;/item&gt;
        &lt;item name="android:windowIsFloating"&gt;true&lt;/item&gt;
        &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
        &lt;item name="android:windowTitleStyle"&gt;@null&lt;/item&gt;
        &lt;item name="android:windowSoftInputMode"&gt;stateUnspecified|adjustPan&lt;/item&gt;
        &lt;item name="android:backgroundDimEnabled"&gt;false&lt;/item&gt;
        &lt;item name="android:background"&gt;@android:color/transparent&lt;/item&gt;
    &lt;/style&gt;
</code></pre>

<p>The background still remains there. And then I also tried </p>

<pre><code>dialog.getWindow().setBackgroundDrawable(
                new ColorDrawable(Color.TRANSPARENT));
</code></pre>

<p>but still dialog have background associated with it. </p>

<blockquote>
  <p>Is there any work around. How could i get rid of it.</p>
</blockquote>

<p>I have created a <strong>DialogFragment</strong> and in <code>onCreateDialog</code> </p>

<pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(),
                R.style.PauseDialog);
        setStyle(DialogFragment.STYLE_NO_FRAME, R.style.PauseDialog);
</code></pre>

<p><a href="https://i.stack.imgur.com/8yyEf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8yyEf.png" alt="enter image description here"></a></p>