YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: Modern Android UI, or not by Action Bar alone

Modern Android UI, or

not by Action Bar alone

Anton Rutkevich, CTO at Boolba Labs

Page 2: Modern Android UI, or not by Action Bar alone

Intro

Page 3: Modern Android UI, or not by Action Bar alone

State of platform

Android 2.3 still valid (~40%),but will disappear in 0.5 .. 1 year

Android 3x skipped

Android 4 finally has design guidelines

Page 4: Modern Android UI, or not by Action Bar alone

Modern UI principles

Page 5: Modern Android UI, or not by Action Bar alone

Holo theme

Gives overall style

Backport: HoloEverywhere

Page 6: Modern Android UI, or not by Action Bar alone

Action Bar

Must be used for actions

Up button

Backport: ActionBarSherlock,

ActionBarCompat (soon)

Page 7: Modern Android UI, or not by Action Bar alone

ViewPager

Lateral navigation

Group of similar screens

Backport: android-support-

library, ViewPagerIndicator

Page 8: Modern Android UI, or not by Action Bar alone

NavigationDrawer

Dashboard pattern

replacement

Navigation between app

sections

Backport: android-support-library

Page 9: Modern Android UI, or not by Action Bar alone

Animation

Makes UI more dynamic

Many animations already included

Backport: NineOldAndroids

Page 10: Modern Android UI, or not by Action Bar alone

Responsive design

Page 11: Modern Android UI, or not by Action Bar alone

Problems

Unbalanced UI

Page 12: Modern Android UI, or not by Action Bar alone

Ideas

Divide content into Fragments

Use different layouts

Page 13: Modern Android UI, or not by Action Bar alone

Master-detail view

Page 14: Modern Android UI, or not by Action Bar alone

Alternative master-detail layoutsHide Expand/Collapse

Sliding Pane

Page 15: Modern Android UI, or not by Action Bar alone

Macro reflow

Page 16: Modern Android UI, or not by Action Bar alone

Limit width

Page 17: Modern Android UI, or not by Action Bar alone

List to Grid

Page 18: Modern Android UI, or not by Action Bar alone

Programmer tips

Page 19: Modern Android UI, or not by Action Bar alone

Coding

Use 9-patch and .xml drawables

Use sw<N>dp, w<N>dp

to detect large screens (ex. sw600dp,

w720dp)

Define common settings in style.xml,

themes.xml

Define dp values in dimens.xml

(padding, text size, line spacing, …)

Page 20: Modern Android UI, or not by Action Bar alone

ToolsShow GPU overdraw Show layout bounds

Page 21: Modern Android UI, or not by Action Bar alone

ToolsMulti-screen preview

Page 22: Modern Android UI, or not by Action Bar alone

3rd party libraries

Staggered Grid View Showcase ViewParallax Scroll View

Page 23: Modern Android UI, or not by Action Bar alone

Designer tips

Page 24: Modern Android UI, or not by Action Bar alone

developer.android.com/design

Android has more than one screen size

Ideas behind the visual representation

Good Holo style description

Ready to use assets

Page 25: Modern Android UI, or not by Action Bar alone

Android Asset StudioAndroid Holo Colors Action Bar Style Generator

Page 26: Modern Android UI, or not by Action Bar alone

Android Asset StudioDevice Frame Generator

Page 28: Modern Android UI, or not by Action Bar alone

Thank you for your attention

Questions?

[email protected] Rutkevich at Google+http://www.linkedin.com/in/antonrutkevich