26
Google I/O 2014 Recap Trey Robinson

Google I/O 2014 Recap

Embed Size (px)

DESCRIPTION

Recap of some of the features highlighted at Google I/O 2014. Includes RecyclerView, Android Work, Render Thread, Animations, Shadows and Material Design coverage. Also outlines Gradle updates and the latest additions to Android Studio.

Citation preview

Page 1: Google I/O 2014 Recap

Google I/O 2014 RecapTrey Robinson

Page 2: Google I/O 2014 Recap

Overview○ Android Studio○ Gradle○ Android Work○ ART Updates○ Project Volta○ Material Design○ New Roboto○ Animation○ Shadows○ RecyclerView○ CardView○ Notifications

Page 3: Google I/O 2014 Recap

Android Studio● Now in BETA!● Support for Wear, Auto and TV● Improved Eclipse Migration● Improved Project Flow

○ Currently Available on Canary Channel (8.4)

● Start Using Android Studio○ it is still Beta but ...○ Be Prepared to Switch

Page 4: Google I/O 2014 Recap

Gradle● More Stable

○ No more breaking builds on Studio updates. ● Variants, Flavors, APK Splits

○ Debug, Release, Test, Production, etc.○ Paid vs Free○ Split APKs (x86, ARM, etc)○ Device Specific

Page 5: Google I/O 2014 Recap

Android Work● Unified Interaction Model● New badge for apps administered by IT● BYOD Devices - IT Work Profiles● Company Devices - IT has full control● New APIs ● Large Scale App Deployment via Play● Uses Samsung KNOX

Page 6: Google I/O 2014 Recap

Goodbye Dalvik - Hello ART● Why ART?

○ Hardware outpacing software■ Multiprocessor■ 4x more RAM■ 60x more flash memory

○ Dalvik was targeted for ARM architectures

Page 7: Google I/O 2014 Recap

ART Features● No changes for most developers. ● 3 main compilers:

○ L compiler○ JNI Compiler○ DEX to DEX optimizer

● Ahead of time compilation● Improved GC● 64 Bit Support● Greatly Improved Alloc

Page 8: Google I/O 2014 Recap

Project Volta● Job Scheduler

○ Defer and Schedule CPU/Battery intensive operations○ Set Criteria:

■ Network Type (Metered/Unmetered)■ Battery State (Device Plugged In?)■ Idle Mode■ Retry Criteria■ Deadlines

○ Examples:■ Database Ops■ Backups

Page 9: Google I/O 2014 Recap

Volta - Battery Stats● New Battery Stats Utility

○ Partial Wakelock Time○ Run time○ Mobile Data Used○ Signal levels○ Mobile Radio Activity○ Signal Scanning Time

Page 10: Google I/O 2014 Recap

Volta - Battery Historian● Visual Display

○ Top:■ Screen On Time■ Network State■ User State (in phone

call?)

Page 11: Google I/O 2014 Recap

Material Design● New Theme (Theme.Material)● Improved Animation APIs

○ Ripples○ Activity Transitions

● Depth and Shadows● Many New APIs

○ RecyclerView!○ CardView

● New Support Library

Page 12: Google I/O 2014 Recap

Material Theme

Page 13: Google I/O 2014 Recap

Material Changes● Theme Colors● Tint colors for most UI elements

○ NO MORE DRAWABLES FOR ACTIONBAR COLOR CHANGES!!1!!!111!!1!!!!!!

● Define Bitmaps as an alpha mask and tint them

● Color Extraction ○ Palette API

Page 14: Google I/O 2014 Recap

New Roboto Font

Page 15: Google I/O 2014 Recap

Animations - (L Only)● New Thread Handling● RippleDrawable● StateAnimationDrawable● Reveal● Custom Interpolation● Animation Curves● Activity Transitions

Page 16: Google I/O 2014 Recap

Shadows - (L Only)● Realtime Area Lightsource● Elevates views above 2D view hierarchy● Draws outside of bounds● Animation of Z Translation

Page 17: Google I/O 2014 Recap
Page 18: Google I/O 2014 Recap

Card View● Standard Look● Real Shadows on L● Fake Shadows pre-L

Page 19: Google I/O 2014 Recap

RecyclerView● Replaces ListView● In Support Library● Built in Animation Support

○ Addition and Removal● ViewHolder is Now Part of the API● Grid/List/Custom layout support PSA: If you are an Android “developer” and you do not know what a ViewHolder is, then you should probably look it up.

Ex. A

Page 20: Google I/O 2014 Recap

RecyclerView - Cont.

Page 21: Google I/O 2014 Recap

Notifications● Visual Changes● Expanded Layouts● Notification On Lock Screen● Heads-up Presentation Format● Cloud-sync● Media Controls

Page 22: Google I/O 2014 Recap

Notification - Priority● Determine Display Order● High/Max for Heads Up● Heads Up display over apps

Page 23: Google I/O 2014 Recap

Notifications - Lock Screen● Secure vs Insecure Lockscreen● User controls what is displayed

○ Public○ Private○ Secret

Page 24: Google I/O 2014 Recap

Compatibility - Support Lib● Currently NO AppCompat Material Theme● RecyclerView● CardView● Pallette● RoundedBitmapDrawable● ViewPropertyAnimator● NotificationCompat

Page 25: Google I/O 2014 Recap

Running L● Nexus 5 / 7 Images Available● L Preview SDK Available via SDK Manager● Requires JDK 7● Issues with Support Library● Check out the API Demos

Page 26: Google I/O 2014 Recap

Questions?