How to use Theme.AppCompat.Light.Dialog on Android 6.0?
<p>I want to display activity which should look like dialog. I'm using theme inherited from Theme.AppCompat.Light.Dialog  to achievie that . This solution works quite well on Android 4.x and Android 5.x. Unfortunately on Android 6 it doesn't. I see black background instead of nice transparency.</p>

<p><a href="https://i.stack.imgur.com/sNq0E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sNq0E.png" alt="Android 6 on the left, Android 5 on the right"></a></p>

<p>Theme code:</p>

<pre><code>&lt;style name="AppTheme.Popup" parent="Theme.AppCompat.Light.Dialog"&gt;
        &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p>Activity code - just extended from AppCompatActivity</p>

<p>I was trying to fix using some another settings:</p>

<pre><code>    &lt;item name="android:windowIsTranslucent"&gt;true&lt;/item&gt;
    &lt;item name="android:windowBackground"&gt;@android:color/transparent&lt;/item&gt;
    &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
    &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
    &lt;item name="android:windowIsFloating"&gt;true&lt;/item&gt;
    &lt;item name="android:backgroundDimEnabled"&gt;false&lt;/item&gt;
</code></pre>

<p>Without any success :(</p>