I want to know how to add a shadow layer to any general View in android. for eg: suppose i have a layout xml, showing something like this..
Assuming u would use a linear layout(i have considered a vertical linear layout)..and have a view just below your linear layout.Now for this view provide a start colour and end colour.. I also wanted to get this thing,its working for me..If you need a even better effect,then just work around the start and end colour.
activity_main
layout_back_bgn.xml
shadow.xml
I tried to post an image which i have it after using the above code,but stackoverflow doesnot allow me coz i dont have reputation..Sorry about that.