Home | History | Annotate | only in /developers/build/prebuilts/gradle/WatchFace
Up to higher level directory
NameDateSize
.google/21-Aug-2018
Application/21-Aug-2018
build.gradle21-Aug-201814
CONTRIB.md21-Aug-20181.6K
CONTRIBUTING.md21-Aug-20181.5K
gradle/21-Aug-2018
gradlew21-Aug-20185K
gradlew.bat21-Aug-20182.3K
LICENSE21-Aug-201811.1K
README.md21-Aug-20184.3K
screenshots/21-Aug-2018
settings.gradle21-Aug-201837
Wearable/21-Aug-2018

README.md

      1 
      2 Android WatchFace Sample
      3 ===================================
      4 
      5 A simple sample that demonstrates watch faces and complications for Wear 2.0.
      6 
      7 Introduction
      8 ------------
      9 
     10 This sample demonstrates how to create watch faces for Android Wear.
     11 
     12 The analog watch face covers best practices for Wear 2.0 including complications and a new
     13 configuration Activity for configuring both the watch face styles and the complications themselves.
     14 We recommend you reuse the configuration code and follow the UX patterns in your watch face's
     15 configuration activity. You can see a preview in the screenshots section of the README.
     16 
     17 The analog watch face has three main classes:
     18 
     19 - AnalogComplicationWatchFaceService.java (watchface folder) - Renders the watch face and active
     20 complications.
     21 
     22 - AnalogComplicationConfigActivity.java (config folder) - Allows user to adjust watch face settings
     23 (arm and background colors) and watch face complications.
     24 
     25 - AnalogComplicationConfigData.java (models folder) - Populates the configuration screen in the
     26 previous step by returning a list of items. Each item represents something you can customize on the
     27 watch face. Items include a preview of the watch face (where you can pick your complications),
     28 marker color, background color, unread notifications, and background image complication. You can
     29 extend this and add your own.
     30 
     31 
     32 We include several older watch faces to show best practices for Wear 1.0. If you are targeting
     33 older devices, you may want to review those watch faces (digital, opengl, and interactive).
     34 
     35 The digital watch face includes a watch-side and phone-side configuration example.
     36 
     37 This sample includes both a phone app and a wearable app.
     38 
     39 Because watch face apps do not have a default Activity in their project, you will need to set your
     40 Configurations to "Do not launch Activity" for both the Wear and Application modules. If you are
     41 unsure how to do this, please review the "Run Starter project" section in the
     42 [Google Watch Face Code Lab][1].
     43 
     44 [1]: https://codelabs.developers.google.com/codelabs/watchface/index.html
     45 
     46 Pre-requisites
     47 --------------
     48 
     49 - Android SDK 27
     50 - Android Build Tools v27.0.2
     51 - Android Support Repository
     52 
     53 Screenshots
     54 -------------
     55 
     56 <img src="screenshots/analog-face.png" height="400" alt="Screenshot"/> <img src="screenshots/analog-watch-side-config-all.png" height="400" alt="Screenshot"/> <img src="screenshots/analog-watch-side-config-1.png" height="400" alt="Screenshot"/> <img src="screenshots/analog-watch-side-config-2.png" height="400" alt="Screenshot"/> <img src="screenshots/digital-face.png" height="400" alt="Screenshot"/> <img src="screenshots/digital-phone-side-config.png" height="400" alt="Screenshot"/> <img src="screenshots/digital-watch-side-config.png" height="400" alt="Screenshot"/> <img src="screenshots/interactive-face.png" height="400" alt="Screenshot"/> <img src="screenshots/tilt-face.png" height="400" alt="Screenshot"/> 
     57 
     58 Getting Started
     59 ---------------
     60 
     61 This sample uses the Gradle build system. To build this project, use the
     62 "gradlew build" command or use "Import Project" in Android Studio.
     63 
     64 Support
     65 -------
     66 
     67 - Google+ Community: https://plus.google.com/communities/105153134372062985968
     68 - Stack Overflow: http://stackoverflow.com/questions/tagged/android
     69 
     70 If you've found an error in this sample, please file an issue:
     71 https://github.com/googlesamples/android-WatchFace
     72 
     73 Patches are encouraged, and may be submitted by forking this project and
     74 submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
     75 
     76 License
     77 -------
     78 
     79 Copyright 2017 The Android Open Source Project, Inc.
     80 
     81 Licensed to the Apache Software Foundation (ASF) under one or more contributor
     82 license agreements.  See the NOTICE file distributed with this work for
     83 additional information regarding copyright ownership.  The ASF licenses this
     84 file to you under the Apache License, Version 2.0 (the "License"); you may not
     85 use this file except in compliance with the License.  You may obtain a copy of
     86 the License at
     87 
     88 http://www.apache.org/licenses/LICENSE-2.0
     89 
     90 Unless required by applicable law or agreed to in writing, software
     91 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
     92 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
     93 License for the specific language governing permissions and limitations under
     94 the License.
     95