setShadowLayer Android API differences
Solution 1:
setShadowLayer()
is only supported on text when hardware acceleration is on. Hardware acceleration is on by default when targetSdk=14
or higher. An easy workaround is to put your View in a software layer: myView.setLayerType(View.LAYER_TYPE_SOFTWARE, null)
.