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. AudioRecord delay in recording

I'm using a class that uses AudioRecord.

                                RehearsalAudioRecorder recorder = new 
RehearsalAudioRecorder(
                                                
RehearsalAudioRecorder.RECORDING_UNCOMPRESSED,
                                                MediaRecorder.AudioSource.MIC,
                                                16000,
                                                AudioFormat.CHANNEL_IN_MONO,
                                                AudioFormat.ENCODING_PCM_16BIT);

The RehearsalAudioRecorder constructor instantiates an AudioRecord:

                              aRecorder = new AudioRecord(audioSource,
sampleRate, channelConfig, audioFormat, bufferSize);

I'm creating a .wav file on the SD card.

I'm experiencing a 5 second delay in the recording; I play back the
file, and the recording starts about 5 seconds after I started
speaking.

I did some measurements with System.currentTimeMillis(), and I
measured the following:

buffer size: 204800 bytes
constructor: 17 ms
write the file header: 6 ms
AudioRecord.startRecording(): 483 ms
AudioRecord.read(): 6268 ms

There's correspondingly less delay when I use a smaller buffer:

buffer size: 81920 bytes
constructor: 16 ms
write the file header: 5 ms
AudioRecord.startRecording(): 486 ms
AudioRecord.read(): 2427 ms

Does anyone have any suggestions as to how to reduce the delay?  It's
still unacceptable to have a few seconds delay.


-- 

2. Human interface guidelines. Equivalent to iPhone sectioned table

I would be interested in a answer to this as well.




Hello,
Does Google or anyone publish UI guidelines for Android?

In particular, when moving an app from the iPhone to Android, are
there any conventions for equivalent UI controls or suggested UI
design?

On the iPhone, the sectioned table view is used to provide multiple
choices for paths to follow through an application.

What is the suggested equivalent on Android? Do any UI guidelines
exist? I'm trying to come up with something that looks nice. The
iPhone version has an image background surrounding the table.

Some options I can think of include:
- A series of buttons: Not sure if this will look cheesy.
- A list view: Typically consumes the whole window. Doesn't look as
nice as the iPhone version.
- A list view inset in a window: I've done this before. Looks ok.
Corners are not rounded like they are on the iPhone. Can do a
background.

Any suggestions?

--

3. XMPP service, jabber , push notification

4. <WTA> Twidroid Pro...

5. Download multiple objects from the same server

6. how to get screen height minus the title bar and status bar.

7. Activity and view inflation