The trick is simple: avoid any allocation that might trigger a GC.

On Wed, Mar 25, 2009 at 1:18 PM, admin.androidsl...@googlemail.com
<admin.androidsl...@googlemail.com> wrote:
>
> Getting a bit disillusioned after spending most of the day trying to
> make a smooth scrolling app. I've tried everything, views, surface
> views, delaying threads, just scrolling tiny pictures, etc., but
> whatever I try, there is always an unsightly flicker even though I can
> easily achieve 20 - 30 fps.
>
> So I thought I'd check out whats out there in the market to see if
> anyone else can crack this. And I couldn't find anything at all! Most
> games don't handle scrolling at all, just moving whats on the screen.
> Even commercial games like deBlob don't seem to scroll smoothly.
>
> And yet I did find one single app which does handle smooth scrolling.
> The native picture viewer does very smooth scrolling on the thumbnail
> view. Does anyone know how the picture viewer does smooth thumbnail
> scrolling? Going through the source code, I think it uses an extended
> View - GridViewSpecial.
>
> Could anyone offer any other examples of smooth scrolling?
>
> Surely smooth scrolling is going to be vital if apps want to out-
> perform iPhone apps!!
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to