gabrielemariotti / cardslib

Android Library to build a UI Card
4.66k stars 1.19k forks source link

Material Card Image Bottom Streched #353

Open matantsu opened 9 years ago

matantsu commented 9 years ago

see link below: https://mail.google.com/mail/u/0/?ui=2&ik=acc8a04e77&view=fimg&th=149deb828784d304&attid=0.1&disp=inline&realattid=1485602393420726272-local0&safe=1&attbid=ANGjdJ_xKR-PvvYsZNl1u2TWgMttEUReqG5rdb9EPWhH2Y09uJn4qeu7yCeo6--icAxEFBb5E7ps8y6TBl9neNYhabvs9eaNcKFLFjcKUf9QZfPrZzquUtXFBp8c91E&ats=1416780857055&rm=149deb828784d304&zw&sz=w1896-h835

gabrielemariotti commented 9 years ago

I haven't the permission to see the image.

matantsu commented 9 years ago

oh sorry... here a new link: https://drive.google.com/file/d/0B3IvigSVlUAmXzlFVEJ2MG5qLTFvN0NVc0QyYUFvMVV6XzhF/view?usp=sharing

matantsu commented 9 years ago

also happens to the right if the image is too small: https://drive.google.com/file/d/0B3IvigSVlUAmT1RhQ0NRTkNsckk/view?usp=sharing

eirinaios commented 9 years ago

I'm having the same problem, but only on pre-lollipop devices. I managed to correct it though by using an external drawable for the Material Card's image and loading it with Picasso, as per example at: https://github.com/gabrielemariotti/cardslib/blob/master/doc/MATERIALCARD.md. The only (minor) problem that remains now is that when the image is loaded externally, there is a very thin, 1 pixel border around it (again on pre-lollipop devices only). Any clues as to how I could eliminate it? Thanks!