Top Banner
Lars Vogel | vogella Designing great User Interfaces in Android
33

Building beautiful User Interface in Android

Jan 28, 2015

Download

Technology

Lars Vogel

Tips an Tricks how to build beautiful user interfaces.

Partially based on examples from Eric Burke (Square).

Code example can be found here: http://www.vogella.de/code/de.vogella.android.userinterface/codestartpage.html
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Building beautiful User Interface in Android

Lars Vogel | vogella

Designing great User Interfaces in Android

Page 2: Building beautiful User Interface in Android

Despite its title, this is a technical talk. We talk about

technical solutions for designing beautiful Android

applications.

Page 3: Building beautiful User Interface in Android

Independent Eclipse and Android consultant, trainer and book author

Eclipse committer

More then a million visitors on http://www.vogella.de

About me – Lars Vogel

Page 4: Building beautiful User Interface in Android

About Design

Themes

9-patch graphics and Android icons

XML drawables

Visual feedback

Own Layouts

Own Views

Q&A

Page 5: Building beautiful User Interface in Android

Are Android Apps beautiful?

Page 6: Building beautiful User Interface in Android

Google Listen Shazam

Page 7: Building beautiful User Interface in Android

…. the default

Android app look is kind

of ugly...

Even though Android 3.0 and higher got better

Page 8: Building beautiful User Interface in Android

Yet it is possible

to make a difference

Page 9: Building beautiful User Interface in Android

Google Calendar

Seesmic

Page 10: Building beautiful User Interface in Android

Example

ListView

Page 11: Building beautiful User Interface in Android

Using Themes

Page 12: Building beautiful User Interface in Android

A style is a collection of properties that specify the look and format for a View or window.

Own XML resource in res/values/

Style can be referred in your layout via attribute style:@style/yourname

Style

Page 13: Building beautiful User Interface in Android

Styles applied to Activities or Applications

Android provides standard themes

Android 4.0 specifies the Holo theme which the vendor is not allowed to change

Themes

Page 14: Building beautiful User Interface in Android

Not well documents, check out Android source and docu

./frameworks/base/core/res/res/values/styles.xml

http://developer.android.com/reference/android/R.attr.htmlhttp://developer.android.com/reference/android/R.styleable.htmlhttp://developer.android.com/reference/android/R.style.html

Own Themes go into /res/values

Can extend existing themes

Themes

Page 15: Building beautiful User Interface in Android

9-patch Graphics

Page 16: Building beautiful User Interface in Android

Icons

Page 17: Building beautiful User Interface in Android

Re-use Android icons

Path: /android-sdks/platforms/android-xx/data/res/drawable-qualifier

Page 18: Building beautiful User Interface in Android

Touch Area

Page 19: Building beautiful User Interface in Android

Next Example

Page 20: Building beautiful User Interface in Android

Provide visual feedback.. especially on long running operations

Page 21: Building beautiful User Interface in Android

XML drawables

Page 22: Building beautiful User Interface in Android

There must be more....

Page 23: Building beautiful User Interface in Android

You can always create you own Views

Page 24: Building beautiful User Interface in Android

The following examples are based on a presentation of Eric Burke (Square) at the O'Reilly Android Open Conference in San Francisco.

Thanks to Eric!

Page 25: Building beautiful User Interface in Android

Own Layout - Having a little shine

Page 26: Building beautiful User Interface in Android

Own ImageView with Round Corner

Page 27: Building beautiful User Interface in Android

Alpha Bending

Page 28: Building beautiful User Interface in Android

Transparent Frame

Page 29: Building beautiful User Interface in Android

Code Example: Available on http://www.vogella.de/code/code.html

de.vogella.android.userinterface

Page 30: Building beautiful User Interface in Android
Page 31: Building beautiful User Interface in Android

Android: Where to go from here:

Android Introduction Tutorial http://www.vogella.de/articles/Android/article.html

Or Google for „Android Development Tutorial“

Android SQLite and ContentProvider Bookhttp://www.amazon.com/dp/B006YUWEFE

More on Android http://www.vogella.de/android.html

Page 32: Building beautiful User Interface in Android

Thank you

For further questions:

[email protected]://www.vogella.deTwitter http://www.twitter.com/vogellaGoogle+ http://gplus.to/vogella

Page 33: Building beautiful User Interface in Android

License & Acknowledgements

• This work is licensed under the Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Germany License

– See http://creativecommons.org/licenses/by-nc-nd/3.0/de/deed.en_US