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

amazon web services - S3 and apache mod_proxy with basic authentication -

How to install ruby on rails -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -