android l and wear overview

49
James Montemagno Developer Evangelist, Xamarin @JamesMontemagno Android L and So Much More

Upload: james-montemagno

Post on 09-Dec-2014

147 views

Category:

Engineering


2 download

DESCRIPTION

Overview of Android L, Wear, and TV at Seattle Mobile .NET Developers Group, October 2014

TRANSCRIPT

  • 1. Android L and So Much MoreJames MontemagnoDeveloper Evangelist, Xamarin@JamesMontemagno

2. New in Android Android L Developer Preview Android Wear Android TV 3. Android L Developer Preview 4. Android L Major Features ART Runtime Material Design Widgets, Views, and Shadows Animations Notifications Compatibility 5. Android L Major FeaturesARTRuntime Ahead-of-Time compilation Improved Garbage Collection Improved Debugging Support 6. Android L Major FeaturesMaterialDesignMaterial metaphor Bold, graphic, intentional Motion provides meaninggoogle.com/design/spec/material-design/introduction.html 7. Brand new style forapplications. Theme.Material Theme.Material.Light Theme.Material.Light.DarkActionBarMaterial Design 8. colorPrimary AppBranding Color colorPrimaryDark Statusbar & contextual bars colorAccent Theme UIControls (ie. checkbox)Material Design Color Palette 9. Material Design Color Palette 10. Extract ProminentColors from Image 6 Palettes GeneratedMaterial Design PalettesGenerate a color pallet from an imagehttps://www.nuget.org/packages/Xamarin.Android.Support.v7.Palette/ 11. Material Design Drawable Tint Bitmaps as alpha maps android:tint=@color/blue 12. Demo 13. Android L Major FeaturesView andShadows CardView RecyclerView Elevation 14. CardViewWrap any view in a CardViewhttps://www.nuget.org/packages Xamarin.Android.Support.v7.CardView/ 15. RecyclerView High speed efficient ListView Includes layout manager for positioning items Default animations for common item operationshttps://www.nuget.org/packages/Xamarin.Android.Support.v7.RecyclerView/ 16. Elevation android:elevation=2dp View.SetTranslationZ method Z = elevation + translationZ 17. Demo 18. Android L Major FeaturesAnimations Touch Feedback Reveal Activity Transitions 19. AnimationSurface reaction 20. AnimationSurface reactionMaterial response 21. AnimationSurface reactionMaterial response Radial action 22. Default Touch Feedback Animation:RippleDrawable Set Background to: ?android:attr/selectableItemBackground ?android:attr/selectableItemBackgroundBorderless Create custom RippleDrawable usingthe ripple elementAnimation Touch Feedback 23. Animation Reveal Easily createclipping circles 24. Animation Activity Transitions Custom animations for enter and exit transitionsof activities Enter: How views in the activity enter Exit: How view in activity exit Shared Elements: How views that are sharedbetween 2 activities animate 25. Android L Major FeaturesNotifications Lock Screen Notifications Notifications Metadata Unified Notifications 26. New APIs Lock Screen Notifications (Android L) Android.App.Notification.Builder.SetVisibility() Private: Shows basic information such as icon, buthides full content Public: Show the notification's full content Secret: Show nothing, excluding even thenotifications icon 27. New APIs Notifications Metadata (Android L) SetCategory(): Tells the system how to handlenotifications when the device is in Do not Disturb SetPriority(): Set to Max or High to appear in asmall floating window if the sound also has a vibrationor sound. AddPerson(): Add a list of people to notification. 28. Unified Notifications Standard and Extended 29. Demo 30. Android L Major FeaturesCompatibility& More New APIs Android L Small Features Google Play Services via NuGet 31. New APIs Compatibility Material Theme Only available in Android LDeveloper Previewo Define theme that inherits fromolder theme (like Holo) inres/values/styles.xmlo Define them with same name thatinherits from Material in res/values-v21/styles.xmlo Set theme as your apps theme inmanifest file Layouts Do not use any of the new XML attributes fromAndroid L Developer Preview, they will not workwith previous versions of Android. You must provide alternative layouts if you wishto use themo L Preview Layouts: res/layout-v21/o Alternative Layouts: res/layout/o Do avoid duplication of code, define styles inres/values/o Modify the style in res/values-v21/ for new APIs 32. New APIs Compatibility UI Widgets Support v7: RecyclerView & CardViewo Limitations (pre-L Preview):o CardView falls back toprogrammatic shadowsimplementation using additionalpaddingo CardView does not clip its childrenthat intersect with rounded corners Animations Following are Android L Developer Preview ONLY:o Activity Transitionso Touch feedbacko Reveal animationso Path-based animations 33. Android L Small Features Camera Enhanced image andvideo capturing. CaptureRaw sensor data. Multi-networking Dynamically scan foravailable network withspecific capability andautomatically connect. BLE Peripheral Mode Apps that connect to devicessuch as pedometer or healthmonitor and transfer data toanother BLE device. Document-Centric Recents Job Scheduler 34. Google Play Services via NuGet Play Game Services: event based challenges, savedgames, and game profiles App Indexing API Google Cast: Media tracks for closed captioning Wallet: Save to Wallet, geo-fenced in-store notifications,split tender between wallet & card Analytics: Measure product impressions/product clicks Mobile Ads: in-app purchase ads Dynamic Security Provider 35. Android Wear 36. Android Wear Extending Apps Enhance Existing Apps Support v4 Notification APIo WearableExtender Inbox Style Cards Voice Input 37. Android Wear Notifications + Expanded 38. Android Wear Notifications - Actions 39. Android Wear Building Apps Companion App Android app that runs on a wearable New Themes New UI Widgets BoxInsetLayout CircledImageView WearableListView Morehttp://www.nuget.org/packages/Xamarin.Android.Wear/ 40. Android Wear Sync Data Exposed via Google Play Services Data APIo Sync datastore between phone and wearable Message APIo Send small payloads and simpleo communicationhttp://www.nuget.org/packages/Xamarin.GooglePlayServicesJellyBean/ 41. Android Wear Templates + NuGethttp://www.nuget.org/packages/Xamarin.Android.Wear/ 42. Demo 43. Android TV 44. Android TV Features Made for TV Pre-built fragments for browsing & interactingwith media catalogs In-App Searching Voice input for searching content Recommendations Suggest content from your app Chromecast Built-in 45. Android TV ADT-1 Development Kithttp://developer.android.com/tv/index.html 46. Android TV + Xamarin Available via NuGet https://www.nuget.org/packages/Xamarin.Android.Support.v17.Leanback Samples: https://github.com/xamarin/monodroid-samples 47. Android Recap Android L Developer Preview Material Design Views & Animations Notifications Android Wear Notifications & Companion Apps Android TV 48. Resources Tips for Your First Wear App http://blog.xamarin.com/tips-for-your-first-android-wear-app/ Android L Documentation http://developer.xamarin.com/guides/android/platform_features/android_l/introduction_to_android_l/ Samples http://developer.xamarin.com/samples/android/ 49. Q & AJames MontemagnoDeveloper Evangelist, Xamarin@JamesMontemagno