nstudio / nativescript-cardview

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

Cardview using in ListView or Repeater has no drop shadow on Android. #18

Closed firecube closed 8 years ago

firecube commented 8 years ago

Hi,

I presume this is a limitation in the nativescript controls but when I have a card view inside a list view or a repeater the cards have no drop shadow.

I had to wrap the card in a StackLayout with padding otherwise the cards were right on top of each other on iOS but I have tried without this and still have the same behaviour.

Thanks, Simon

bradmartin commented 8 years ago

Send some screens and layout code you have to reproduce it. I have a drop shadow in my listview, add a little padding to the cards and it looks okay. It might be an issue with your layout specifically so let me know and I'll try to help out.

On Thu, May 5, 2016, 4:41 AM firecube notifications@github.com wrote:

Hi,

I presume this is a limitation in the nativescript controls but when I have a card view inside a list view or a repeater the cards have no drop shadow.

I had to wrap the card in a StackLayout with padding otherwise the cards were right on top of each other on iOS but I have tried without this and still have the same behaviour.

Thanks, Simon

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/bradmartin/nativescript-cardview/issues/18

matt4446 commented 8 years ago

@firecube I had a similar problem. Try giving it a margin.

firecube commented 8 years ago

Thanks @matt4446 that was it!

hackerunet commented 6 years ago

Hi there, I know it's been a while, but I'm trying to restyle my ListView to replace each item for a fancy card with drop shadow but, I got no drop shadow and I cannot hide each item divider , the divider is always there, can you tell me how to hide each ListView item divider?? Thanks

bradmartin commented 6 years ago

@hackerunet - there is separatorColor property on listview (https://docs.nativescript.org/api-reference/globals look for the listview class here), you can color it to blend it into your background if you want. There are ways to remove it, just not sure at this moment.