Cardview shadow not appearing in lollipop devices?

后端 未结 6 1147
北海茫月
北海茫月 2020-12-03 07:05

Am using the cardview in my android app. However the shadow is not showing. Here is the xml layout

The default optionsmenu shadow also not showing.

&         


        
6条回答
  •  抹茶落季
    2020-12-03 07:21

    for someone ,

    one other thing that you should be aware of, shadows will not show if you have this line in the manifest:

    android:hardwareAccelerated="false"

    I tried all of the suggested stuff but it only worked for me when i removed the line, the reason i had the line was because my app works with a number of bitmap images and they were causing the app to crash.

提交回复
热议问题