> The widget / app selector on my Galaxy Nexus does stutter somewhat,
> but if I scroll it all the way and then back again, it then animates
> much smoother.
>
> Based on this, I'd think it's the app / widget icon cache population,
> not the drawing.

There are stutters at times in the app/widget drawer. (I'm working on
a launcher replacement so I've been looking into it). It's difficult
to diagnose as there's a lot going on (cache, garbage collection,
loading resources from disk) and (proper) benchmarking and hardware
acceleration are hard topics.

It seems on official Android 4.0.2 on the GN there's a slight stutter
when starting to scroll a page for the first time, but removing the
call to         setLayerType(LAYER_TYPE_HARDWARE, null); does prevent
the stutter. I didn't notice a difference on AOSP Android 4.0.3 on the
GN (and official 4.0.3 on the NS, but lower resolution which effects
things also).

Also interestingly, the animation does a setAlpha and the
documentation 
http://developer.android.com/reference/android/view/View.html#setAlpha(float)
states that this implies calling setLayerType with a hardware layer.
However I couldn't verify this with getLayerType. (I peaked into the
code and didn't find it either, but it's a bit confusing). A comment
on this from Romain or another Googler would be greatly appreciated.

-Kevin

-- 
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