justasm / DragLinearLayout

Android LinearLayout with drag and drop to reorder.
MIT License
453 stars 121 forks source link

Rounded views get rectangular shadow #25

Open escobar5 opened 8 years ago

escobar5 commented 8 years ago

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

justasm commented 8 years ago

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.

meesec commented 8 years ago

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.