SlideShare a Scribd company logo
KAMAL K KISHORE
29-Apr-2015
&
What’s new in
Material Design
Material Theme
• @android:style/Theme.Material (dark version)
• @android:style/Theme.Material.Light (light version)
• @android:style/Theme.Material.Light.DarkActionBar
Customizing
• colorPrimary
• textColorPrimary
• colorPrimaryDark
• windowBackground
• navigationBarColor
Customizing
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<!-- inherit from the material theme -->
<style name="AppTheme" parent="android:Theme.Material“>
<!-- Main theme colors --> <!-- your app branding color for the
app bar -->
<item name="android:colorPrimary">@color/primary</item>
<!-- darker variant for the status bar and contextual app bars

<item
name="android:colorPrimaryDark">@color/primary_dark</item>
<!-- theme UI controls like checkboxes and text fields 
<item name="android:colorAccent">@color/accent</item>
</style>
</resources>
• A different theme
• New widgets for complex views
• New API’s for Custom shadows and
animations
Elements of Material Design
Lists <!-- A RecyclerView with some
commonly used attributes -->
<android.support.v7.widget.RecyclerVie
w
android:id="@+id/my_recycler_view“
android:scrollbars="vertical“
android:layout_width="match_parent"
android:layout_height="match_parent"/
>
public class MyAdapter extends
RecyclerView.Adapter<MyAdapter.ViewH
older>
dependencies {
compile
'com.android.support:recyclerview-
v7:21.0.+‘ }
Cards <android.support.v7.widget.CardView
xmlns:card_view="http://schemas.andr
oid.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_gravity="center"
android:layout_width="200dp"
android:layout_height="200dp"
card_view:cardCornerRadius="4dp">
card_view:cardCornerRadius
card_view:cardBackgroundColor
dependencies {
compile
'com.android.support:cardview-
v7:21.0.+'
}
View Shadows
• The Z property
– android:elevation attribute
Clip Views
• Transforming shape of a view
– android:clipToOutline
Animations
Vector Drawables
• Drawable tinting
– android:tint
– android:tintMode
• Prominent color extraction
– Palette.getVibrantColor
• Vector drawables
– <vector >
– <path android:fillColor="#8fff"
– android:pathData=….
– </vector >
Defining Custom Animations
• Touch feedback
• Circular Reveal
• Activity transitions
• Curved motion
• View state changes
Reveal Effect
• create the animator for this view (the
start radius is zero)
• Animator anim =
ViewAnimationUtils.createCircularRev
eal(myView, cx, cy, 0, finalRadius);
• make the view visible and start the
animation
• myView.setVisibility(View.VISIBLE);
• anim.start();
Compatibility
• Using styles
– Define a theme that inherits from an older
theme (like Holo) in res/values/styles.xml.
– Define a theme with the same name that
inherits from the material theme in
res/values-v21/styles.xml.
– Set this theme as your app's theme in the
manifest file.
Compatibility
• Using layouts
– res/layout-v21/
– res/layout/
• Using Support Library v7-21
– Some system widgets when you apply one of
the Theme.AppCompat themes.
– Color palette theme attributes in the
Theme.AppCompat themes.
– The RecyclerView widget to display data
collections.
– The CardView widget to create cards.
– The Palette class to extract prominent colors
from images.
google.com/design
What’s new for Android Developers in 2015 - Material Design, Android Studio, Gradle
What is Gradle?
• Gradle is an advanced build toolkit that
manages dependencies and allows you to
define custom build logic.
• This means that you can build your Android
apps from which Android Studio and from the
command line on your machine or on
machines where Android Studio is not
installed.
• The build files are called build.gradle, and
they are plain text files that
use Groovy syntax
Why Gradle?
• The Gradle build system is designed to
support complex scenarios in creating
Android applications.
– Multi-distribution: the same application must
be customized for several clients or companies
– Multi-apk: supporting the creation of multiple
apk for different device types while reusing
parts of the the code
Using Gradle to build different variants
• applying plugin
– apply plugin: 'com.android.application‘
• setting defaultConfig
– applicationId, minSdkVersion,
targetSdkVersion, versionCode,
versionName
• setting buildTypes
– proguardFiles, minifyEnabled
Using Gradle to build different variants
• adding productFlavors
– sets applicationId & versionName for different
flavors (like paid, free etc.)
• adding dependencies
– Module dependency - compile project(":lib")
– Remote binary dependency - compile
'com.android.support:appcompat-v7:19.0.1'
– Local binary dependency - compile fileTree(dir:
'libs', include: ['*.jar'])
gradle.org
Thank you

