Emulator or Phone and what was the Android version running on it?

On Wednesday, January 9, 2013 10:40:27 PM UTC, bob wrote:
>
> I'm stepping thru my source.
>
> I have a call to invalidate().
>
> I stepped into it, and attached the android source (version 16).
>
> However, it went here:
>
>     /**
>      * Used to indicate that the parent of this view should be 
> invalidated. This functionality
>      * is used to force the parent to rebuild its display list (when 
> hardware-accelerated),
>      * which is necessary when various parent-managed properties of the 
> view change, such as
>      * alpha, translationX/Y, scrollX/Y, scaleX/Y, and rotation/X/Y. This 
> method will propagate
>      * an invalidation event to the parent.
>      *
>      * @hide
>      */
>     protected void invalidateParentIfNeeded() {
>         if (isHardwareAccelerated() && mParent instanceof View) {
>             ((View) mParent).invalidate(true);
>         }
>     }
>
>
>
> Why did it go to the function *invalidateParentIfNeeded()* instead of the 
> function *invalidate()*?
>
>

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

Reply via email to