What about View.onAttachedToWindow()
?
If that does not work (the documentation says it might even be called before onMeasure()
, so I'm not sure whether the timing and freuqency suit your needs), you could maybe hook into the layout process, by extending one of the View objects you use, and override View.onLayout
to schedule a UI thread callback. I would prepare for a multiple occurence though.