Shadow of CardView not visible on Android Lollipop -


following code works on kitkat, shadows not visible in lollipop.

actually can see shadow in android studio preview, not while running on device/emulator. i'm using cardview adapter of viewpager (android.support.v4.view.viewpager)

<android.support.v7.widget.cardview         xmlns:card_view="http://schemas.android.com/apk/res-auto"         android:layout_width="match_parent"         android:layout_height="match_parent"         card_view:cardusecompatpadding="true"         card_view:cardcornerradius="4dp"         card_view:cardelevation="6dp"> 

actually shows shadow in l version, based on elevation can't see shadow if card height match parent

try adding margin card if want see shadow


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -