javiersantos / MaterialStyledDialogs

A library that shows a beautiful and customizable Material-based dialog with header. API 14+ required.
Apache License 2.0
1.17k stars 155 forks source link

Enforcing DarkTheme the Dialog background is always white #63

Open whyorean opened 6 years ago

whyorean commented 6 years ago

https://github.com/javiersantos/MaterialStyledDialogs/blob/9eb3ed58fdd2ba5eccd925d8cf7520d8cb0978c1/library/src/main/res/layout/style_dialog_header_title.xml#L6

Maybe the issue is because of this, can you make it android:background="?android:colorBackground" This should solve the issue hopefully

Thanks for you Library :)

whyorean commented 6 years ago

[UPDATE] : Workaround

Step 1. Set (main_content) LinearLayout's android:background="@android:color/white" to android:background="?android:colorBackground" on both the style_dialogheader* layouts

Step 2. Add <\item name="md_dark_theme">true<\item> in DarkTheme @ values/styles