SwipeRevealLayout
SwipeRevealLayout copied to clipboard
Children layout_height="match_parent" does not work
I may be doing something wrong, but I cannot for the life of me get this to work. Only the first child of the swipe review layout seems to match parent height or width correctly, otherwise they all function as if I put wrap_content.
I have an update to this issue. For some reason, when using match_parent for height in the swipe view instead of wrap_content, my view height is 0
@calkinssean do you know what the solution would be?
@oec08 as of right now, no. I ended up using hard coded sizes but it makes it so the extra buttons won't dynamically change size if the cell gets bigger.
I noticed the same problem and had to use fixed sizes.
@calkinssean would you mind creating a PR to try and get that bug fixed? I've been forced to use a view tree observer. Not ideal but much better than hardcoding height values in my case.
@calkinssean try invoke requestLayout() on children after drawing layout. It works well for me
The solution for me was to replace children from RelativeLayout to LinearLayout