I have a background thread that updates the UI of my activity, after the onCreate(). It can be adding layouts, or changing the size of others.
I simply
A GlobalLayoutListener will fire an event on completion of a layout. Would that suit your needs?
View myView=findViewById(R.id.myView);
myView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
//At this point the layout is complete and the
//dimensions of myView and any child views are known.
}
});