SlideShare une entreprise Scribd logo
1  sur  50
Android L and So Much More 
James Montemagno 
Developer Evangelist, Xamarin 
@JamesMontemagno
New in Android 
– Android L Developer Preview 
– Android Wear 
– Android TV
Android L Developer Preview
Android L Major Features 
 ART Runtime 
 Material Design 
 Widgets, Views, and Shadows 
 Animations 
 Notifications 
 Compatibility
Android L Major Features 
ART 
Runtime 
 Ahead-of-Time compilation 
 Improved Garbage Collection 
 Improved Debugging Support
Android L Major Features 
Material 
Design 
Material metaphor Bold, graphic, intentional Motion provides meaning 
google.com/design/spec/material-design/introduction.html
 Brand new style for 
applications. 
• Theme.Material 
• Theme.Material.Light 
• Theme.Material.Light. 
DarkActionBar 
Material Design
 colorPrimary – App 
Branding Color 
 colorPrimaryDark – Status 
bar & contextual bars 
 colorAccent – Theme UI 
Controls (ie. checkbox) 
Material Design – Color Palette
Material Design – Color Palette
 Extract Prominent 
Colors from Image 
 6 Palettes Generated 
Material Design –Palettes 
Generate a color pallet from an image 
https://www.nuget.org/packages/Xamarin.Android.Support.v7.Palette/
Material Design – Drawable Tint 
 Bitmaps as alpha maps 
 android:tint=“@color/blue”
Demo
Android L Major Features 
View and 
Shadows 
 CardView 
 RecyclerView 
 Elevation
CardView 
Wrap any view in a CardView 
https://www.nuget.org/packages Xamarin.Android.Support.v7.CardView/
RecyclerView 
 High speed efficient ListView 
 Includes layout manager for positioning items 
 Default animations for common item operations 
https://www.nuget.org/packages/Xamarin.Android.Support.v7.RecyclerView/
Elevation 
 android:elevation=“2dp” 
 View.SetTranslationZ method 
 Z = elevation + translationZ
Demo
Android L Major Features 
Animations 
 Touch Feedback 
 Reveal 
 Activity Transitions
Animation 
Surface reaction
Animation 
Surface reaction 
Material response
Animation 
Surface reaction 
Material response Radial action
 Default Touch Feedback Animation: 
RippleDrawable 
 Set Background to: 
• ?android:attr/selectableItemBackgro 
und 
• ?android:attr/selectableItemBackgro 
undBorderless 
 Create custom RippleDrawable using 
the ripple element 
Animation – Touch Feedback
Animation – Reveal 
 Easily create 
clipping circles
Animation – Activity Transitions 
 Custom animations for enter and exit transitions 
of activities 
• Enter: How views in the activity enter 
• Exit: How view in activity exit 
• Shared Elements: How views that are shared 
between 2 activities animate
Android L Major Features 
Notifications 
 Lock Screen Notifications 
 Notifications Metadata 
 Unified Notifications
New APIs – Lock Screen Notifications (Android L) 
 Android.App.Notification.Builder.SetVisibility() 
• Private: Shows basic information such as icon, but 
hides full content 
• Public: Show the notification's full content 
• Secret: Show nothing, excluding even the 
notification’s icon
New APIs – Notifications Metadata (Android L) 
 SetCategory(): Tells the system how to handle 
notifications when the device is in Do not Disturb 
 SetPriority(): Set to Max or High to appear in a 
small floating window if the sound also has a vibration 
or sound. 
 AddPerson(): Add a list of people to notification.
Unified Notifications – Standard and Extended
Demo
Android L Major Features 
Compatibility 
& More 
 New APIs 
 Android L Small Features 
 Google Play Services via NuGet
New APIs – Compatibility 
 Material Theme 
• Only available in Android L 
Developer Preview 
o Define theme that inherits from 
older theme (like Holo) in 
res/values/styles.xml 
o Define them with same name that 
inherits from Material in res/values-v21/ 
styles.xml 
o Set theme as your app’s theme in 
manifest file 
 Layouts 
• Do not use any of the new XML attributes from 
Android L Developer Preview, they will not work 
with previous versions of Android. 
• You must provide alternative layouts if you wish 
to use them 
o L Preview Layouts: res/layout-v21/ 
o Alternative Layouts: res/layout/ 
o Do avoid duplication of code, define styles in 
res/values/ 
o Modify the style in res/values-v21/ for new APIs
New APIs – Compatibility 
 UI Widgets 
• Support v7: RecyclerView & CardView 
o Limitations (pre-L Preview): 
o CardView falls back to 
programmatic shadows 
implementation using additional 
padding 
o CardView does not clip its children 
that intersect with rounded corners 
 Animations 
• Following are Android L Developer Preview ONLY: 
o Activity Transitions 
o Touch feedback 
o Reveal animations 
o Path-based animations
Android L Small Features 
 Camera 
• Enhanced image and 
video capturing. Capture 
Raw sensor data. 
 Multi-networking 
• Dynamically scan for 
available network with 
specific capability and 
automatically connect. 
 BLE Peripheral Mode 
• Apps that connect to devices 
such as pedometer or health 
monitor and transfer data to 
another BLE device. 
 Document-Centric Recents 
 Job Scheduler
Google Play Services via NuGet 
 Play Game Services: event –based challenges, saved 
games, 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
Android Wear
Android Wear – Extending Apps 
 Enhance Existing Apps 
• Support v4 Notification API 
o WearableExtender 
 Inbox Style Cards 
 Voice Input
Android Wear Notifications + Expanded
Android Wear Notifications - Actions
Android Wear – Building Apps 
 Companion App 
• Android app that runs on a wearable 
 New Themes 
 New UI Widgets 
• BoxInsetLayout 
• CircledImageView 
• WearableListView 
• More… 
http://www.nuget.org/packages/Xamarin.Android.Wear/
Android Wear – Sync Data 
 Exposed via Google Play Services 
• Data API 
o Sync datastore between phone and wearable 
 Message API 
o Send small payloads and simple 
o communication 
http://www.nuget.org/packages/Xamarin.GooglePlayServicesJellyBean/
Android Wear – Templates + NuGet 
http://www.nuget.org/packages/Xamarin.Android.Wear/
Demo
Android TV
Android TV Features 
 Made for TV 
• Pre-built fragments for browsing & interacting 
with media catalogs 
 In-App Searching 
• Voice input for searching content 
 Recommendations 
• Suggest content from your app 
 Chromecast Built-in
Android TV ADT-1 Development Kit 
http://developer.android.com/tv/index.html
Android TV + Xamarin 
 Available via NuGet 
• https://www.nuget.org/packages/Xamarin.Android.Support.v17.Leanback 
 Samples: 
• https://github.com/xamarin/monodroid-samples
Android Recap 
• Android L Developer Preview 
• Material Design 
• Views & Animations 
• Notifications 
• Android Wear 
• Notifications & Companion Apps 
• Android TV
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/introduc 
tion_to_android_l/ 
 Samples 
 http://developer.xamarin.com/samples/android/
Dive Deep into Mobile Development with the Experts! 
xamarin.com/evolve
Q & A 
James Montemagno 
Developer Evangelist, Xamarin 
@JamesMontemagno

Contenu connexe

Tendances

Mobile Cross-Platform App Development in C# with Xamarin
Mobile Cross-Platform App Development in C# with XamarinMobile Cross-Platform App Development in C# with Xamarin
Mobile Cross-Platform App Development in C# with Xamarin
Nick Landry
 

Tendances (20)

Native App Development for iOS, Android, and Windows with Visual Studio
Native App Development for iOS, Android, and Windows with Visual StudioNative App Development for iOS, Android, and Windows with Visual Studio
Native App Development for iOS, Android, and Windows with Visual Studio
 
