Book Image

Mastering Android Wear Application Development

By : Siddique Hameed, Javeed Chida
Book Image

Mastering Android Wear Application Development

By: Siddique Hameed, Javeed Chida

Overview of this book

Wearable technology is the future of mobile devices. It looks set to be a breakthrough technology, just like the iPad was before it. With the Apple Watch being widely regarded as a success, all eyes are now on Google to provide a similar device for its users. Keep your skills ahead of the competition and be one of the first to fully understand this powerful new trend. This book will give you a very solid understanding of the philosophy, thought process, development details, and methodologies involved in building well-designed, robust Android Wear applications. We cover the advantages and disadvantages of the wearable computing paradigm and provide a good foundational knowledge for you to build practical, real-world wearable apps. You will learn about the various tools, platforms, libraries, SDKs, and technology needed to build Android Wear apps. By the end of the book, you will be an expert in building Android wearable apps.
Table of Contents (18 chapters)
Mastering Android Wear Application Development
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

App activities


The skeleton project consists of two activities, MainActivity and GridExampleActivity. The MainActivity activity contains a header text with Main Activity and three buttons inside ScrollView layout.

Let's take a look at the main_activity.xml file to see how the component layout is structured. One of the biggest advantages to developing Android applications using Android Studio is its layout editor. Although it may not be precisely the same during runtime, it can give a closer idea in terms of how the UI components are rendered during runtime.

After you have opened the main_activity.xml file, make sure you have the Preview tool window selected on the right side of Android Studio:

The Android Studio layout editor will display the live preview for changes to layout files. It also helps to get an understanding of how the components will be laid out for different form factors. As we know, Android Wear comes in square and circle-shaped form factors, so it will be a good idea to check...