“android:elevation=” doesn't work on devices pre-Lollipop with compile API21

后端 未结 4 480
后悔当初
后悔当初 2020-12-14 14:34

I\'m trying to use \"android: elevation =\" in my application but once I run it does not appear in the device with android 4.1.2

gradle

4条回答
  •  温柔的废话
    2020-12-14 15:08

    As described here, you can mimic the elevation on pre-lollipop with:

     android:background="@android:drawable/dialog_holo_light_frame"
    

提交回复
热议问题