Profile cover photo
Profile photo
Tommy McHugh
75 followers -
Run Run Run.
Run Run Run.

75 followers
About
Tommy's posts

Post has shared content

Post has shared content
Our Google Drive API course just launched and it is free for everyone! Check it out: http://bit.ly/1mrmrvI

Post has shared content
Today’s #AndroidDev #Protip from +Nick Butcher and +Katherine Kuan is on a smoother app launch experience.

On app launch, Android displays a simple preview window (based on your activity theme) as an immediate response to the user action. Then the preview window crossfades with your actual UI, once that has fully loaded. To ensure a smooth visual transition, your activity theme should match your full UI as closely as possible. The below image shows how the experience can be jarring if not handled properly. 

For example, if your activity does not require an action bar, then disable it in your theme so that it doesn’t briefly appear in the preview window. To do this, use or extend an activity theme with no action bar. You can also override the background color of the window, if applicable, to better match your full UI.

<style name="AppBaseTheme" parent="android:Theme.Holo.NoActionBar">
    <item name="android:windowBackground">@color/red</item>
</style>

When using an action bar in your activity you can tweak it’s displayOptions such as showing or hiding the title or logo to achieve a smooth app launch. For more info on this refer to the documentation http://goo.gl/G8lJgj & Action Bar API guide http://goo.gl/sSbXNf.

Don’t be tempted to use this functionality to build a splash screen as the preview window is shown whenever the activity is constructed i.e. after configuration changes such as rotating your device; not just on the first app launch.  Do use this to create a smooth experience for your users, minimising jarring transitions. For more info on gorgeous app launching see this blog post http://goo.gl/PR4hCr by +Cyril Mottier.
Animated Photo

Post has attachment
Building a moonshot. My experiences so far this summer.

Post has attachment
Google I/O at 1871
PhotoPhotoPhotoPhotoPhoto
17 Photos - View album

Post has attachment

Post has attachment
Why we all have to start somewhere.

Post has attachment
Breaking past digital communication with glass

Post has attachment
Seeing Chrome's new rendering engine might have sparked some controversy, but I am with you all the way. I see this as an opportunity to trim the fat off of WebKit. +Google Chrome Developers  #Blink  
Photo
Wait while more posts are being loaded