Need to set the height of the layout manually, at least for rows in a ListView #3

Closed
mikaelgrev opened this Issue Jan 9, 2012 · 2 comments

Comments

Projects
None yet
2 participants

Hello,

As mentioned in this post

http://migcalendar.com/forums/viewtopic.php?f=8&t=3667

MigLayout doesn't set the height automatically (at least not in some circumstances) and it has to be done with something like this:

miglayout.setLayoutParams(new AbsListView.LayoutParams(AbsListView.LayoutParams.MATCH_PARENT, 50));

Thanks,
Mikael

Owner

saynomoo commented Jan 9, 2012

The issue is fixed now in release 0.9.5: http://saynomoo.github.com/maven/saynomoo/mig4android/mig4android/0.9.5/mig4android-0.9.5.jar

There was a bug in the logic when to use the miglayout calculated dimensions and when to use the given LayoutParameter dimensions.

saynomoo closed this Jan 9, 2012

Verified. It now works for me as well.

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