More Related Content

PDF
Android Materials Design
PDF
Android Lollipop and Material Design
PPTX
Material design in android L developer Preview
PPTX
Material Design Android
PDF
Material design basics
PPTX
Material Design in Android
PDF
Android Material Design APIs/Tips
PDF
Best Practices for Android UI by RapidValue Solutions
Android Materials Design
Android Lollipop and Material Design
Material design in android L developer Preview
Material Design Android
Material design basics
Material Design in Android
Android Material Design APIs/Tips
Best Practices for Android UI by RapidValue Solutions

What's hot (20)

PDF
Android UX-UI Design for fun and profit | Fernando Cejas | Tuenti
PDF
AppDevKit for iOS Development
PPTX
Android material design lecture #2
PPT
Android Ui
PPTX
Android Effective UI: Tips, Tricks and Patterns
PDF
Building beautiful User Interface in Android
PPTX
Android L and Wear overview
PPTX
Drawing Tool
PPTX
What's new in android jakarta gdg (2015-08-26)
PDF
09 material design
PDF
Welcome test
PDF
Material design for developers
PPTX
Android ui with xml
PDF
Android training day 3
PDF
Angular.js - JS Camp UKraine 2013
PDF
Windows phone 8 session 3
PDF
Angular 10 course_content
PDF
MVP Community Camp 2014 - How to use enhanced features of Windows 8.1 Store ...
PPTX
Android app development lesson 1
PPTX
Mobile application development
Android UX-UI Design for fun and profit | Fernando Cejas | Tuenti
AppDevKit for iOS Development
Android material design lecture #2
Android Ui
Android Effective UI: Tips, Tricks and Patterns
Building beautiful User Interface in Android
Android L and Wear overview
Drawing Tool
What's new in android jakarta gdg (2015-08-26)
09 material design
Welcome test
Material design for developers
Android ui with xml
Android training day 3
Angular.js - JS Camp UKraine 2013
Windows phone 8 session 3
Angular 10 course_content
MVP Community Camp 2014 - How to use enhanced features of Windows 8.1 Store ...
Android app development lesson 1
Mobile application development
Ad

Viewers also liked (20)

PDF
Material Design and Backwards Compatibility
PDF
A Deep Dive into Open Source Android Development
PPTX
Android app fundamentals
PDF
Android Fundamentals - Day 2
PDF
Android Fundamentals
PDF
Gradle for Android Developers
PPTX
Introduction to android studio 2.0 and data binding library
PPTX
Exploring the power of Gradle in android studio - Basics & Beyond
PDF
Android gradle-build-system-overview
PDF
Gradle & Android Studio - Introduction
PDF
Android Fundamentals
PPTX
Android Application Fundamentals
PDF
New to android studio
PDF
AndroidManifest
PPTX
Gradle,the new build system for android
PDF
Intents in Android
PPTX
Android User Interface Tutorial: DatePicker, TimePicker & Spinner
PDF
Gradle Introduction
PPT
Day 4: Android: UI Widgets
PDF
How to improve gradle build speed
Material Design and Backwards Compatibility
A Deep Dive into Open Source Android Development
Android app fundamentals
Android Fundamentals - Day 2
Android Fundamentals
Gradle for Android Developers
Introduction to android studio 2.0 and data binding library
Exploring the power of Gradle in android studio - Basics & Beyond
Android gradle-build-system-overview
Gradle & Android Studio - Introduction
Android Fundamentals
Android Application Fundamentals
New to android studio
AndroidManifest
Gradle,the new build system for android
Intents in Android
Android User Interface Tutorial: DatePicker, TimePicker & Spinner
Gradle Introduction
Day 4: Android: UI Widgets
How to improve gradle build speed
Ad

Similar to What’s new for Android Developers in 2015 - Material Design, Android Studio, Gradle (20)

