Giter Site home page Giter Site logo

Comments (9)

daniel-jonathan avatar daniel-jonathan commented on May 7, 2024

So there isn't an actual UIImageView being used. That would make the card heavier than necessary. What is actually happening, the card uses an imageLayer that you can access. As well, the card itself will support an image background too. So to understand your question correctly, are you trying to make the card scale to the image size, so the card can support dynamic sizes of images?

from material.

cohix avatar cohix commented on May 7, 2024

Yes that's exactly what I'm looking for. If I load a portrait image, I would like the image layer to have the same portrait ratio. Is there an easy way to achieve this now?

from material.

daniel-jonathan avatar daniel-jonathan commented on May 7, 2024

I made the adjustment locally to achieve what you are looking for. In this version you don't have to do a thing, it will do it for you. With that said, I need to run the framework through some tests and I can push it up for you in a short while. Sound good?

from material.

cohix avatar cohix commented on May 7, 2024

That would be fantastic. Thank you as always. Any way I can buy you guys a round of beers?

from material.

daniel-jonathan avatar daniel-jonathan commented on May 7, 2024

It is a pleasure to make this available for everyone :) We will be doing some meet ups soon, and we would be happy to have a round then. As well, you are helping us make a better product, we appreciate that.

from material.

cohix avatar cohix commented on May 7, 2024

Anything I can do to help 👍 Keep me in the loop!

from material.

daniel-jonathan avatar daniel-jonathan commented on May 7, 2024

Hey, so the dynamic sizing of ImageCardView has been added. We took this opportunity to add a bunch of tweaks we wanted to get in. Also, there is an additional property, maxImageSize for ImageCardView that doesn't allow the image height to get too long, this avoids any awkward looking cards. You can either not set the maxImageSize value or set it to 0 and it will allow any dynamic height size. I'll leave it to you to explore the new features.

Pro tip* We added a new layer called MaterialLayer. It is really lightweight compared to a UIView and MaterialView. So if you are looking for the neat abilities without the weight, that is a nice option.

All the best :)

from material.

cohix avatar cohix commented on May 7, 2024

That's awesome! I'm testing now. Looks great!

from material.

daniel-jonathan avatar daniel-jonathan commented on May 7, 2024

great :)

On Tue, Oct 13, 2015 at 11:33 AM, Connor Hicks [email protected]
wrote:

That's awesome! I'm testing now. Looks great!


Reply to this email directly or view it on GitHub
#63 (comment)
.

from material.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.