Cross Platform Mobile Development with Xamarin
Cross Platform Mobile Development with XamarinCross Platform Mobile Development with Xamarin
Cross Platform Mobile Development with Xamarin
 
Powering your Apps with Cloud Services
Powering your Apps with Cloud ServicesPowering your Apps with Cloud Services
Powering your Apps with Cloud Services
 
Native i os, android, and windows development in c# with xamarin 4
Native i os, android, and windows development in c# with xamarin 4Native i os, android, and windows development in c# with xamarin 4
Native i os, android, and windows development in c# with xamarin 4
 
Xamarin
XamarinXamarin
Xamarin
 
State of Union: Xamarin & Cross-Platform .NET in 2016 and Beyond
State of Union: Xamarin & Cross-Platform .NET in 2016 and BeyondState of Union: Xamarin & Cross-Platform .NET in 2016 and Beyond
State of Union: Xamarin & Cross-Platform .NET in 2016 and Beyond
 
Developing Cross-platform Native Apps with Xamarin
Developing Cross-platform Native Apps with XamarinDeveloping Cross-platform Native Apps with Xamarin
Developing Cross-platform Native Apps with Xamarin
 
Introduction to Xamarin
Introduction to XamarinIntroduction to Xamarin
Introduction to Xamarin
 
Mobile Cross-Platform App Development in C# with Xamarin
Mobile Cross-Platform App Development in C# with XamarinMobile Cross-Platform App Development in C# with Xamarin
Mobile Cross-Platform App Development in C# with Xamarin
 
Cross-platform Mobile Development
Cross-platform Mobile DevelopmentCross-platform Mobile Development
Cross-platform Mobile Development
 
Cross Platform Mobile Development
Cross Platform Mobile DevelopmentCross Platform Mobile Development
Cross Platform Mobile Development
 
Getting Started with iOS & Android Development Using Xamarin & Visual Studio
Getting Started with iOS & Android Development Using Xamarin & Visual StudioGetting Started with iOS & Android Development Using Xamarin & Visual Studio
Getting Started with iOS & Android Development Using Xamarin & Visual Studio
 
Developing and Designing Native Mobile Apps in Visual Studio
Developing and Designing Native Mobile Apps in Visual StudioDeveloping and Designing Native Mobile Apps in Visual Studio
Developing and Designing Native Mobile Apps in Visual Studio
 
Hybrid Mobile Development
Hybrid Mobile DevelopmentHybrid Mobile Development
Hybrid Mobile Development
 
Xamarin University Presents: Building Your First Intelligent App with Xamarin...
Xamarin University Presents: Building Your First Intelligent App with Xamarin...Xamarin University Presents: Building Your First Intelligent App with Xamarin...
Xamarin University Presents: Building Your First Intelligent App with Xamarin...
 
Azure mobile services
Azure mobile servicesAzure mobile services
Azure mobile services
 
Xamarin DevOps
Xamarin DevOpsXamarin DevOps
Xamarin DevOps
 
Introducing mono & xamarin
Introducing mono & xamarinIntroducing mono & xamarin
Introducing mono & xamarin
 
Cross-Platform Mobile App Development
Cross-Platform Mobile App DevelopmentCross-Platform Mobile App Development
Cross-Platform Mobile App Development
 
Introduction to Xamarin
Introduction to XamarinIntroduction to Xamarin
Introduction to Xamarin
 

En vedette

En vedette (9)

Accelerate Mobile Success with a Mobile Center of Excellence
Accelerate Mobile Success with a Mobile Center of ExcellenceAccelerate Mobile Success with a Mobile Center of Excellence
Accelerate Mobile Success with a Mobile Center of Excellence
 
Building Your First Xamarin.Forms App
Building Your First Xamarin.Forms AppBuilding Your First Xamarin.Forms App
Building Your First Xamarin.Forms App
 
Building Your First Android App with Xamarin
Building Your First Android App with XamarinBuilding Your First Android App with Xamarin
Building Your First Android App with Xamarin
 
Building Your First iOS App with Xamarin for Visual Studio
Building Your First iOS App with Xamarin for Visual StudioBuilding Your First iOS App with Xamarin for Visual Studio
Building Your First iOS App with Xamarin for Visual Studio
 
Xamarin: Introduction to iOS 8
Xamarin: Introduction to iOS 8Xamarin: Introduction to iOS 8
Xamarin: Introduction to iOS 8
 
Xamarin Mobile Leaders Summit: Business at the Point of Inspiration: Producti...
Xamarin Mobile Leaders Summit: Business at the Point of Inspiration: Producti...Xamarin Mobile Leaders Summit: Business at the Point of Inspiration: Producti...
Xamarin Mobile Leaders Summit: Business at the Point of Inspiration: Producti...
 
Xamarin Mobile Leaders Summit: The Mobile Mind Shift: Opportunities, Challeng...
Xamarin Mobile Leaders Summit: The Mobile Mind Shift: Opportunities, Challeng...Xamarin Mobile Leaders Summit: The Mobile Mind Shift: Opportunities, Challeng...
Xamarin Mobile Leaders Summit: The Mobile Mind Shift: Opportunities, Challeng...
 
Intro to Xamarin for Visual Studio: Native iOS, Android, and Windows Apps in C#
Intro to Xamarin for Visual Studio: Native iOS, Android, and Windows Apps in C#Intro to Xamarin for Visual Studio: Native iOS, Android, and Windows Apps in C#
Intro to Xamarin for Visual Studio: Native iOS, Android, and Windows Apps in C#
 
Introduction to Xamarin for Visual Studio 2017
Introduction to Xamarin for Visual Studio 2017Introduction to Xamarin for Visual Studio 2017
Introduction to Xamarin for Visual Studio 2017
 

Similaire à Android L and So Much More Webinar Slides

Mobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfMobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdf
AbdullahMunir32
 
Google Developer Group(GDG) DevFest Event 2012 Android talk
Google Developer Group(GDG) DevFest Event 2012 Android talkGoogle Developer Group(GDG) DevFest Event 2012 Android talk
Google Developer Group(GDG) DevFest Event 2012 Android talk
Imam Raza
 

Similaire à Android L and So Much More Webinar Slides (20)

Android Lollipop and Material Design
Android Lollipop and Material DesignAndroid Lollipop and Material Design
Android Lollipop and Material Design
 
Introduction to android mobile app development.pptx
Introduction to android mobile app development.pptxIntroduction to android mobile app development.pptx
Introduction to android mobile app development.pptx
 
Android by LAlitha
Android by LAlithaAndroid by LAlitha
Android by LAlitha
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app development
 
Android
AndroidAndroid
Android
 
Introduction to Android- A session by Sagar Das
Introduction to Android-  A session by Sagar DasIntroduction to Android-  A session by Sagar Das
Introduction to Android- A session by Sagar Das
 
Android Interview Questions
Android Interview QuestionsAndroid Interview Questions
Android Interview Questions
 
Android interview questions
Android interview questionsAndroid interview questions
Android interview questions
 
Getting started with android programming
Getting started with android programmingGetting started with android programming
Getting started with android programming
 
Android complete basic Guide
Android complete basic GuideAndroid complete basic Guide
Android complete basic Guide
 
Android deep dive
Android deep diveAndroid deep dive
Android deep dive
 
Xamarin.Android Introduction
Xamarin.Android IntroductionXamarin.Android Introduction
Xamarin.Android Introduction
 
Mobile application development
Mobile application developmentMobile application development
Mobile application development
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android - Anroid Pproject
Android - Anroid PprojectAndroid - Anroid Pproject
Android - Anroid Pproject
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Mobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfMobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdf
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
 
Google Developer Group(GDG) DevFest Event 2012 Android talk
Google Developer Group(GDG) DevFest Event 2012 Android talkGoogle Developer Group(GDG) DevFest Event 2012 Android talk
Google Developer Group(GDG) DevFest Event 2012 Android talk
 
Java Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopJava Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development Workshop
 

Plus de Xamarin

Plus de Xamarin (17)

Xamarin University Presents: Ship Better Apps with Visual Studio App Center
Xamarin University Presents: Ship Better Apps with Visual Studio App CenterXamarin University Presents: Ship Better Apps with Visual Studio App Center
Xamarin University Presents: Ship Better Apps with Visual Studio App Center
 
Get the Most Out of iOS 11 with Visual Studio Tools for Xamarin
Get the Most Out of iOS 11 with Visual Studio Tools for XamarinGet the Most Out of iOS 11 with Visual Studio Tools for Xamarin
Get the Most Out of iOS 11 with Visual Studio Tools for Xamarin
 
Get the Most out of Android 8 Oreo with Visual Studio Tools for Xamarin
Get the Most out of Android 8 Oreo with Visual Studio Tools for XamarinGet the Most out of Android 8 Oreo with Visual Studio Tools for Xamarin
Get the Most out of Android 8 Oreo with Visual Studio Tools for Xamarin
 
Creative Hacking: Delivering React Native App A/B Testing Using CodePush
Creative Hacking: Delivering React Native App A/B Testing Using CodePushCreative Hacking: Delivering React Native App A/B Testing Using CodePush
Creative Hacking: Delivering React Native App A/B Testing Using CodePush
 
Build Better Games with Unity and Microsoft Azure
Build Better Games with Unity and Microsoft AzureBuild Better Games with Unity and Microsoft Azure
Build Better Games with Unity and Microsoft Azure
 
Exploring UrhoSharp 3D with Xamarin Workbooks
Exploring UrhoSharp 3D with Xamarin WorkbooksExploring UrhoSharp 3D with Xamarin Workbooks
Exploring UrhoSharp 3D with Xamarin Workbooks
 
Desktop Developer’s Guide to Mobile with Visual Studio Tools for Xamarin
Desktop Developer’s Guide to Mobile with Visual Studio Tools for XamarinDesktop Developer’s Guide to Mobile with Visual Studio Tools for Xamarin
Desktop Developer’s Guide to Mobile with Visual Studio Tools for Xamarin
 
Developer’s Intro to Azure Machine Learning
Developer’s Intro to Azure Machine LearningDeveloper’s Intro to Azure Machine Learning
Developer’s Intro to Azure Machine Learning
 
Customizing Xamarin.Forms UI
Customizing Xamarin.Forms UICustomizing Xamarin.Forms UI
Customizing Xamarin.Forms UI
 
Session 4 - Xamarin Partner Program, Events and Resources
Session 4 - Xamarin Partner Program, Events and ResourcesSession 4 - Xamarin Partner Program, Events and Resources
Session 4 - Xamarin Partner Program, Events and Resources
 
Session 3 - Driving Mobile Growth and Profitability
Session 3 - Driving Mobile Growth and ProfitabilitySession 3 - Driving Mobile Growth and Profitability
Session 3 - Driving Mobile Growth and Profitability
 
Session 2 - Emerging Technologies in your Mobile Practice
Session 2 - Emerging Technologies in your Mobile PracticeSession 2 - Emerging Technologies in your Mobile Practice
Session 2 - Emerging Technologies in your Mobile Practice
 
Session 1 - Transformative Opportunities in Mobile and Cloud
Session 1 - Transformative Opportunities in Mobile and Cloud Session 1 - Transformative Opportunities in Mobile and Cloud
Session 1 - Transformative Opportunities in Mobile and Cloud
 
SkiaSharp Graphics for Xamarin.Forms
SkiaSharp Graphics for Xamarin.FormsSkiaSharp Graphics for Xamarin.Forms
SkiaSharp Graphics for Xamarin.Forms
 
Building Games for iOS, macOS, and tvOS with Visual Studio and Azure
Building Games for iOS, macOS, and tvOS with Visual Studio and AzureBuilding Games for iOS, macOS, and tvOS with Visual Studio and Azure
Building Games for iOS, macOS, and tvOS with Visual Studio and Azure
 
Intro to Xamarin.Forms for Visual Studio 2017
Intro to Xamarin.Forms for Visual Studio 2017Intro to Xamarin.Forms for Visual Studio 2017
Intro to Xamarin.Forms for Visual Studio 2017
 
Connected Mobile Apps with Microsoft Azure
Connected Mobile Apps with Microsoft AzureConnected Mobile Apps with Microsoft Azure
Connected Mobile Apps with Microsoft Azure
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Dernier (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 

Android L and So Much More Webinar Slides

  • 1. Android L and So Much More James Montemagno Developer Evangelist, Xamarin @JamesMontemagno
  • 2. New in Android – Android L Developer Preview – Android Wear – Android TV
  • 4. Android L Major Features  ART Runtime  Material Design  Widgets, Views, and Shadows  Animations  Notifications  Compatibility
  • 5. Android L Major Features ART Runtime  Ahead-of-Time compilation  Improved Garbage Collection  Improved Debugging Support
  • 6. Android L Major Features Material Design Material metaphor Bold, graphic, intentional Motion provides meaning google.com/design/spec/material-design/introduction.html
  • 7.  Brand new style for applications. • Theme.Material • Theme.Material.Light • Theme.Material.Light. DarkActionBar Material Design
  • 8.  colorPrimary – App Branding Color  colorPrimaryDark – Status bar & contextual bars  colorAccent – Theme UI Controls (ie. checkbox) Material Design – Color Palette
  • 9. Material Design – Color Palette
  • 10.  Extract Prominent Colors from Image  6 Palettes Generated Material Design –Palettes Generate a color pallet from an image https://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 Features View and Shadows  CardView  RecyclerView  Elevation
  • 14. CardView Wrap any view in a CardView https://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 operations https://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 Features Animations  Touch Feedback  Reveal  Activity Transitions
  • 20. Animation Surface reaction Material response
  • 21. Animation Surface reaction Material response Radial action
  • 22.  Default Touch Feedback Animation: RippleDrawable  Set Background to: • ?android:attr/selectableItemBackgro und • ?android:attr/selectableItemBackgro undBorderless  Create custom RippleDrawable using the ripple element Animation – Touch Feedback
  • 23. Animation – Reveal  Easily create clipping circles
  • 24. Animation – Activity Transitions  Custom animations for enter and exit transitions of activities • Enter: How views in the activity enter • Exit: How view in activity exit • Shared Elements: How views that are shared between 2 activities animate
  • 25. Android L Major Features Notifications  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, but hides full content • Public: Show the notification's full content • Secret: Show nothing, excluding even the notification’s icon
  • 27. New APIs – Notifications Metadata (Android L)  SetCategory(): Tells the system how to handle notifications when the device is in Do not Disturb  SetPriority(): Set to Max or High to appear in a small floating window if the sound also has a vibration or sound.  AddPerson(): Add a list of people to notification.
  • 28. Unified Notifications – Standard and Extended
  • 29. Demo
  • 30. Android L Major Features Compatibility & More  New APIs  Android L Small Features  Google Play Services via NuGet
  • 31. New APIs – Compatibility  Material Theme • Only available in Android L Developer Preview o Define theme that inherits from older theme (like Holo) in res/values/styles.xml o Define them with same name that inherits from Material in res/values-v21/ styles.xml o Set theme as your app’s theme in manifest file  Layouts • Do not use any of the new XML attributes from Android L Developer Preview, they will not work with previous versions of Android. • You must provide alternative layouts if you wish to use them o L Preview Layouts: res/layout-v21/ o Alternative Layouts: res/layout/ o Do avoid duplication of code, define styles in res/values/ o Modify the style in res/values-v21/ for new APIs
  • 32. New APIs – Compatibility  UI Widgets • Support v7: RecyclerView & CardView o Limitations (pre-L Preview): o CardView falls back to programmatic shadows implementation using additional padding o CardView does not clip its children that intersect with rounded corners  Animations • Following are Android L Developer Preview ONLY: o Activity Transitions o Touch feedback o Reveal animations o Path-based animations
  • 33. Android L Small Features  Camera • Enhanced image and video capturing. Capture Raw sensor data.  Multi-networking • Dynamically scan for available network with specific capability and automatically connect.  BLE Peripheral Mode • Apps that connect to devices such as pedometer or health monitor and transfer data to another BLE device.  Document-Centric Recents  Job Scheduler
  • 34. Google Play Services via NuGet  Play Game Services: event –based challenges, saved games, 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
  • 36. Android Wear – Extending Apps  Enhance Existing Apps • Support v4 Notification API o WearableExtender  Inbox Style Cards  Voice Input
  • 39. Android Wear – Building Apps  Companion App • Android app that runs on a wearable  New Themes  New UI Widgets • BoxInsetLayout • CircledImageView • WearableListView • More… http://www.nuget.org/packages/Xamarin.Android.Wear/
  • 40. Android Wear – Sync Data  Exposed via Google Play Services • Data API o Sync datastore between phone and wearable  Message API o Send small payloads and simple o communication http://www.nuget.org/packages/Xamarin.GooglePlayServicesJellyBean/
  • 41. Android Wear – Templates + NuGet http://www.nuget.org/packages/Xamarin.Android.Wear/
  • 42. Demo
  • 44. Android TV Features  Made for TV • Pre-built fragments for browsing & interacting with 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 Kit http://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/introduc tion_to_android_l/  Samples  http://developer.xamarin.com/samples/android/
  • 49. Dive Deep into Mobile Development with the Experts! xamarin.com/evolve
  • 50. Q & A James Montemagno Developer Evangelist, Xamarin @JamesMontemagno

Notes de l'éditeur

  1. Only available in Android L Developer Preview
  2. You might run into issues with ART if you: -Use JNI to run C/C++ code -Generate non-standard code (like obfuscators) -Use compacting garbage collection techniques
  3. Only available in Android L Developer Preview
  4. Available in Android.Support.v7 library from NuGet
  5. Available in Android.Support.v7 library from NuGet
  6. Available in Android.Support.v7 library from NuGet
  7. Available in Android.Support.v7 library from NuGet
  8. Only available in Android L Developer Preview
  9. Available in Android.Support.v7 library from NuGet
  10. Available in Android.Support.v7 library from NuGet
  11. Available in Android.Support.v7 library from NuGet
  12. Only available in Android L Developer Preview
  13. Available in Android.Support.v7 library from NuGet
  14. Available in Android.Support.v7 library from NuGet
  15. Available in Android.Support.v7 library from NuGet
  16. Only available in Android L Developer Preview
  17. Available in Android.Support.v7 library from NuGet
  18. Available in Android.Support.v7 library from NuGet
  19. Available in Android.Support.v7 library from NuGet
  20. Only available in Android L Developer Preview
  21. Available in Android.Support.v7 library from NuGet
  22. Available in Android.Support.v7 library from NuGet
  23. Available in Android.Support.v7 library from NuGet
  24. Available in Android.Support.v7 library from NuGet
  25. Only available in Android L Developer Preview
  26. Only available in Android L Developer Preview
  27. Only available in Android L Developer Preview
  28. Only available in Android L Developer Preview
  29. Only available in Android L Developer Preview
  30. Only available in Android L Developer Preview
  31. Only available in Android L Developer Preview
  32. Only available in Android L Developer Preview
  33. Only available in Android L Developer Preview
  34. Only available in Android L Developer Preview