Hi I'm trying to apply a shadow to a linearlayout with the following code
if (<some condition>)
layout.setElevation(4);
but this call requires API level 21 to work. How can I apply a shadow to layouts for devices with version < 5.0? Is it possible?
I know this is part of Material Design which is why I just want to know if there is a way to achieve something similar in previous versions, thanks :)