Android API 19 support AlertDialog black border instead of shadow -


android 5.1 renders dialog correctly, kitkat 4.4.4 , below show black border instead of shadow.

it seems android:windowbackground responsible that. have tried different drawables background, tried genymotion , android sdk emulators, tried older support libraries without success. did not set styles dialog. shown fragment.

the error see in logcat - eglsurfaceattrib not implemented

alertdialog black border

the border, round corners , margin defined android:windowbackground.

try add below line java file:

dialog.getwindow().setbackgrounddrawableresource(android.r.color.transparent); 

Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -