google i/o 2014 recap
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.TRANSCRIPT
![Page 1: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/1.jpg)
Google I/O 2014 RecapTrey Robinson
![Page 2: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/2.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/3.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/4.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/5.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/6.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/7.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/8.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/9.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/10.jpg)
Volta - Battery Historian● Visual Display
○ Top:■ Screen On Time■ Network State■ User State (in phone
call?)
![Page 11: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/11.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/12.jpg)
Material Theme
![Page 13: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/13.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/14.jpg)
New Roboto Font
![Page 15: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/15.jpg)
Animations - (L Only)● New Thread Handling● RippleDrawable● StateAnimationDrawable● Reveal● Custom Interpolation● Animation Curves● Activity Transitions
![Page 16: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/16.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/17.jpg)
![Page 18: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/18.jpg)
Card View● Standard Look● Real Shadows on L● Fake Shadows pre-L
![Page 19: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/19.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/20.jpg)
RecyclerView - Cont.
![Page 21: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/21.jpg)
Notifications● Visual Changes● Expanded Layouts● Notification On Lock Screen● Heads-up Presentation Format● Cloud-sync● Media Controls
![Page 22: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/22.jpg)
Notification - Priority● Determine Display Order● High/Max for Heads Up● Heads Up display over apps
![Page 23: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/23.jpg)
Notifications - Lock Screen● Secure vs Insecure Lockscreen● User controls what is displayed
○ Public○ Private○ Secret
![Page 24: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/24.jpg)
Compatibility - Support Lib● Currently NO AppCompat Material Theme● RecyclerView● CardView● Pallette● RoundedBitmapDrawable● ViewPropertyAnimator● NotificationCompat
![Page 25: Google I/O 2014 Recap](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/25.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042715/55943c761a28ab774c8b45c3/html5/thumbnails/26.jpg)
Questions?