nstudio / nativescript-cardview

:diamonds: :clubs: NativeScript widget for Material Design CardView
MIT License
282 stars 51 forks source link

No drop shadow on Android 8.1 #77

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi I have an issue with this plugin. I could not get the drop shadow effect to work on Android 8.1. It does not appear neither in ngFor nor in ListView. Radius works fine. I am using Nativescript 3.4.0.

<ListView [items]="studies">
  <ng-template let-study="item">
      <CardView class="cardStyle" elevation="10" margin="10" radius="10">
        <StackLayout class="cardContent">
          <Label [nsRouterLink]="['/study-lists', study.$key]" [text]="study.title"></Label>
        </StackLayout>      
      </CardView>
  </ng-template>
</ListView>
.cardStyle {
   backgroud-color: #aaaaaa;
}
.cardContent {
   // ...
}
bradmartin commented 6 years ago

screenshot_20180423-121707

Working in the demo.