Skip to content

Conversation

@AnEnigmaticBug
Copy link
Contributor

Fixes #1135

Changes: The ImageViews in item_card_events.xml, item_card_similar_events.xml and content_event.xml that display event images have width/height ratio of 2:1 which is the same as that of the images they display.

Earlier, since the ratios of ImageViews and images were different, the images were clipped. This was clearly noticeable on some images.

This change involved converting those layouts to ConstraintLayout because ConstraintLayout allows setting ratios.

Screenshots for the change:

matched_ratio1
matched_ratio2

The ImageViews in item_card_events.xml, item_card_similar_events.xml and
content_event.xml that display event images have width/height ratio of
2:1 which is the same as that of the images they display.

Earlier, since the ratios of ImageViews and images were different, the
images were clipped. This was clearly noticeable on some images.

This change involved converting those layouts to ConstraintLayout
because ConstraintLayout allows setting ratios.

Fixes: fossasia#1135
@iamareebjamal iamareebjamal merged commit e4560d6 into fossasia:development Feb 21, 2019
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.

2 participants