You can use alpha animation on your parent layout of taht screen on long press, with the help of this you can make your screen dim without dialog
Animation animation2 = new AlphaAnimation(1.0f, 0.2f);
animation2.setDuration(1000);
animation2.setStartOffset(5000);
layout.startAnimation(animation2);
or use animation through xml file