I have activity with a FragmentDialog . In the onResume this dialog box, I set its height and weight to 80% and 90% by code:
WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); layoutParams.copyFrom(getDialog().getWindow().getAttributes()); layoutParams.width = (int)(screenWidth * 0.9); layoutParams.height = (int)(screenHeight * 0.8); getDialog().getWindow().setAttributes(layoutParams);
It works great, the background has a shadow, the foreground FragmentDialog has the correct dimensions. Question: how can I show a SnackBar at the bottom of the screen that is not affected by the FragmentDialog (shadow, activity type) without shadow? Is there a way to turn off the shadow for a specific view in action that is in the background of a FragmentDialog ?
source share