I'm having an issue that is hard to figure out, where requestLayout() calls from child views don't seem to be honored. Here is what I'm doing:
- my activity has a main FrameLayout in MATCH_PARENT mode for its main view - my containers derive from ViewGroup. Mostly, all items have absolute positions. Initial measurement and layout work fine - sometimes, a child view does not immediately know its size, because it's waiting for a remote image to load. During the measurement pass, it sets its measure dimensions to (0,0) then performs a requestLayout() later when the image arrives. What I'm seeing is that the requestLayout() never ends up redoing a layout pass. I have a similar issue with lists, where a ListView enclosed in my container (equivalent to AbsoluteLayout) will never update when new items are being added, even though I properly notifyDataSetChange(), etc. So I'm stuck here with containers that properly perform initial layout but never perform further layouts. I'm pretty sure I'm missing something (maybe a flag to set somewhere) that would unlock this situation. Unfortunately, hours of looking at the Android source code for View, ViewGroup and various layouts didn't help much. Is there anything obvious I'm missing here, that would prevent honoring further requestLayout() calls along my view hierarchy? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en