1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright 2021 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17<UserStyleSchema xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto"> 19 <BooleanUserStyleSetting 20 android:icon="@drawable/color_style_icon" 21 app:affectedWatchFaceLayers="BASE" 22 app:defaultBoolean="false" 23 app:description="@string/hour_pips_setting_description" 24 app:displayName="@string/hour_pips_setting" 25 app:id="HourPips"/> 26 27 <ComplicationSlotsUserStyleSetting 28 app:affectedWatchFaceLayers="COMPLICATIONS" 29 app:description="Controls complication layout" 30 app:displayName="Complications" 31 app:id="ComplicationsId"> 32 <ComplicationSlotsOption 33 app:displayName="One complication" 34 app:id="one"> 35 <ComplicationSlotOverlay 36 app:complicationSlotId="@integer/complication_slot_id1" 37 app:enabled="false" /> 38 <ComplicationSlotOverlay 39 app:complicationSlotId="2" 40 app:enabled="true" /> 41 <ComplicationSlotOverlay 42 app:complicationSlotId="3" 43 app:accessibilityTraversalIndex="100" /> 44 </ComplicationSlotsOption> 45 <ComplicationSlotsOption 46 app:displayName="Move complication 2" 47 app:id="two"> 48 <ComplicationSlotOverlay app:complicationSlotId="2"> 49 <ComplicationSlotBounds 50 app:bottom="0.1" 51 app:left="0.2" 52 app:right="0.3" 53 app:top="0.4" /> 54 </ComplicationSlotOverlay> 55 </ComplicationSlotsOption> 56 <ComplicationSlotsOption 57 app:displayName="Resize complication 3" 58 app:id="three"> 59 <ComplicationSlotOverlay app:complicationSlotId="3"> 60 <ComplicationSlotBounds 61 app:complicationType="NOT_CONFIGURED" 62 app:bottom="0.1" 63 app:left="0.2" 64 app:right="0.3" 65 app:top="0.4" /> 66 <ComplicationSlotBounds 67 app:complicationType="EMPTY" 68 app:bottom="0.1" 69 app:left="0.2" 70 app:right="0.3" 71 app:top="0.4" /> 72 <ComplicationSlotBounds 73 app:complicationType="SHORT_TEXT" 74 app:bottom="0.1" 75 app:left="0.2" 76 app:right="0.3" 77 app:top="0.4" /> 78 <ComplicationSlotBounds 79 app:complicationType="LONG_TEXT" 80 app:bottom="0.5" 81 app:left="0.6" 82 app:right="0.7" 83 app:top="0.8" /> 84 <ComplicationSlotBounds 85 app:complicationType="RANGED_VALUE" 86 app:bottom="0.1" 87 app:left="0.2" 88 app:right="0.3" 89 app:top="0.4" /> 90 <ComplicationSlotBounds 91 app:complicationType="MONOCHROMATIC_IMAGE" 92 app:bottom="0.1" 93 app:left="0.2" 94 app:right="0.3" 95 app:top="0.4" /> 96 <ComplicationSlotBounds 97 app:complicationType="SMALL_IMAGE" 98 app:bottom="0.1" 99 app:left="0.2" 100 app:right="0.3" 101 app:top="0.4" /> 102 <ComplicationSlotBounds 103 app:complicationType="PHOTO_IMAGE" 104 app:bottom="0.1" 105 app:left="0.2" 106 app:right="0.3" 107 app:top="0.4" /> 108 <ComplicationSlotBounds 109 app:complicationType="NO_PERMISSION" 110 app:bottom="0.1" 111 app:left="0.2" 112 app:right="0.3" 113 app:top="0.4" /> 114 <ComplicationSlotBounds 115 app:complicationType="NO_DATA" 116 app:bottom="0.1" 117 app:left="0.2" 118 app:right="0.3" 119 app:top="0.4" /> 120 </ComplicationSlotOverlay> 121 </ComplicationSlotsOption> 122 <ComplicationSlotsOption 123 app:displayName="Rename complications" 124 app:id="four"> 125 <ComplicationSlotOverlay 126 app:complicationSlotId="2" 127 app:name="@string/complication_name" 128 app:screenReaderName="@string/complication_screen_reader_name" /> 129 </ComplicationSlotsOption> 130 </ComplicationSlotsUserStyleSetting> 131 132 <DoubleRangeUserStyleSetting 133 app:affectedWatchFaceLayers="BASE|COMPLICATIONS" 134 app:defaultDouble="2.5" 135 app:description="Double range description" 136 app:displayName="Double range" 137 app:id="DoubleRange" 138 app:maxDouble="10.5" 139 app:minDouble="-1.5"/> 140 141 <LongRangeUserStyleSetting 142 app:affectedWatchFaceLayers="COMPLICATIONS|COMPLICATIONS_OVERLAY" 143 app:defaultLong="2" 144 app:description="Long range description" 145 app:displayName="Long range" 146 app:id="LongRange" 147 app:maxLong="10" 148 app:minLong="-1"/> 149</UserStyleSchema> 150