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

Added fix for #30 to fix problem with items of different height shown correctly in list #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mortenholmgaard
Copy link

Fix problem with items of different height shown correctly in list
with code from @OJIer3 in this issue: #30

@sulo61
Copy link

sulo61 commented May 13, 2019

my library as response for this issue https://github.com/sulo61/SimpleSwipeMenuLayout-SSML

// create new measure spec using the largest child width
widthMeasureSpec = MeasureSpec.makeMeasureSpec(desiredWidth, widthMode);
heightMeasureSpec = MeasureSpec.makeMeasureSpec(desiredHeight, heightMode);
heightMeasureSpec = MeasureSpec.makeMeasureSpec(desiredHeight, MeasureSpec.EXACTLY);

Choose a reason for hiding this comment

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

@mortenholmgaard In our case, we had to keep the current heightMode to have the correct behavior. If we use MeasureSpec.EXACTLY it stretches too much the view : we loose some margins.
And thanks for the fix by the way !

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.

3 participants