DragLinearLayout icon indicating copy to clipboard operation
DragLinearLayout copied to clipboard

Rounded views get rectangular shadow

Open escobar5 opened this issue 9 years ago • 2 comments
trafficstars

Is there a way to get a rounded shadow that matches my rounded view background?

escobar5 avatar May 19 '16 16:05 escobar5

Not without modifying the DragLinearLayout source code.

If your minSdkVersion is >= 21, I would suggest looking into changing the View's elevation dynamically and making use of the system's dynamic shadows instead of faking the effect with a shadow Drawable as this library does.

justasm avatar May 21 '16 14:05 justasm

escobar5, i have submitted a pull request that - might - solve the issue for you. it will depend how "rounded" your view is... but at least with slightly rounded corners it should look fine.

meesec avatar May 21 '16 17:05 meesec