21. 表盘拓展参数

表盘拓展参数包括形状、边角半径、背景颜色(ARGB)等

21.1. 获取表盘拓展参数

final WatchManager watchManager = WatchManager.getInstance();
final WatchConfigure watchConfigure = watchManager.getWatchConfigure(watchManager.getConnectedDevice());
if (null == watchConfigure) return null;
DialExpandInfo dialExpandInfo = watchConfigure.getDialExpandInfo();

21.2. 表盘拓展参数

public class DialExpandInfo extends SettingFunction {
     /**
      * 圆形
      */
     public static final int SHAPE_CIRCULAR = 1;
     /**
      * 矩形
      */
     public static final int SHAPE_RECTANGLE = 2;
     /**
      * 圆角矩形
      */
     public static final int SHAPE_ROUNDED_RECTANGLE = 3;

     /**
      * 形状
      */
     private int shape;
     /**
      * 边角半径
      */
     private int radius;
     /**
     * 背景颜色(ARGB)
     */
     private int color;
 }