About: This sample demonstrates how to specify different layouts for round and rectangular screens. The layouts used in this sample are as follows:

Additionally, a unique animation is played when the user clicks on the layout, depending on whether the screen is round or rectangular:

How to run: Install the Wearable APK on the wearable, go to the voice menu (either by saying "OK Google" or tapping the home screen) and select the "Start..." option. Then, select "WatchViewStub Sample" from the submenu.

Wearable APIs used: WatchViewStub, DismissOverlayView

Screenshots:

Round layout Rectangular layout
The layout that is inflated depends on the shape of your wearable.