[android-developers] Re: what is the CRITICAL POINT of view layout to get hit by StackOverflowError exception

2010-02-26 Thread HeHe
Mark, thank you so much for the pointer and information!! you are right on the tabs and activity. the view hierarchy depth of my activity is only 6 but, because the activity is 'hosted' by another TabActivity, the total depth on StackOverflowError exception is 13 (6+7). what i don't understand

Re: [android-developers] Re: what is the CRITICAL POINT of view layout to get hit by StackOverflowError exception

2010-02-26 Thread Mark Murphy
HeHe wrote: 1). is the critical point measured by the depth of hierarchy or by the total memory size used by all the views on the hierarchy? For StackOverflowException, the depth is more critical than the total, AFAIK. 2). how does setBackgroundResource() increase the depth or memory usage

[android-developers] Re: what is the CRITICAL POINT of view layout to get hit by StackOverflowError exception

2010-02-26 Thread HeHe
thanks for the answers~_~ On Feb 26, 11:07 am, Mark Murphy mmur...@commonsware.com wrote: HeHe wrote: 1). is the critical point measured by the depth of hierarchy or by the total memory size used by all the views on the hierarchy? For StackOverflowException, the depth is more critical than