I need to retrieve the height of ScrollView defined in a layout xml file during activity startup. Which is the best practice to implement this. I've tried placing the code inside onCreate(), onStart() and onResume(). All gives height as 0 at startup. 
Is there any methods like onFinishInflate() for actvities?
Here is my code:
myScroll=(ScrollView) findViewById(R.id.ScrollView01);
int height=myScroll.getHeight();
 
     
     
    