Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aspectRatio into xml property #150

Closed
villadora opened this issue Apr 15, 2015 · 3 comments
Closed

Add aspectRatio into xml property #150

villadora opened this issue Apr 15, 2015 · 3 comments

Comments

@villadora
Copy link

Hi, I found that in the doc, we can call setAspectRatio in java to set aspect ratio, but it's not available for declaring in xml, like:

<SimpleDraweeView fresco:aspectRatio="1.3f" />

Thanks

@tyronen
Copy link
Contributor

tyronen commented Apr 16, 2015

I think we will have this ready soon.

@tyronen
Copy link
Contributor

tyronen commented Apr 23, 2015

This has been added in today's release, 0.4.0. It is called fresco:viewAspectRatio.

@tyronen tyronen closed this as completed Apr 23, 2015
@squeeish
Copy link

In the docs,

fresco:viewAspectRatio="1.33f"

must be

fresco:viewAspectRatio="1.33"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants