Friday, February 26, 2010

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

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 the total,
> AFAIK.
>
> > 2). how does setBackgroundResource() increase the depth or memory
> > usage of 'the stack'?
>
> It presumably triggers a different code path that makes more/deeper
> nested set of calls.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.0
> Available!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate