SlideShare uma empresa Scribd logo
1 de 22
Baixar para ler offline
Material for old
schoolers
Fernado Cejas - Souncloud
aka Cejakas
@fernando_cejas
fernando.cejas@souncloud.com
+FernandoCejas
Jorge J. Barroso - Karumi
aka Flipper83
@flipper83
jorge@karumi.com
+JorgeJBarroso
Material is cool
What happens with old schoolers
What google provides?
com.android.support:appcompat-v7
Themes
ActionBar and ToolBar
Transitions
Widget Tinting
Styling Material
<style name="BaseAppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

<item name="colorPrimary">@color/theme_default_primary</item>

<item name="colorPrimaryDark">@color/theme_default_primary_dark</item>

<item name="colorAccent">@color/theme_default_accent</item>

<item name="colorControlHighlight">@color/theme_default_accent_light</item>

</style>
Styling Material
values/themes.xml
!
<style name="AppTheme" parent="BaseAppTheme">

</style>
!
values-21/themes.xml
!
<style name="AppTheme" parent="BaseAppTheme">

<item name="android:windowContentTransitions">true</item>

<item name="android:windowAllowEnterTransitionOverlap">true</item>

<item name="android:windowAllowReturnTransitionOverlap">true</item>

</style>
Be careful with some
Samsung devices
Proguard to the rescue!!!
Tint doesn’t work on
custom views!!
com.android.support:recyclerview-v7
Bye Bye List view!
Extends from RecyclerAdapter
ViewHolder by default
Layout manager
com.android.support:recyclerview-v7
Change your dividers for
ItemDecoration
com.android.support:recyclerview-v7
Change your headers and footers
for ItemTypes.
com.android.support:recyclerview-v7
OnItemClick doesn’t exist any
more, delegate click functionality
to view holders
com.android.support:recyclerview-v7
Add animations with
ItemAnimator, it’s easy and it’s
cool.
com.android.support:cardview-v7
com.android.support:palette-v7
Only in compat
Check null
Problems with some images
Toolbar vs ActionBar
ToolBar is a viewGroup
setSupportActionBar();
Extends from ActionBarActivity
Deactivate ActionBar via Theme
VectorDrawable vs ‘Font as icon’
You can use icon fonts for reduce
the number of assets on you app.
Keep performance!!! please!!
Transitions
ActivityOptionsCompat options = ActivityOptionsCompat.

makeSceneTransitionAnimation((Activity) context, pairs);

!
!
<style name="AppTheme" parent="BaseAppTheme">

<item name="android:windowContentTransitions">true</item>

<item name="android:windowAllowEnterTransitionOverlap">true</item>

<item name="android:windowAllowReturnTransitionOverlap">true</item>

</style>
Bibliography
https://developer.android.com/training/material/compatibility.html
http://android-developers.blogspot.de/2014/10/implementing-material-design-in-your.html
http://antonioleiva.com/material-design-everywhere/
http://www.slideshare.net/arueggeberg/material-design-and-backwards-compatibility
https://github.com/navasmdc/MaterialDesignLibrary
https://github.com/markushi/android-ui
https://github.com/flipper83/transition-old-school
Q&A

Mais conteúdo relacionado

Destaque

Material Design and Backwards Compatibility
Material Design and Backwards CompatibilityMaterial Design and Backwards Compatibility
Material Design and Backwards CompatibilityAngelo Rüggeberg
 
Hannukkala, Wahlbeck: Hyvää mieltä koulusta!
Hannukkala, Wahlbeck: Hyvää mieltä koulusta! Hannukkala, Wahlbeck: Hyvää mieltä koulusta!
Hannukkala, Wahlbeck: Hyvää mieltä koulusta! Kouluterveyskysely
 
Kubryak 23-09-2013
Kubryak 23-09-2013Kubryak 23-09-2013
Kubryak 23-09-2013BIO-Z17
 
Mba724 s4 3 survey methodology
Mba724 s4 3 survey methodologyMba724 s4 3 survey methodology
Mba724 s4 3 survey methodologyRachel Chung
 
MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"Hideyuki Kawashima
 
ο θαλασσοπόρος
ο θαλασσοπόροςο θαλασσοπόρος
ο θαλασσοπόροςIoanna Prangiou
 
Xpflow training ppt_update_may 2007-051807
Xpflow training ppt_update_may 2007-051807Xpflow training ppt_update_may 2007-051807
Xpflow training ppt_update_may 2007-051807Debjani Roy
 
وصول ثوب قراءة القرأن
وصول ثوب قراءة القرأنوصول ثوب قراءة القرأن
وصول ثوب قراءة القرأنSiti Rohana Sirona
 
Croatian Government's 1st Six Months [Infographic]
Croatian Government's 1st Six Months [Infographic]Croatian Government's 1st Six Months [Infographic]
Croatian Government's 1st Six Months [Infographic]Tomislav Korman
 
Jscafe lt 4th_d3.js_20131110_ota
Jscafe lt 4th_d3.js_20131110_otaJscafe lt 4th_d3.js_20131110_ota
Jscafe lt 4th_d3.js_20131110_ota博三 太田
 
Mal ppt 2013
Mal ppt 2013Mal ppt 2013
Mal ppt 2013shineasso
 
АО "Самрук-Қазына": Проект стратегии развития
АО "Самрук-Қазына": Проект стратегии развитияАО "Самрук-Қазына": Проект стратегии развития
АО "Самрук-Қазына": Проект стратегии развитияАО "Самрук-Казына"
 
5 of the largest warehouses
5 of the largest warehouses5 of the largest warehouses
5 of the largest warehousesNeil Emmott
 
Posters wonca2013
Posters wonca2013Posters wonca2013
Posters wonca2013agunin69
 
CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Propertieshstryk
 

Destaque (20)

Material Design and Backwards Compatibility
Material Design and Backwards CompatibilityMaterial Design and Backwards Compatibility
Material Design and Backwards Compatibility
 
Hannukkala, Wahlbeck: Hyvää mieltä koulusta!
Hannukkala, Wahlbeck: Hyvää mieltä koulusta! Hannukkala, Wahlbeck: Hyvää mieltä koulusta!
Hannukkala, Wahlbeck: Hyvää mieltä koulusta!
 
Kubryak 23-09-2013
Kubryak 23-09-2013Kubryak 23-09-2013
Kubryak 23-09-2013
 
Mba724 s4 3 survey methodology
Mba724 s4 3 survey methodologyMba724 s4 3 survey methodology
Mba724 s4 3 survey methodology
 
MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"
 
Xavier thoma
Xavier thomaXavier thoma
Xavier thoma
 
ο θαλασσοπόρος
ο θαλασσοπόροςο θαλασσοπόρος
ο θαλασσοπόρος
 
Xpflow training ppt_update_may 2007-051807
Xpflow training ppt_update_may 2007-051807Xpflow training ppt_update_may 2007-051807
Xpflow training ppt_update_may 2007-051807
 
وصول ثوب قراءة القرأن
وصول ثوب قراءة القرأنوصول ثوب قراءة القرأن
وصول ثوب قراءة القرأن
 
Croatian Government's 1st Six Months [Infographic]
Croatian Government's 1st Six Months [Infographic]Croatian Government's 1st Six Months [Infographic]
Croatian Government's 1st Six Months [Infographic]
 
Jscafe lt 4th_d3.js_20131110_ota
Jscafe lt 4th_d3.js_20131110_otaJscafe lt 4th_d3.js_20131110_ota
Jscafe lt 4th_d3.js_20131110_ota
 
Entreprenuership & Startup for Young Graduates
Entreprenuership & Startup for Young GraduatesEntreprenuership & Startup for Young Graduates
Entreprenuership & Startup for Young Graduates
 
Mal ppt 2013
Mal ppt 2013Mal ppt 2013
Mal ppt 2013
 
АО "Самрук-Қазына": Проект стратегии развития
АО "Самрук-Қазына": Проект стратегии развитияАО "Самрук-Қазына": Проект стратегии развития
АО "Самрук-Қазына": Проект стратегии развития
 
Real ch.2 a
Real ch.2 aReal ch.2 a
Real ch.2 a
 
5 of the largest warehouses
5 of the largest warehouses5 of the largest warehouses
5 of the largest warehouses
 
Grammar book
Grammar bookGrammar book
Grammar book
 
Posters wonca2013
Posters wonca2013Posters wonca2013
Posters wonca2013
 
CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Properties
 
25martiou2013
25martiou201325martiou2013
25martiou2013
 

Semelhante a Material for old school

Android Develpment vol. 3, MFF UK, 2015
Android Develpment vol. 3, MFF UK, 2015Android Develpment vol. 3, MFF UK, 2015
Android Develpment vol. 3, MFF UK, 2015Tomáš Kypta
 
Material Design Android - Rodrigo Garcete
Material Design Android - Rodrigo GarceteMaterial Design Android - Rodrigo Garcete
Material Design Android - Rodrigo GarceteGDGFoz
 
Drupal Themes
Drupal ThemesDrupal Themes
Drupal Themesakosh
 
Metaprogramming + Ds Ls
Metaprogramming + Ds LsMetaprogramming + Ds Ls
Metaprogramming + Ds LsArrrrCamp
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web componentsMarc Bächinger
 

Semelhante a Material for old school (9)

Material in 30 minutes
Material in 30 minutesMaterial in 30 minutes
Material in 30 minutes
 
Android Develpment vol. 3, MFF UK, 2015
Android Develpment vol. 3, MFF UK, 2015Android Develpment vol. 3, MFF UK, 2015
Android Develpment vol. 3, MFF UK, 2015
 
Material Design Android - Rodrigo Garcete
Material Design Android - Rodrigo GarceteMaterial Design Android - Rodrigo Garcete
Material Design Android - Rodrigo Garcete
 
Android - Values folder
Android - Values folderAndroid - Values folder
Android - Values folder
 
09 material design
09 material design09 material design
09 material design
 
Drupal Themes
Drupal ThemesDrupal Themes
Drupal Themes
 
The Themer's Toolkit
The Themer's ToolkitThe Themer's Toolkit
The Themer's Toolkit
 
Metaprogramming + Ds Ls
Metaprogramming + Ds LsMetaprogramming + Ds Ls
Metaprogramming + Ds Ls
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web components
 

Mais de Jorge Barroso

Forgetting android v2
Forgetting android v2Forgetting android v2
Forgetting android v2Jorge Barroso
 
Get out of my thread (Trabajando en diferido)
Get out of my thread (Trabajando en diferido)Get out of my thread (Trabajando en diferido)
Get out of my thread (Trabajando en diferido)Jorge Barroso
 
All you need know about testing
All you need know about testingAll you need know about testing
All you need know about testingJorge Barroso
 
Presistiendo que es gerundio (My storing story)
Presistiendo que es gerundio (My storing story)Presistiendo que es gerundio (My storing story)
Presistiendo que es gerundio (My storing story)Jorge Barroso
 
Mobile development for startups
Mobile development for startupsMobile development for startups
Mobile development for startupsJorge Barroso
 
Androides y Mazmorras. Part I (dungeons & robots)
Androides y Mazmorras. Part I (dungeons & robots)Androides y Mazmorras. Part I (dungeons & robots)
Androides y Mazmorras. Part I (dungeons & robots)Jorge Barroso
 
Learning android with AOSP
Learning android with AOSPLearning android with AOSP
Learning android with AOSPJorge Barroso
 
Material design basics
Material design basicsMaterial design basics
Material design basicsJorge Barroso
 

Mais de Jorge Barroso (10)

Tensor for android
Tensor for androidTensor for android
Tensor for android
 
Forgetting android v2
Forgetting android v2Forgetting android v2
Forgetting android v2
 
Get out of my thread (Trabajando en diferido)
Get out of my thread (Trabajando en diferido)Get out of my thread (Trabajando en diferido)
Get out of my thread (Trabajando en diferido)
 
All you need know about testing
All you need know about testingAll you need know about testing
All you need know about testing
 
Presistiendo que es gerundio (My storing story)
Presistiendo que es gerundio (My storing story)Presistiendo que es gerundio (My storing story)
Presistiendo que es gerundio (My storing story)
 
Mobile development for startups
Mobile development for startupsMobile development for startups
Mobile development for startups
 
Androides y Mazmorras. Part I (dungeons & robots)
Androides y Mazmorras. Part I (dungeons & robots)Androides y Mazmorras. Part I (dungeons & robots)
Androides y Mazmorras. Part I (dungeons & robots)
 
Learning android with AOSP
Learning android with AOSPLearning android with AOSP
Learning android with AOSP
 
Material design basics
Material design basicsMaterial design basics
Material design basics
 
Forgetting android
Forgetting androidForgetting android
Forgetting android
 

Último

Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 

Último (20)

Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 

Material for old school