FreeFlow icon indicating copy to clipboard operation
FreeFlow copied to clipboard

requestLayout has no effect on child views

Open jtietema opened this issue 11 years ago • 1 comments

We are populating our content asynchronously and noticed that TextViews don't resize (WRAP_CONTENT) when setting new text values on them. It seems that measure and layout passes are only very selectively being passed to the child views. I tried calling layoutChanged, but that seems to cause jittering during scrolling as it does a whole lot more than just re-measure and re-layout.

I fixed my problem by basically manually calling measure and layout on the child view in the callback I set in my adapter.

My expected behaviour would be that when I set new text in a TextView or call requestLayout in a child view that FreeFlowContainer does not skip measuring and laying out the child views.

jtietema avatar Sep 22 '14 05:09 jtietema

I am getting the measuredHeight as 0 #78

jjhesk avatar Mar 16 '15 06:03 jjhesk