Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

requestLayout has no effect on child views #70

Open
jtietema opened this issue Sep 22, 2014 · 1 comment
Open

requestLayout has no effect on child views #70

jtietema opened this issue Sep 22, 2014 · 1 comment

Comments

@jtietema
Copy link

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.

sklaman added a commit to sklaman/FreeFlow that referenced this issue Oct 15, 2014
…ts in xml were preventing the drawing of child views
sklaman added a commit to sklaman/FreeFlow that referenced this issue Oct 15, 2014
…ts in xml were preventing the drawing of child views, cleanup commit
arpit added a commit that referenced this issue Jan 12, 2015
fixes issue #49, and possibly #70 - properly compute and draw child views when layout weights are specified
@jjhesk
Copy link

jjhesk commented Mar 16, 2015

I am getting the measuredHeight as 0 #78

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants