Android WearAndroid Wear

Android Wear 是 android 的專為到穿戴裝置,例如智慧型手錶版本。Android Wear is a version of Android that is designed for wearable devices such as smart watches. 本節包含有關如何安裝及設定 Wear 開發,建立第一個 Wear 裝置,以及一份您可以參考來建立您自己穿戴式應用程式的範例的逐步解說所需的工具。This section includes instructions on how to install and configure tools required for Wear development, a step-by-step walkthrough for creating your first Wear device, and a list of samples that you can refer to for creating your own Wear apps.

快速入門Getting Started

介紹 Android Wear、 說明如何安裝和設定您的電腦進行 Wear 開發,並提供可協助您建立並執行第一個 Android Wear 應用程式在模擬器或在 Wear 裝置上的步驟。Introduces Android Wear, describes how to install and configure your computer for Wear development, and provides steps to help you create and run your first Android Wear app on an emulator or Wear device.

使用者介面User Interface

說明 Android Wear 特定控制項,並提供範例,示範如何使用這些控制項的連結。Explains Android Wear-specific controls and provides links to samples that demonstrate how to use these controls.

平台功能Platform Features

在本節中的文件涵蓋 Android Wear 的特定功能。Documents in this section cover features specific to Android Wear. 您可以在這裡找到的主題說明如何建立 WatchFace。Here you'll find a topic that describes how to create a WatchFace.

螢幕大小Screen Sizes

預覽,並最佳化您的使用者介面,可用的螢幕大小。Preview and optimize your user interface for the available screen sizes.

部署與測試Deployment & Testing

說明如何將 Android Wear 應用程式部署到 Android 穿戴式裝置或至針對 Wear 的 Android 模擬器。Explains how to deploy your Android Wear app to an Android Wear device or to Android emulator configured for Wear. 它也會包含偵錯秘訣和如何設定您的開發電腦與 Android 裝置的藍牙連線的資訊。It also includes debugging tips and information for how to set up a Bluetooth connection between your development computer and an Android device.

Wear ApiWear APIs

Android 開發人員網站會提供這類金鑰穿戴式 Api 的詳細的資訊活動到穿戴意圖驗證複雜性轉譯的複雜性通知檢視,並WatchFaceThe Android Developer site provides detailed information about key Wear APIs such as Wearable Activity, Intents, Authentication, Complications, Complications Rendering, Notifications, Views, and WatchFace.

範例Samples

您可以找到許多範例使用 Android Wear (或直接前往github)。You can find a number of samples using Android Wear (or go directly to github).

範例Sample 描述Description 螢幕擷取畫面Screenshot
SkeletonWearSkeletonWear 到穿戴的專案,包括 GridViewPager 和互動式的通知的基本概念的簡單範例。A simple example of the basics of wearable projects, including GridViewPager and interactive notifications. Skeletonwear 的螢幕擷取畫面
WatchViewStubWatchViewStub 偵測到畫面的圖形,並自動載入正確的版面配置的 WatchViewStub 控制項的簡單示範。A simple demo of the WatchViewStub control that detects screen shape and automatically loads the correct layout. 請參閱 WatchViewStub 中的運作方式Resources/layout/main_activity.xml版面配置。See how WatchViewStub works in the Resources/layout/main_activity.xml layout. WatchViewStub 的螢幕擷取畫面
RecipeAssistantRecipeAssistant 中的配方步驟形式的損耗通知頁面的示範。Demonstration of Wear notification pages, in the form of recipe steps. 通知被建立在 RecipeService.cs。Notifications are created in RecipeService.cs. RecipeAssistant 的螢幕擷取畫面
ElizaChatElizaChat 與 「 個人助理 」 互動的有趣的範例會呼叫 Eliza,若要建立使用現成的回應的交談使用 Wear 互動式的通知。Fun sample of interacting with a "personal assistant" called Eliza, using Wear interactive notifications to create a conversation using canned responses. ElizaChat 的螢幕擷取畫面
GridViewPagerGridViewPager GridViewPager 實作 2D 瀏覽模式中,其中使用者 swipes 垂直和水平擴展至瀏覽選項和內容。GridViewPager implements the 2D navigation pattern, where the user swipes vertically and then horizontally to navigate through options and content. GridViewPager 的螢幕擷取畫面
WatchFaceWatchFace WatchFace 是自訂錶面與類比樣式小時、 分鐘和第二個實際操作。WatchFace is a custom watch face with analog-style hour, minute, and second hands. 這個範例會示範如何建立監看式臉部服務繪製目前的時間和環境控制代碼的模式和可見度變更事件。This sample demonstrates how to create a watch face service that draws the current time and handles ambient mode and visibility change events. 它包含廣播的接收器接聽時區的變更,並會自動隨之更新的時間。It includes a broadcast receiver that listens for time zone changes and automatically updates the time accordingly. WatchFace 的螢幕擷取畫面

視訊Videos

請參閱這些影片討論 Wear 使用 Xamarin.Android 連結支援:Check out these video links that discuss Xamarin.Android with Wear support:

描述Description 螢幕擷取畫面Screenshot
Android L 及更多 – Android L Developer Preview 導入眾多新的 Api,讓開發人員充分發揮運用,包括 Material Design、 通知和新的動畫,等等。Android L and So Much More – The Android L Developer Preview introduced a plethora of new APIs for developers to take advantage of, including Material Design, notifications, and new animations, to name a few. 簡報的影片的螢幕擷取畫面
C#在我耳朵和我的眼睛: Google Glass 和 Android Wear –到穿戴運算可能看起來很喜歡從未來 (或偵測器的小工具集),但許多人目前已採用未來 !C# is in my Ears and in my Eyes: Google Glass and Android Wear – Wearable computing might seem like something from the future (or an Inspector Gadget episode), but many people are already embracing the future today! C#開發人員知道這,而且已經有的工具和技巧,以充分利用到穿戴裝置 (從發展 2014)。C# developers know this and already have the tools and skills to harness the power of wearable devices (from Evolve 2014). 簡報的影片的螢幕擷取畫面
在 Xamarin.Android 中最新消息 – Android L、 Android Wear、 Android TV、 Android Auto、 材料設計和圖案; 此為 Xamarin 開發人員呢? 從發展 2014年。What's new in Xamarin.Android – Android L, Android Wear, Android TV, Android Auto, Material Design, and ART; what does this mean to you as a Xamarin developer? from Evolve 2014. 簡報的影片的螢幕擷取畫面