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

[Android] Respect both image size and column width #4613

Merged
merged 8 commits into from
Aug 24, 2020
Merged

Conversation

golddove
Copy link
Member

@golddove golddove commented Aug 18, 2020

Related Issue

Fixes #4439

Description

Uses constraint layout to make images grow to the requested size, but not larger than the parent container/column.

How Verified

Manual verification:

v1.2/Tests/ImageSizing.json:

4439

ActivityUpdate.json:

image

FlightItinerary.json:
image

ProductVideo.json:
image
image

Agenda.json:
image

Microsoft Reviewers: Open in CodeFlow

app:barrierDirection="left"
app:constraint_referenced_ids="widthPlaceholder" />


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extra spaces

@golddove golddove marked this pull request as ready for review August 21, 2020 04:58
"type": "AdaptiveCard",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch 👍

@almedina-ms
Copy link
Contributor

Last time there were problems with media and other elements, could you do a quick run across all cards to check that everything is working as expected?

@golddove
Copy link
Member Author

Test evidence added to PR description

@golddove golddove merged commit fb8460b into main Aug 24, 2020
@golddove golddove deleted the golddove/4439 branch August 24, 2020 22:03
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
* Revert "Revert "[Android] Use ConstraintLayout for Image sizing (microsoft#4461)" (microsoft#4520)"

This reverts commit efb0e17.

* Fix for containers with auto width

* Fix media images

* Switched to xml for clarity

* Refactor, cleanup whitespace

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

Successfully merging this pull request may close these issues.

[Android][Rendering] Conflict between image size and column weight
2 participants