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

the border, round corners , margin defined android:windowbackground.
try add below line java file:
dialog.getwindow().setbackgrounddrawableresource(android.r.color.transparent);
Comments
Post a Comment