Android User Interface Development: Beginner's Guide

Quickly design and develop compelling user interfaces for your Android applications with this book and eBook

Android User Interface Development: Beginner's Guide

Beginner's Guide
Jason Morris

Quickly design and develop compelling user interfaces for your Android applications with this book and eBook
$10.00
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781849514484
Paperback304 pages

About This Book

  • Leverage the Android platform's flexibility and power to design impactful user-interfaces
  • Build compelling, user-friendly applications that will look great on any Android device
  • Make your application stand out from the rest with styles and themes
  • A practical Beginner's Guide to take you step-by-step through the process of developing user interfaces to get your applications noticed!

Who This Book Is For

If you have a little experience in Java and want to build applications for the Android phones, then this book is for you. This book will also help you if you already have applications on the Android platform and want to gain additional knowledge of user-interface design. It will appeal to all of the following readers:

  • Junior Android Developers
  • MIDP Developers looking to broaden their skill-set
  • iPhone developers wanting to port applications
  • Entrepreneurial Android developers wanting to widen their user base

 

Table of Contents

Chapter 1: Developing a Simple Activity
Developing our first example
Creating the project structure
Time for action – setting up the Android SDK
Time for action – starting a new project
Time for action – running the example project
The screen layout
Time for action – setting up the question activity
Populating a View and a ViewGroup
Time for action – asking a question
Time for action – adding a space for answers
Time for action – adding more buttons
Limitations of the layout XML format
Populating the QuestionActivity
Time for action – writing more Java code
Dynamically creating widgets
Time for action – putting the questions on the screen
Handling events in Android
Summary
Chapter 2: Presenting Data for Views
Listing and selecting data
Time for action – creating a fast food menu
Time for action – improving the restaurant list
Time for action – creating a Burger item layout
Time for action – presenting Burger objects
Time for action – implementing TheBurgerPlaceActivity
Using the ExpandableListView class
Using the GridView class
Time for action – creating the fruit icon
Time for action – building the fruit menu
Time for action – creating the FourBucketsActivity
Summary
Chapter 3: Developing with Specialized Android Widgets
Creating a restaurant review application
Time for action – creating the robotic review project structure
Building a TabActivity
Implementing the ReviewActivity
Time for action – writing the ReviewActivity class
Time for action – creating the Review layout
Time for action – turning on the TextSwitcher
Creating a simple photo gallery
Time for action – building the Photos tab
Time for action – the GalleryAdapter
Time for action – making the gallery work
Building the reservation tab
Time for action – implementing the reservation layout
Time for action – initializing the reservation tab
Time for action – listening to the SeekBar
Time for action – selecting date and time
Creating complex layouts with Include, Merge, and ViewStubs
Summary
Chapter 4: Leveraging Activities and Intents
Exploring the Activity class
Time for action – building an example game: "guess my number"
Creating and consuming intents
Using advanced Intent features
Time for action – viewing phone book contacts
Summary
Chapter 5: Developing Non-linear Layouts
Time for action – creating a layouts example project
FrameLayout
Time for action – developing a FrameLayout example
Table Layout
Time for action – developing a simple memory game
AbsoluteLayout/Custom Layouts
Time for action – creating a custom layout
Time for action – finishing the CircleLayout example
RelativeLayout
Time for action – creating a contact editor
Time for action – integration with the layout example
SlidingDrawer
Time for action – creating a SlidingDrawer
Time for action – sliding drawer integration
Summary
Chapter 6: Validating and Handling Input Data
Dealing with undesirable input
Avoiding invalid input entirely
Building activities for results
Generic filtering search Activity
Time for action – creating the ListItemSelectionActivity
Time for action – creating an ArrayAdapter
Time for action – creating the CursorAdapter
Time for action – setting up the ListView
Time for action – filtering the list
Time for action – returning the selection
Summary
Chapter 7: Animating Widgets and Layouts
Using standard Android animations
Time for action – animating a news feed
Using flipper and switcher widgets
Time for action – animating a GridView
Time for action – writing a custom animation
Time for action – making a Button vanish
Summary
Chapter 8: Designing Content-centric Activities
Considering design options when displaying content on an Android device
Displaying content with the WebView class
Time for action – creating a recipe viewer application
Creating relative layouts for content display
Time for action – developing specialized content views
Developing an online music store
Time for action – building a track item
Time for action – developing the main user interface layout
Time for action – developing the main user interface Java code
Summary
Chapter 9: Styling Android Applications
Working with style resources
Using shape resources
Time for action – drawing a broken line
Time for action – creating a rounded border
Time for action – applying a gradient to an oval shape
Time for action – rendering a spinner ring
Stretching using nine-patch images
Using bitmap images in Android
Handling configuration changes
Summary
Chapter 10: Building an Application Theme
Creating a basic calculator layout
Time for action – building the standard calculator
Building the calculator styling
Time for action – creating the button images
Time for action – styling the calculator buttons
Time for action – styling the display
Scientific landscape layout
Time for action – coding the scientific layout
Supporting hardware keyboards
Adding in display animations
Time for action – animating the display
Summary

What You Will Learn

  • Design user-friendly interfaces that support quick and easy access to information
  • Explore and implement multiple layouts in Android to design user interfaces for the different screen sizes and densities
  • Ensure a consistent user-interface experience and improve your application performance by reusing your application components
  • Design easy-on-the-eye themes for your Android applications
  • Display and select complex data structures from applications such as an address-book or calendar application by using Android widgets
  • Entertain your application users by animating visual queues of what the application is currently doing, and what effect their actions are having
  • Customize the built-in classes in Android to enhance the user interface by creating tabs and galleries
  • Leverage Android's resource loading system
  • Learn how best to present your user with information; or capture information from them
  • Work through examples featuring all major Android widgets, and some of the more unusual components

In Detail

There are over 30,000 applications for Android that have been downloaded over a million times already. What makes yours any different? Building a compelling user-interface that people understand and enjoy is vital for the survival of a new application in an environment where look and feel may be the only thing between a user purchasing your application; or deleting it forever.

Working through examples, code-snippets, and screenshots this book introduces the fundamentals of good user-interface design from a developer's point of view. This book will put you above the rest by showing you how to build striking user interfaces to grasp your app users' attention enough to make them shell out some bucks to buy your application.

The Android User Interface Development Beginner's Guide will tell you everything you need to know to style your applications from bottom up. Given the importance of user-interface design on a touch-screen device, this book aims to equip its reader with the knowledge required to build killer Android applications. Starting simply, and keeping things easy, this book will take you on a step-by-step journey to understanding the principals of good user-interface design, and how to implement the best user interfaces on an Android mobile device. It aims at building design understanding on a chapter-by-chapter basis, while introducing platform knowledge through examples.

Authors

Table of Contents

Chapter 1: Developing a Simple Activity
Developing our first example
Creating the project structure
Time for action – setting up the Android SDK
Time for action – starting a new project
Time for action – running the example project
The screen layout
Time for action – setting up the question activity
Populating a View and a ViewGroup
Time for action – asking a question
Time for action – adding a space for answers
Time for action – adding more buttons
Limitations of the layout XML format
Populating the QuestionActivity
Time for action – writing more Java code
Dynamically creating widgets
Time for action – putting the questions on the screen
Handling events in Android
Summary
Chapter 2: Presenting Data for Views
Listing and selecting data
Time for action – creating a fast food menu
Time for action – improving the restaurant list
Time for action – creating a Burger item layout
Time for action – presenting Burger objects
Time for action – implementing TheBurgerPlaceActivity
Using the ExpandableListView class
Using the GridView class
Time for action – creating the fruit icon
Time for action – building the fruit menu
Time for action – creating the FourBucketsActivity
Summary
Chapter 3: Developing with Specialized Android Widgets
Creating a restaurant review application
Time for action – creating the robotic review project structure
Building a TabActivity
Implementing the ReviewActivity
Time for action – writing the ReviewActivity class
Time for action – creating the Review layout
Time for action – turning on the TextSwitcher
Creating a simple photo gallery
Time for action – building the Photos tab
Time for action – the GalleryAdapter
Time for action – making the gallery work
Building the reservation tab
Time for action – implementing the reservation layout
Time for action – initializing the reservation tab
Time for action – listening to the SeekBar
Time for action – selecting date and time
Creating complex layouts with Include, Merge, and ViewStubs
Summary
Chapter 4: Leveraging Activities and Intents
Exploring the Activity class
Time for action – building an example game: "guess my number"
Creating and consuming intents
Using advanced Intent features
Time for action – viewing phone book contacts
Summary
Chapter 5: Developing Non-linear Layouts
Time for action – creating a layouts example project
FrameLayout
Time for action – developing a FrameLayout example
Table Layout
Time for action – developing a simple memory game
AbsoluteLayout/Custom Layouts
Time for action – creating a custom layout
Time for action – finishing the CircleLayout example
RelativeLayout
Time for action – creating a contact editor
Time for action – integration with the layout example
SlidingDrawer
Time for action – creating a SlidingDrawer
Time for action – sliding drawer integration
Summary
Chapter 6: Validating and Handling Input Data
Dealing with undesirable input
Avoiding invalid input entirely
Building activities for results
Generic filtering search Activity
Time for action – creating the ListItemSelectionActivity
Time for action – creating an ArrayAdapter
Time for action – creating the CursorAdapter
Time for action – setting up the ListView
Time for action – filtering the list
Time for action – returning the selection
Summary
Chapter 7: Animating Widgets and Layouts
Using standard Android animations
Time for action – animating a news feed
Using flipper and switcher widgets
Time for action – animating a GridView
Time for action – writing a custom animation
Time for action – making a Button vanish
Summary
Chapter 8: Designing Content-centric Activities
Considering design options when displaying content on an Android device
Displaying content with the WebView class
Time for action – creating a recipe viewer application
Creating relative layouts for content display
Time for action – developing specialized content views
Developing an online music store
Time for action – building a track item
Time for action – developing the main user interface layout
Time for action – developing the main user interface Java code
Summary
Chapter 9: Styling Android Applications
Working with style resources
Using shape resources
Time for action – drawing a broken line
Time for action – creating a rounded border
Time for action – applying a gradient to an oval shape
Time for action – rendering a spinner ring
Stretching using nine-patch images
Using bitmap images in Android
Handling configuration changes
Summary
Chapter 10: Building an Application Theme
Creating a basic calculator layout
Time for action – building the standard calculator
Building the calculator styling
Time for action – creating the button images
Time for action – styling the calculator buttons
Time for action – styling the display
Scientific landscape layout
Time for action – coding the scientific layout
Supporting hardware keyboards
Adding in display animations
Time for action – animating the display
Summary

Book Details

ISBN 139781849514484
Paperback304 pages
Read More