Fragment animation as in Honeycomb Gmail app - how to do that?

by Scythe » Fri, 20 May 2011 00:14:57 GMT


Sponsored Links
 I'd like to achieve similar fragment behaviour as in the Honeycomb
Gmail app. So I have three fragment next to each other: A, B and C.
Initially, A and B is displayed, and when the user selects something
from B, it triggers an sliding-animation/fragment-transaction so that
B and C are visible. B showing the selected item, C showing the
desired content.

Any ideas how the Gmail app does this?

-- 



Re: Fragment animation as in Honeycomb Gmail app - how to do that?

by Ed Burnette » Fri, 20 May 2011 02:33:46 GMT


 There's probably using FragmentTransaction.setTransition() or
setCustomAnimations().




-- 


Sponsored Links


Other Threads

1. Stalling widget buttons after some time

Hey all,

I'm currently working on a widget/application and I have an issue with
that.
Before I get into the issue you could check out the code which is
available just over here: 
http://code.google.com/p/workregistrationwidget-android/source/browse/

So my issue... :)
The widget contains two buttons. The linking of the buttons with an
activity happens in my widget provider (http://code.google.com/p/
workregistrationwidget-android/source/browse/trunk/
WorkRegistrationWidgetAndroid/src/eu/vranckaert/workRegistrationWidget/
widgetProvider/WorkRegistrationWidgetProvider.java). So far so good.
Clicking the buttons interacts with my activities and my widget gets
updated.
However after some time (and this did not happen with myself but with
one of my testers) the buttons just didn't work anymore. He had to
remove the widget from and add it again (no re-install) and it fixed
the problem.

So I was thinking about two possible places where it might go wrong:
1) First off all I was thinking that the linking with the buttons to
an activity through an intent maybe isn't the right way. Anyone who
knows?
2) And secondly because there is always large period between when it
was working and when it wasn't anymore (a few hours at least) I was
wondering if it could have anything to do with the updatePeriod set in
the widget info xml file (http://code.google.com/p/
workregistrationwidget-android/source/browse/trunk/
WorkRegistrationWidgetAndroid/res/xml/
work_registration_widget_info.xml) altough it is set to 24 hours.

I should mention that I tested it on Android 1.5, 1.6 (only for a
small amount time in the emulator), 2.1 and 2.2 and I can't reproduce
the issue he's having.

Anyone who has any idea cause I'm not seeing any solution anymore?!!

-- 

2. Looking for Android GUI Design Tools and Resources

I used DroidDraw, however, it had bugs that might destroy previous
work. I'd like to hear more experienced android developers what is
good workflow for designing layout files from scratch. Is there any
good gui resources for android development. Thanks in adance!

-- 

3. An SDK without Java

4. Froyo on Hero

5. casemate Vroom nexu

6. Fonts

7. SurfaceView Lifecycle - Switching between a Layout and a SurfaceView