Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Android Wearable Programming
  • Table Of Contents Toc
Android Wearable Programming

Android Wearable Programming

By : Steven F. Daniel
4 (2)
close
close
Android Wearable Programming

Android Wearable Programming

4 (2)
By: Steven F. Daniel

Overview of this book

If you are an Android developer who wants to learn how to build applications for the Android Wear platform, then this is the book for you. This book only requires a basic knowledge of Android programming. Familiarity with development IDEs such as Android Studio, IntelliJ IDEA, or Eclipse will be helpful.
Table of Contents (8 chapters)
close
close
7
Index

Creating a UI for the wear activity


In this section, we need to build the user interface for the Android wearable activity section of our application. This will enable us to receive messages and images sent from the Android handheld device and have this information presented within the Android wearable watch area.

Perform the following steps:

  1. From the Project Navigator window, open the rect_activity_wear.xml file that is located in the res | layout folder, and add the following code:

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout   
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"   
        android:layout_width="match_parent"
        android:layout_height="match_parent"   
        android:orientation="vertical"
        tools:context=".WearActivity"   
        tools:deviceIds="wear_square">
    
        <TextView
            android:layout_width="92dp"
            android:layout_height="31dp"
            android:minEms="10"
            android:id...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Android Wearable Programming
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon