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. Service binding pattern and the out-of-memory killer

I have noticed most apps follow the pattern of starting and binding to
their services during an activity's onCreate, and similarly unbinding
during onDestroy.   From my understanding, this means that if the user
enters an activity with a transient service, but then leaves the
activity using the Home key (and not Back), the service will remain
connected even after stopSelf is called to indicate that the service
is no longer busy.

The implication of this is that the process hosting the service will
have an oom_adj of 2, leaving it much less likely to be reaped by the
out-of-memory killer even in the event that the service isn't busy
doing anything.

I tested this against the Music app in particular, and it is subject
to this problem.  Leaving the app with the home key will leave the
process active with oom_adj=2, even without music playing.

I have adjusted my application to bind/unbind during onStart/onStop
which is the only work-around to this that I know of.  In practice,
the performance does not seem to be much different.
--~--~---------~--~----~------------~-------~--~----~

2. How do I use GoogleLoginService?

I'm trying to find out how Android gets the user's Google account
login details.  This is so that I may use their authenticated token in
my app which will need it for one of the Google Data services.

I assume from the built in "GoogleLoginService" which I can see in
LogCat as well as in the Development Tools on the emulator, that
somehow a configuration app like this is where the user will set their
Google account credentials (although I'm sure it won't be called
Development Tools on the real device), and this service is where the
authenticated token can be picked up by the email app, the calendar
app, the contacts app etc.

But I can't find any reference to the GoogleLoginService in the
documentation, so I don't even know if this is how I'm supposed to
handle logging into Google apps.  I can't find any class called
GoogleLoginService in my Eclipse dev environment.

Can someone tell me how to use this, or am I looking in the wrong
place?  How does an app accomplish this?

cheers,
Ian
--~--~---------~--~----~------------~-------~--~----~

3. About the ProgressDialog??Someone help me?

4. System UID's Inconsisten

5. Emulator on webpage

6. Launch Web Browser from Application

7. URLSpan onClick issue