Android DialogFragment and AppCompatButton

By : Kuva

I have a custom DialogFragment with AppCompatButon with custom background for ripple effects etc. My problem is that in DialogFragment this button looses it's shadow and onClick shadow behaviour. I guess problem is somewhere in Dialog theme that overrides some parameters, but i couldn't find these parameters. Thanks for u're time.

Here's my Dialog theme right now:

<style name="Dialog.NoMidWidth" parent="ThemeOverlay.AppCompat.Dialog">
    <item name="android:windowMinWidthMinor">0dp</item>
    <item name="android:windowMinWidthMajor">0dp</item>
    <item name="android:windowFullscreen">false</item>
By : Kuva

This video can help you solving your question :)
By: admin