WearDevices


public static class WearDevices


List with the pre-defined devices available to be used in previews.

Summary

Constants

static final @NonNull String

Round device with 227x227dp (454x454px) dimensions, 1.39" size and xhdpi density.

static final @NonNull String

Rectangular device with 201x238dp (402x476px) dimensions, 1.2" size and xhdpi density.

static final @NonNull String

Round device with 192x192dp (384x384px) dimensions, 1.2" size and xhdpi density.

static final @NonNull String

Square device with 180x180dp (360x360px) dimensions, 1.2" size and xhdpi density.

Public fields

static @NonNull WearDevices

Constants

LARGE_ROUND

Added in 1.0.0
public static final @NonNull String LARGE_ROUND

Round device with 227x227dp (454x454px) dimensions, 1.39" size and xhdpi density.

RECT

Added in 1.0.0
public static final @NonNull String RECT

Rectangular device with 201x238dp (402x476px) dimensions, 1.2" size and xhdpi density. If you are targeting Wear 3 or later, it is recommended to use LARGE_ROUND or SMALL_ROUND instead.

SMALL_ROUND

Added in 1.0.0
public static final @NonNull String SMALL_ROUND

Round device with 192x192dp (384x384px) dimensions, 1.2" size and xhdpi density.

SQUARE

Added in 1.0.0
public static final @NonNull String SQUARE

Square device with 180x180dp (360x360px) dimensions, 1.2" size and xhdpi density. If you are targeting Wear 3 or later, it is recommended to use LARGE_ROUND or SMALL_ROUND instead.

Public fields

INSTANCE

Added in 1.0.0
public static @NonNull WearDevices INSTANCE