Android-HomeKey-Locker
Android-HomeKey-Locker copied to clipboard
Expected Resource of type attr
public OverlayDialog(Activity activity) { super(activity, R.style.OverlayDialog); WindowManager.LayoutParams params = getWindow().getAttributes(); params.type = TYPE_SYSTEM_ERROR; params.dimAmount = 0.0F; // transparent params.width = 0; params.height = 0; params.gravity = Gravity.BOTTOM; getWindow().setAttributes(params); getWindow().setFlags(FLAG_SHOW_WHEN_LOCKED | FLAG_NOT_TOUCH_MODAL, 0xffffff); setOwnerActivity(activity); setCancelable(false); }
I updated the styles.xml with the OverlayDialog Resource but there is an error displayed - Expected Resource of type attr
what am i doing wrong ?
any help will be appreciated thank you