I am using the PopupWindow class to create a custom popup.
But when I add layout_margin (in my example 15dp) on the main, there is a transparent gray background.
How to remove a transparent background?
See picture

EDIT here is my code
window = new PopupWindow(customTool.getContext()); window.setWidth(WindowManager.LayoutParams.FILL_PARENT); window.setHeight(WindowManager.LayoutParams.WRAP_CONTENT); window.setTouchable(true); window.setFocusable(true); window.setOutsideTouchable(true); window.setAnimationStyle(R.style.Animations_PopDownMenu_Left); window.setContentView(customTool); window.showAtLocation(customTool, Gravity.NO_GRAVITY, 0, 100);
Jovan source share