/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
dialog = new AlertDialog.Builder(WordCube.this) .setTitle(WordCube.this.getResources().getString(R.string.app_name)) .setMessage(s) .setIcon(R.drawable.logo) .setPositiveButton(R.string.btn_close, null) .show(); WindowManager.LayoutParams lp = dialog.getWindow().getAttributes(); // retrieves the windows attributes lp.dimAmount=0.0f; // sets the dimming amount to zero dialog.getWindow().setAttributes(lp); // sets the updated windows attributes dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); // adds the flag to blur bg