You can use this example if you like to use animated custom dialog with gradient effect in the linearlayout http://android-codes-examples.blogspot.com/2011/04/animated-customized-popup-transparent.html