Book Image

Android UI Design

By : Jessica Thornsby
Book Image

Android UI Design

By: Jessica Thornsby

Overview of this book

<p>Great design is one of the key drivers in the adoption of new applications, yet unfortunately design considerations are often neglected in the face of “will it work,” “can we make it quicker,” or “can we get more people using it”?</p> <p>This book seeks to redress this balance by showing you how to get your PM to start treating the design phase of your project seriously. This book is focused entirely on the development of UI features, and you’ll be able to practically implementing the design practices that we extol throughout the book.</p> <p>Starting by briefly outlining some of the factors you need to keep in mind when building a UI, you’ll learn the concepts of Android User Interface from scratch. We then move on to formulate a plan on how to implement these concepts in various applications. We will deep dive into how UI features are implemented in real-world applications where UIs are complex and dynamic.</p> <p>This book offers near complete coverage of UI-specific content including, views, fragments, the wireframing process, and how to add in splash screens—everything you need to make professional standard UIs for modern applications. It will then cover material design and show you how to implement Google's design aesthetic in a practical manner. Finally, it ensures the best possible user experience by analyzing the UI using various tools, and then addressing any problems they uncover.</p> <p>By the end of the book, you’ll be able to leverage the concepts of Android User Interface in your applications in order to attract new customers.</p>
Table of Contents (16 chapters)
Android UI Design
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Preface

Your UI is your most direct communication with your users, but all too often in app development, design is an afterthought, or something that "just happens" along the way.

In order to develop a great app, you need to take your UI design seriously. Even if your app delivers great functionality, if its user interface is clunky, laggy, difficult to navigate, or just an all-around eyesore, then no one is going to want to use it.

Android isn't the easiest platform to design for. Creating an app that looks great across countless different devices, all with different combinations of hardware, software, and screens, is no mean feat. But if you put some thought into the design process, you can create a UI that delivers a great experience across the entire Android ecosystem.

This book will help you become a design-minded developer. Over the course of 10 chapters, you'll learn how to design, refine, test, and develop an effective, engaging UI that people will love using and that delivers the best possible experience regardless of device specifics.

From the fundamentals of layouts and views right through to creating responsive, multi-pane layouts, and from sketching your screens, through to using Android Studio's tools to scrutinise your view hierarchy and hunt out memory leaks, this book covers everything you need to create the perfect Android UI.

What this book covers

Chapter 1, Introducing the Android UI, explains why designing and developing an effective UI is essential to the success of your app.

Chapter 2 , What Goes into an Effective UI?, teaches you how to master the building blocks of every Android UI: layouts and views. Learn how to create and style common UI components including text, images, and buttons.

Chapter 3 , Expanding your UI – Fragments, Resources, and Gathering User Input, helps you take your UI to the next level using arrays, dimensions, state lists, and 9-patch images. Using fragments, you'll learn how to create a flexible UI that reacts to the user's specific screen size.

Chapter 4 , Getting Started with Material Design, teaches you how to master Google's new design principles and delight your users with a UI that feels like a seamless extension of the Android operating system.

Chapter 5 , Turning Your Bright Idea into a Detailed Sketch, helps you become a design-minded developer by introducing roadmaps, flowcharts, screen lists, and screen maps to your Android app "To Do" list.

Chapter 6 , Turning Your Sketches into Wireframes, shows you how to transform the high-level plans from the previous chapter into detailed screen designs using paper prototypes and wireframes.

Chapter 7 , Building a Prototype, put your plan to the test! By the end of this chapter, you'll have created a complete digital prototype.

Chapter 8 , Reach a Wider Audience – Supporting Multiple Devices, teaches you how to attract a wider audience with an app that supports a wide range of hardware, software, screen sizes, screen densities, orientations, versions of the Android platform, and even different languages.

Chapter 9 , Optimizing Your UI, shows you how to create a smooth and responsive UI that people will love using. If your app is laggy, prone to crashing, gobbles up data and memory, or drains the user's battery, then no one is going to want to use it! 

Chapter 10Best Practices and Securing Your Application, guides you through putting the finishing touches to your UI, including using notifications from the upcoming Android N release.

What you need for this book

You will need the Android SDK and Android Studio (preferred) or Eclipse.

Who this book is for

If you are a Java developer with a keen interest in building stunning Android UIs for your applications in order to retain customers and create great experiences for them, then this book is for you. A good knowledge of XML and some grounding in Android development is assumed.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

<LinearLayout
   xmlns:android="http://schemas.android.com/apk/res/android"
   android:orientation="vertical"
   android:layout_width="match_parent"
   android:layout_height="match_parent">

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

<LinearLayout 
   xmlns:android="http://schemas.android.com/apk/res/android"
   android:orientation="vertical"
   android:layout_width="match_parent"
   android:layout_height="match_parent">

Any command-line input or output is written as follows:

cd /Users/username/Downloads/android/sdk/platform-tools

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Clicking the Next button moves you to the next screen."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

For this book we have outlined the shortcuts for the Mac OX platform if you are using the Windows version you can find the relevant shortcuts on the WebStorm help page https://www.jetbrains.com/webstorm/help/keyboard-shortcuts-by-category.html.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail [email protected], and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

You can download the code files by following these steps:

  1. Log in or register to our website using your e-mail address and password.

  2. Hover the mouse pointer on the SUPPORT tab at the top.

  3. Click on Code Downloads & Errata.

  4. Enter the name of the book in the Search box.

  5. Select the book for which you're looking to download the code files.

  6. Choose from the drop-down menu where you purchased this book from.

  7. Click on Code Download.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows

  • Zipeg / iZip / UnRarX for Mac

  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Android-UI-Design. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Downloading the color images of this book 

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from http://www.packtpub.com/sites/default/files/downloads/AndroidUIDesign_ColoredImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at [email protected] with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at [email protected], and we will do our best to address the problem.