PDF
Android Develpment vol. 3, MFF UK, 2015
PDF
Android development 1july
PPTX
Material Design Android - Rodrigo Garcete
PPTX
Material Design - Høgskolen Ringerike 2017
PDF
Material Theme
PPTX
Consistent UI Across Android Devices
PDF
Getting Started With Material Design
PPTX
Material design
PDF
Develop Mobile App Using Android Lollipop
PDF
[PBO] Pertemuan 12 - Pemrograman Android
PDF
Android app material design from dev's perspective
PPTX
Android session 2-behestee
PPT
eyeryeryeryeryeyeyeryeryyerye13872085.ppt
PDF
Android Application Development - Level 1
PDF
Introduction to Android Development with Java
PDF
Lesson 13 App User Interface Design of movile app
PPTX
Material design
POT
Android Material Design
PPTX
Material design - widgets and sample code
PDF
Material for old school
Android Develpment vol. 3, MFF UK, 2015
Android development 1july
Material Design Android - Rodrigo Garcete
Material Design - Høgskolen Ringerike 2017
Material Theme
Consistent UI Across Android Devices
Getting Started With Material Design
Material design
Develop Mobile App Using Android Lollipop
[PBO] Pertemuan 12 - Pemrograman Android
Android app material design from dev's perspective
Android session 2-behestee
eyeryeryeryeryeyeyeryeryyerye13872085.ppt
Android Application Development - Level 1
Introduction to Android Development with Java
Lesson 13 App User Interface Design of movile app
Material design
Android Material Design
Material design - widgets and sample code
Material for old school

More from Deepu S Nath (20)

PPTX
Design Thinking, Critical Thinking & Innovation Design
PDF
GTECH ATFG µLearn Framework Intro
PPTX
Future of learning - Technology Disruption
PDF
Decentralized Applications using Ethereum
PDF
How machines can take decisions
PDF
Artificial Intelligence: An Introduction
PPTX
FAYA PORT 80 Introduction
PDF
How machines can take decisions
PDF
Simplified Introduction to AI
PPTX
Mining Opportunities of Block Chain and BitCoin
PPTX
Introduction to DevOps
PPT
Coffee@DBG - TechBites March 2016
PPTX
REACT.JS : Rethinking UI Development Using JavaScript
PPT
SEO For Developers
PDF
Life Cycle of an App - From Idea to Monetization
PPT
Uncommon Python - What is special in Python
PPT
Coffee@DBG - TechBites Sept 2015
PPT
Techbites July 2015
PPT
Apple Watch - Start Your Developer Engine
PPTX
Greetings & Response - English Communication Training
Design Thinking, Critical Thinking & Innovation Design
GTECH ATFG µLearn Framework Intro
Future of learning - Technology Disruption
Decentralized Applications using Ethereum
How machines can take decisions
Artificial Intelligence: An Introduction
FAYA PORT 80 Introduction
How machines can take decisions
Simplified Introduction to AI
Mining Opportunities of Block Chain and BitCoin
Introduction to DevOps
Coffee@DBG - TechBites March 2016
REACT.JS : Rethinking UI Development Using JavaScript
SEO For Developers
Life Cycle of an App - From Idea to Monetization
Uncommon Python - What is special in Python
Coffee@DBG - TechBites Sept 2015
Techbites July 2015
Apple Watch - Start Your Developer Engine
Greetings & Response - English Communication Training

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Encapsulation theory and applications.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPT
Teaching material agriculture food technology
PDF
cuic standard and advanced reporting.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Approach and Philosophy of On baking technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Encapsulation theory and applications.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Digital-Transformation-Roadmap-for-Companies.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Big Data Technologies - Introduction.pptx
Understanding_Digital_Forensics_Presentation.pptx
Teaching material agriculture food technology
cuic standard and advanced reporting.pdf
Encapsulation_ Review paper, used for researhc scholars
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Monthly Chronicles - July 2025
Chapter 3 Spatial Domain Image Processing.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Approach and Philosophy of On baking technology
NewMind AI Weekly Chronicles - August'25 Week I
The AUB Centre for AI in Media Proposal.docx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

What’s new for Android Developers in 2015 - Material Design, Android Studio, Gradle