michaelye / EasyDialog

A lightweight, flexible tip dialog in Android
Other
705 stars 191 forks source link

Black status bar when EasyDialog appears #39

Open mdomanski92 opened 7 years ago

mdomanski92 commented 7 years ago

When a tip dialog appears then my status bar turns black (I've got blue colored status bar). When it disappears, the status bar returns to normal.

mdomanski92 commented 7 years ago

image

ahorobets commented 6 years ago

any changes?

star-andy commented 4 years ago

@mdomanski92 This problem you have a solution?

MakariKevin commented 4 years ago

I was able to fix the issue from my side. The Dev needs to make changes from his side as follows:

// Make changes as follows (Kotlin) val dialog = Dialog(this@Activity, R.style.DialogTheme) val window = dialog.getWindow() window?.setBackgroundDrawableResource(R.color.transparent)

// Transparent color <color name="transparent">@android:color/transparent</color>

// DialogTheme <style name="DialogTheme" parent="Theme.Design.Light.BottomSheetDialog"> <item name="android:windowCloseOnTouchOutside">false</item> <item name="android:windowIsTranslucent">true</item> <item name="android:windowContentOverlay">@null</item> <item name="android:backgroundDimEnabled">false</item> <item name="android:backgroundDimAmount">0.1</item> <item name="android:windowFrame">@null</item> <item name="android:windowIsFloating">false</item> </style>

// End result image