Android setContentView operation

Posted by stormin986 on Stack Overflow See other posts from Stack Overflow or by stormin986
Published on 2010-04-24T18:26:53Z Indexed on 2010/04/24 18:33 UTC
Read the original article Hit count: 150

Filed under:
|
|

I've read that it's important to call setContentView() early in an activity since it builds the view objects that may be manipulated by subsequent code in onCreate().

In terms of lifecycle, does the view get drawn to screen as soon as setContentView() is called, or does it allow the onCreate() function to build/populate the information in the view objects, and wait to actually draw it after onCreate() completes?

Thanks!

© Stack Overflow or respective owner

Related posts about android

Related posts about view