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

Upgrade php version of xampp not success -

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

Change font size on axis for excel chart with powershell -