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. TMobile myFaves (com.tmobile.myfaves) is tied heavily into Android Framework?

When I kill any Google app, even the built in ones,
android.process.acore doesn't crash causing a cascade effect of
wonderfulness that is a black Launcher screen sometimes. So it can't
be related to being integrated into Google Authentications or
something. So, why the heck does myFaves do this? According to it's
package info it's process should be com.tmobile.myfaves.

A question for the TMobile guys, as well as pertinent to the Framework
engineers I think. And sure, I shouldn't be killing built in apps, but
I'm wondering why it has to behave like this.

10-02 19:46:06.716: DEBUG/ActivityManager(56): Uninstalling process
com.tmobile.myfaves
10-02 19:46:06.726: DEBUG/ActivityManager(56): Force removing process
ProcessRecord{433f8780 511:android.process.acore/10001}
(android.process.acore/10001)
10-02 19:46:06.726: INFO/ActivityManager(56): Killing app
com.google.process.gapps (pid 494) because provider
com.android.providers.im.ImProvider is in dying process
android.process.acore
10-02 19:46:06.726: INFO/Process(56): Sending signal. PID: 494 SIG: 9
10-02 19:46:06.746: INFO/Process(56): Sending signal. PID: 511 SIG: 9
10-02 19:46:06.766: DEBUG/ActivityManager(56): Force removing process
ProcessRecord{433c3b28 492:com.android.inputmethod.latin/10001}
(com.android.inputmethod.latin/10001)
10-02 19:46:06.766: WARN/ActivityManager(56): Scheduling restart of
crashed service com.android.inputmethod.latin/.LatinIME in 5000ms
10-02 19:46:06.776: INFO/Process(56): Sending signal. PID: 492 SIG: 9
10-02 19:46:06.816: INFO/ActivityManager(56): Process
com.google.process.gapps (pid 494) has died.
10-02 19:46:06.816: WARN/ActivityManager(56): Scheduling restart of
crashed service com.google.android.apps.gtalkservice/
com.google.android.gtalkservice.service.GTalkService in 5000ms
10-02 19:46:06.816: WARN/ActivityManager(56): Scheduling restart of
crashed service com.google.android.googleapps/.GoogleLoginService in
5000ms
10-02 19:46:06.826: DEBUG/ActivityManager(56): Received spurious death
notification for thread android.os.binderpr...@43381ff0
10-02 19:46:06.856: WARN/InputManagerService(56): Window already
focused, ignoring focus gain of:
com.android.internal.view.iinputmethodclient$stub$pr...@433095a8
10-02 19:46:06.896: DEBUG/ActivityManager(56): Received spurious death
notification for thread android.os.binderpr...@4327d3c8
10-02 19:46:06.896: INFO/WindowManager(56): WIN DEATH: Window{4311c660
com.android.launcher/com.android.launcher.Launcher paused=false}
10-02 19:46:07.076: WARN/ResourceType(56): No package identifier when
getting value for resource number 0x7f060001
10-02 19:46:10.136: INFO/ActivityManager(56): Starting activity:
Intent { action=android.intent.action.MAIN categories=
{android.intent.category.HOME} flags=0x10200000 comp=
{com.android.launcher/com.android.launcher.Launcher} }
10-02 19:46:10.177: INFO/ActivityManager(56): Start proc
android.process.acore for activity com.android.launcher/.Launcher:
pid=642 uid=10001 gids={3003}

--~--~---------~--~----~------------~-------~--~----~

2. Applicatoin Context Vs Activity Context

hello folks


I have read  the articles that say don't pass activity Context around
to avoid memory leaks.... My questions is.. Is it possible to get
Activity context from application context ..... i need to be able to
access the activity Context outside the Activity ... and i am a new to
android

--~--~---------~--~----~------------~-------~--~----~

3. Using ContentProvider.query to access multiple tables efficiently.

4. Is it possible to check if an activity is enabled or not?

5. Emulator -dpi-device option is not work.

6. downloading latest SDK

7. inner Service class has to be static...