Exploring Android Studio

23
Exploring Android Studio Get relaxed, as the fun is about to begin!

Transcript of Exploring Android Studio

Page 1: Exploring Android Studio

Exploring Android StudioGet relaxed, as the fun is about to begin!

Page 2: Exploring Android Studio

About me

~3 years of Android Development Experience

Pursing Bachelor Degree in Computer Engineering

Akshay Chordiya

+AkshayChordiya

Page 4: Exploring Android Studio

Flavors

Page 5: Exploring Android Studio

Why Flavors?

It used to create different versions of the same application from a single project

It is extremely useful when you have a demo version and a paid version of your app, etc

Page 6: Exploring Android Studio

Demo

Page 7: Exploring Android Studio

Layout Editor

Page 8: Exploring Android Studio

Layout Editor

Using tools namespace for better Decoupling layout or Extract Layout filePicking any API level, theme, device frameLocalizationYou can even take screenshot of it!The usual stuff (Live Preview, Drag-Drop, etc)

Page 9: Exploring Android Studio

Material IconsSwitching to Vector Assets

Page 10: Exploring Android Studio

Why switch to Vector Assets

They take less spaceAlmost negligible loss of image qualityEasier maintenance. No need to maintain separate

resources for each device density. Just single fileExtremely easy to manipulate image (Tint, Alpha,

etc)Helps to create beautiful animations of imageBackward compatibility*A lot more….

Page 11: Exploring Android Studio
Page 12: Exploring Android Studio

Pre-requisites for Vector Assets

1. Upgrade your project.gradle to newer version of Gradle(Current is gradle:2.0.0-beta6)

2. Switch to new Android Studio 2.03. Switch to new AppCompat library (v23.2.0)

Page 13: Exploring Android Studio

Lint Checker

Find code that doesn't correspond to certain style guidelines

Find duplicate, extra resources, Missing translations

Suggests to use new APIs

Help finding certain performance issues

Scans potential bugs

Plethora of stuff!

Page 14: Exploring Android Studio

Demo

Page 15: Exploring Android Studio

Monitor Tools

Provides a GUI for several Android application debugging and analysis tools

Memory Monitor is used for finding the memory usage of the app

CPU Monitor is used for finding the CPU usage of the app

Network Monitor is used to track the data used by an app

GPU Monitor for Graphics stuff

Page 16: Exploring Android Studio

Demo

Page 17: Exploring Android Studio

Resource Prefix

Mainly should be used by library

Add resourcePrefix ‘tag_’ to your module gradle file

It will warn you make strings which are specific to your library with the tag specified

Page 18: Exploring Android Studio

Example

Page 19: Exploring Android Studio

Bunch of Protips

Page 20: Exploring Android Studio

Use TODO comment to remind you to complete a certain thing in future

Use Analyze Stacktrace feature to manually give stacktrace and find the POJOs causing issues

Plenty of features, tools and shortcuts demo

#ProTip

Page 21: Exploring Android Studio

Further LinksAll the logos used are trademarks of respective companies.

Android Studio

Layout Editor Guide

Android Studio Layout Editor Video

Android Studio for Experts

Android Lint - Android Tools

Device Monitor - Android Developers

Vector Asset Studio

Android Vector Graphics Video

Android Studio Vector Assets Video

Page 22: Exploring Android Studio

Questions?

Page 23: Exploring Android Studio

Thank You!