Skip to content

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

Open
mortenholmgaard wants to merge 1 commit intochthai64:masterfrom
mortenholmgaard:Items-with-different-heights
Open

Added fix for #30 to fix problem with items of different height shown correctly in list#87
mortenholmgaard wants to merge 1 commit intochthai64:masterfrom
mortenholmgaard:Items-with-different-heights

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