• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.google/22-Nov-2023-1813

Application/22-Nov-2023-362125

Wearable/22-Nov-2023-395198

gradle/wrapper/22-Nov-2023-76

screenshots/22-Nov-2023-

CONTRIB.mdD22-Nov-20231.6 KiB3627

CONTRIBUTING.mdD22-Nov-20231.5 KiB3627

LICENSED22-Nov-202311.1 KiB202169

NOTICED22-Nov-2023613 1611

README.mdD22-Nov-20232.2 KiB6444

build.gradleD22-Nov-202314 150

gradlewD22-Nov-20235 KiB165122

gradlew.batD22-Nov-20232.3 KiB9166

settings.gradleD22-Nov-202336 21

README.md

1Android WatchViewStub Sample
2===================================
3
4This sample demonstrates how to specify different layouts for round and rectangular screens.
5
6Introduction
7------------
8
9It is a basic sample that displays a round layout on a round watch and a rectangular one on a
10rectangular watch.
11
12The corresponding layout is being inflated by the system. This sample shows a way to handle
13this programatically by using a `WatchViewStub.OnLayoutInflateListener`.
14
15Pre-requisites
16--------------
17
18- Android SDK v21
19- Android Build Tools v21.1.1
20- Android Support Repository
21
22Screenshots
23-------------
24
25<img src="screenshots/watch_view_stub_rectangular.png" height="400" alt="Screenshot"/> <img src="screenshots/watch_view_stub_round.png" height="400" alt="Screenshot"/>
26
27Getting Started
28---------------
29
30This sample uses the Gradle build system. To build this project, use the
31"gradlew build" command or use "Import Project" in Android Studio.
32
33Support
34-------
35
36- Google+ Community: https://plus.google.com/communities/105153134372062985968
37- Stack Overflow: http://stackoverflow.com/questions/tagged/android
38
39If you've found an error in this sample, please file an issue:
40https://github.com/googlesamples/android-WatchViewStub
41
42Patches are encouraged, and may be submitted by forking this project and
43submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
44
45License
46-------
47
48Copyright 2014 The Android Open Source Project, Inc.
49
50Licensed to the Apache Software Foundation (ASF) under one or more contributor
51license agreements.  See the NOTICE file distributed with this work for
52additional information regarding copyright ownership.  The ASF licenses this
53file to you under the Apache License, Version 2.0 (the "License"); you may not
54use this file except in compliance with the License.  You may obtain a copy of
55the License at
56
57http://www.apache.org/licenses/LICENSE-2.0
58
59Unless required by applicable law or agreed to in writing, software
60distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
61WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
62License for the specific language governing permissions and limitations under
63the License.
64