The fade will be gone in the next release.

Also the real problem with that is that it is doing the fade-out at all
when you have selected the item, instead of just leaving it highlighted
while doing the transition.

On Thu, Apr 19, 2012 at 11:25 PM, Jon Perlow <per...@gmail.com> wrote:

> I'm trying to improve the transition of an Activity containing a ListView
> that navigates to another Activity containing a ListView when the user
> selects an item.
>
> In ICS, the holo theme has a list selector that has a very nice fade-out
> transition. Maybe I am just doing something stupid, but AFAICT, the problem
> with this is that only a toy app could really make that transition work
> under Android's UI architecture. In order for the animation to be smooth,
> let's assume it needs a 25 fps draw rate. Drawing in android requires the
> UI thread. that means you can't block the UI thread for more than 40ms for
> that animation to render smoothly. In the scenario where clicking on a list
> item navigates to another activity, it requires that the other activity
> finish its onCreate, onStart, onResume, the measuring and layout of all its
> views in less than 40ms.
>
> Is this really possible for any real application? I noticed that most of
> the apps that come with Android are not using this transition. AFAICT, the
> Gmail app doesn't use it nor does the SMS app or the contacts app. There
> are a few apps that do use it like the preferences and the transitions are
> extremely choppy.
>
> -Jon
>
> --
> 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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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