add piggy watch face
This commit is contained in:
@@ -43,6 +43,7 @@ dependencies {
|
|||||||
implementation(libs.androidx.watchface.complications.data.source.ktx)
|
implementation(libs.androidx.watchface.complications.data.source.ktx)
|
||||||
implementation(libs.androidx.wear.tooling.preview)
|
implementation(libs.androidx.wear.tooling.preview)
|
||||||
implementation(libs.guava)
|
implementation(libs.guava)
|
||||||
|
implementation(libs.androidx.watchface)
|
||||||
implementation(libs.play.services.wearable)
|
implementation(libs.play.services.wearable)
|
||||||
implementation(libs.ui.compose)
|
implementation(libs.ui.compose)
|
||||||
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
||||||
|
|||||||
@@ -32,10 +32,18 @@
|
|||||||
android:theme="@style/MainActivityTheme.Starting">
|
android:theme="@style/MainActivityTheme.Starting">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
|
<meta-data
|
||||||
|
android:name="com.google.wear.watchface.info"
|
||||||
|
android:resource="@xml/watch_face_info" />
|
||||||
|
|
||||||
|
<property
|
||||||
|
android:name="com.google.wear.watchface.format.version"
|
||||||
|
android:value="2" />
|
||||||
|
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|||||||
+1
-1
@@ -9,6 +9,6 @@ import androidx.compose.ui.Modifier
|
|||||||
@Composable
|
@Composable
|
||||||
fun MainScreen(component: MainComponent) {
|
fun MainScreen(component: MainComponent) {
|
||||||
Box(modifier = Modifier.safeContentPadding()) {
|
Box(modifier = Modifier.safeContentPadding()) {
|
||||||
Text("MainScreen $component")
|
Text("Тут пока что ничего нет. Совсем ничего. Приложение в активной разработке")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,72 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="450dp"
|
||||||
|
android:height="450dp"
|
||||||
|
android:viewportWidth="450"
|
||||||
|
android:viewportHeight="450">
|
||||||
|
<path
|
||||||
|
android:pathData="M0,0H450V450H0V0Z"
|
||||||
|
android:fillColor="#F7B3C0"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M236.85,97.11C243.52,96.63 243.18,97.7 248.39,101.18C248.88,101.51 253.1,102.49 253.94,102.64C258.21,103.4 261.4,104.72 265.03,107.06C268.7,114.16 266.64,118.43 262.96,124.83C271.25,133.57 277.93,142.59 283.16,153.57C285.13,157.71 286.13,162.12 288.15,166.05C289.14,167.97 292.34,171.02 293.55,172.92C296.67,177.83 299.98,182.99 302.97,187.97C304.81,191.22 305.97,194.62 307.72,197.92C316.7,214.88 322.23,233.76 325.33,252.64C325.88,256.31 325.73,260.15 325.76,263.82C325.94,285.19 323.71,309.3 309.7,326.51C308.83,327.57 308.17,329.54 307.31,330.8C306.55,331.94 304.62,331.79 303.53,332.43C302.29,333.16 300.61,335.29 299.56,335.98C272.85,353.73 234.84,357.1 204.56,348.4C199.99,347.38 195.96,345.67 191.41,344.64C189.74,344.28 187.66,344.92 186.05,344.65C178.82,343.42 169.02,340.82 163.46,335.89C160.32,333.12 165.15,330.74 167.07,329.33L167.23,329.2C152.22,313.07 149.08,299.4 161.63,280.43C158.49,264.91 158.43,253.92 163.15,238.97C161.77,238.27 160.29,237.54 158.96,236.76C143.62,227.7 136.93,208.19 138.25,191.12C138.41,189.01 138.58,186.94 138.76,184.85C131.33,183.21 120.77,175.09 124.95,166.15C126.01,163.77 130.02,160.62 131.03,158.53C136.57,147.09 135.45,142.69 149.7,143.06C152.96,135.78 160.41,127.21 166.43,122.05C180.87,109.67 203.98,105.74 222.48,107.5C226.93,102.21 230.11,99.15 236.85,97.11Z"
|
||||||
|
android:fillColor="#020001"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M219.55,113.1C225.23,106.69 235.42,92.1 245.82,101.07C249.14,103.93 250.99,107.64 254.92,110.01C253.51,107.2 251.87,105.38 249.79,103.02C279.7,107.06 258.12,129.93 254.17,129.28C250.48,127.3 247.12,120.2 244.28,116.46C242.01,113.48 239.49,110.69 236.75,108.14C235.48,106.97 233.93,105.41 232.19,105.29L231.36,105.68C231.61,106.1 231.67,106.09 232.08,106.3C236.99,108.71 240.18,113.78 243.41,118.03C246.19,121.68 250.6,132.27 256.17,130.89C258.04,130.43 260.61,127.46 261.95,125.99C273.68,137.8 278.55,146.93 284.82,162.33C281.93,159.36 278.44,155.63 274.67,153.88C277.38,157.06 280.5,159.67 283.27,162.71C293.95,174.41 300.55,186.78 307.38,200.92C319.24,225.45 326.54,251.59 323.71,279.11C322.17,294.84 319.37,310.58 309.73,323.6C308.73,324.95 305.7,329.47 304.22,329.86C303.72,329.69 303.37,329.63 303.06,329.21C304.44,327.78 306.15,326.42 306.08,324.34C306.05,322.9 305.42,321.54 304.34,320.59C302.24,318.78 298.36,318.62 296.49,320.9C295.32,322.33 295.37,324.7 295.32,326.44C293.44,326.35 290.27,325.91 288.73,326.13C289.58,327.04 292.57,327.42 293.85,327.46C294.5,327.48 295.15,327.49 295.8,327.47C296.37,328.29 297.04,329.32 297.67,330.06C294.8,330.99 289.83,331.17 289.11,331.64C290.53,334.13 297.5,330.18 300.37,331.96L300.51,332.54C300.13,332.91 299.86,333.22 299.38,333.46C293.36,339.54 276.87,345.29 268.36,347.79C265.52,348.01 258.16,349.67 254.43,350.17C240.32,352.08 229.29,351.68 215.3,349.22C208.6,348.08 201.98,346.45 195.51,344.35C191.37,343 187.71,341.51 183.82,339.6C183.3,339.35 182.42,339.36 181.87,339.52L181.87,339.89C183.29,341.14 185.97,342.41 187.72,343.33C183.65,342.73 179.04,342.06 175.28,340.36C172.9,339.29 171.66,336.47 172.4,334.02C172.5,333.7 173.63,333.54 173.99,333.45L174.16,333.1C172.36,330.79 168.18,328.16 165.12,324.51C160.03,317.96 158.86,316.69 156.1,308.74C154.06,297.3 157.43,289.17 163.78,279.82C166.56,275.72 172.32,269.94 174.33,266.24C169.71,269.81 166.6,273.68 162.86,278.16C159.25,259.37 159.91,244.14 171.04,228.08C179.51,215.86 191.34,206.01 204.61,199.24C206.71,198.17 213.79,195.93 214.13,194.53C210.81,193.92 201.71,198.75 198.9,200.39C184.66,208.71 170.68,222.35 163.66,237.47C143.13,228.15 138.15,205.46 140.33,184.9C144.02,183.32 145.69,181.52 145.84,177.24C146.08,169.79 144.38,162.27 144.36,154.85C144.36,154.09 146.3,150.15 146.76,149.22L146.38,149.09C139.7,153.68 145.93,170.81 144.11,178.24C141.4,189.35 128.89,179.51 126.25,173.69C123.93,167.67 127.77,164.56 131.11,160.65C131.05,162.01 130.87,163.5 131.33,164.75C131.86,164.45 132.19,163.06 132.32,162.42C134.25,153.08 136.74,142.42 148.87,144.43C149.1,144.47 149.45,144.61 149.68,144.69C151.1,143.93 153.72,139.01 154.78,137.3C168.69,114.89 196,107.06 221.21,108.87C220.6,110.26 219.94,111.64 219.55,113.1Z"
|
||||||
|
android:fillColor="#F5B3BC"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M156.1,308.74C169.25,305.08 179.73,331.31 194.8,335.45C197.7,333.98 199.92,331.61 202.98,332.7C207.37,334.26 211.18,339.24 215.5,340.64C220.58,342.28 225.24,337.91 230.55,338.11C238.22,338.41 242.53,347.98 250.9,344.5C253.78,343.3 256.38,340.07 259.84,341.2C261.89,341.87 263.49,343.8 264.96,345.33L264.97,345.58C266.09,346.89 266.57,347.59 268.36,347.8C265.52,348.01 258.16,349.67 254.43,350.17C240.32,352.08 229.29,351.68 215.3,349.22C208.6,348.08 201.98,346.45 195.51,344.35C191.37,343 187.71,341.51 183.82,339.6C183.3,339.35 182.42,339.36 181.87,339.53L181.87,339.89C183.29,341.14 185.97,342.41 187.72,343.33C183.65,342.73 179.04,342.06 175.28,340.36C172.9,339.29 171.66,336.47 172.4,334.02C172.5,333.7 173.63,333.54 173.99,333.45L174.16,333.11C172.36,330.79 168.18,328.16 165.12,324.51C160.03,317.96 158.86,316.69 156.1,308.74Z"
|
||||||
|
android:fillColor="#73462B"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M165.12,324.51C166.92,324.47 173.05,328.85 175.01,330.05C202.79,347.19 233.56,349.02 264.97,345.58C266.09,346.89 266.57,347.59 268.36,347.79C265.52,348.01 258.16,349.67 254.43,350.17C240.32,352.08 229.29,351.68 215.3,349.22C208.6,348.08 201.98,346.45 195.51,344.35C191.37,343 187.71,341.51 183.82,339.6C183.31,339.35 182.42,339.36 181.87,339.52L181.87,339.89C183.29,341.14 185.97,342.41 187.72,343.33C183.65,342.73 179.04,342.06 175.28,340.36C172.9,339.29 171.66,336.47 172.4,334.02C172.5,333.7 173.63,333.54 173.99,333.45L174.16,333.11C172.36,330.79 168.18,328.16 165.12,324.51Z"
|
||||||
|
android:fillColor="#5A3720"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M264.96,345.33C265.81,345.07 266.81,344.88 267.69,344.67C276.25,342.62 284.82,339.97 292.8,336.22C294.91,335.24 297.14,334.05 299.38,333.46C293.36,339.54 276.87,345.29 268.36,347.79C266.57,347.59 266.09,346.89 264.97,345.58L264.96,345.33Z"
|
||||||
|
android:fillColor="#C38F97"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M205.4,236.63C214.77,235.79 221.47,242.59 225.76,250.26C229.73,257.38 229.61,260.37 238.23,262.73C263.75,269.72 267.8,304.47 243.51,316.17C241.64,316.97 239.7,317.58 237.71,317.98C229.66,319.69 221.26,318.09 214.4,313.55C200.89,304.52 206.35,293.01 202.64,280.68C200.34,273.04 192.21,266.03 190.52,257.12C189.62,252.41 190.65,247.52 193.38,243.57C196.32,239.29 200.51,237.51 205.4,236.63Z"
|
||||||
|
android:fillColor="#DE939E"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M215.01,150.38C215.48,151.13 214.48,156.54 214.69,158.53C215.64,167.29 226.16,166.99 229.96,169.84C228.11,171.93 218.58,166.24 216.63,165.03C210.13,170.3 203.6,168.7 196.48,172.17C189.57,175.54 187.16,183.17 178.5,182.25C178.73,184.81 178.64,186.55 178.25,189.06C177.84,191.34 176.97,193.23 175.94,195.26C176.21,193.96 176.47,192.66 176.72,191.36C177.67,186.18 178.14,179.01 172.96,175.63C171.69,174.8 170.12,174.66 169.38,173.58L169.65,173.19C171.26,173.26 173.71,174.7 175.04,175.6C175.4,165.66 176.91,153.68 188.65,151.58C196.15,150.24 206.87,151.99 213.15,156.18C213.54,153.81 213.74,152.41 215.01,150.38Z"
|
||||||
|
android:fillColor="#020001"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M190.6,152.51C198.66,152.02 206.12,153.11 213.04,157.43C213.78,160.36 214.46,161.76 215.82,164.35C210.7,167.96 206.01,167.79 200.22,169.43C197.34,170.25 195.55,171.33 193.05,172.86C189.79,175.17 184.99,180.94 181.79,181.2C172.31,181.96 177.05,161.84 180.4,157.98C183.83,154.03 186.39,153.15 190.6,152.51Z"
|
||||||
|
android:fillColor="#ED627D"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M193.25,157.46C196.72,157.61 205.05,158.62 202.55,163.83C199.02,164.42 192.09,161.89 193.25,157.46Z"
|
||||||
|
android:fillColor="#0F0102"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M193.89,158.89C197.11,158.59 201.41,158.96 202.14,162.67C198.63,162.94 196.02,161.57 193.89,158.89Z"
|
||||||
|
android:fillColor="#842A33"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M184.09,160.95C186.94,161.81 187.42,170.03 183.82,172.67C179.09,170.44 182.22,164.24 184.09,160.95Z"
|
||||||
|
android:fillColor="#020001"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M184.24,162.64C186.13,164.26 185.63,169.8 183.58,171.78C181.17,169.26 183.09,165.38 184.24,162.64Z"
|
||||||
|
android:fillColor="#842A33"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M212.46,131.31C217.32,130.23 222.14,133.26 223.28,138.1C224.42,142.95 221.45,147.81 216.62,149.01C213.44,149.8 210.08,148.82 207.83,146.44C205.58,144.06 204.78,140.66 205.74,137.52C206.69,134.39 209.26,132.02 212.46,131.31Z"
|
||||||
|
android:fillColor="#DE939E"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M214.18,136.4C215.5,135.92 216.97,136.21 218,137.15C219.04,138.09 219.47,139.52 219.11,140.87C218.76,142.23 217.69,143.27 216.32,143.58C214.39,144.03 212.45,142.9 211.88,141C211.32,139.1 212.33,137.09 214.18,136.4Z"
|
||||||
|
android:fillColor="#020001"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M194.63,277.28C200.1,277.51 203.19,285.46 197.54,288.84C195.57,289.03 193.53,288.12 192.63,286.41C190.58,282.51 191.08,279.52 194.63,277.28Z"
|
||||||
|
android:fillColor="#DE939E"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M167.19,159.69C168.59,159.59 169.92,160.26 170.68,161.44C171.44,162.62 171.49,164.12 170.82,165.35C170.15,166.57 168.87,167.34 167.47,167.35C165.4,167.35 163.7,165.72 163.63,163.65C163.55,161.59 165.13,159.84 167.19,159.69Z"
|
||||||
|
android:fillColor="#020001"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M186.15,149.25C187.81,149.1 190.05,149.18 191.76,149.2C186.59,151.08 183.68,150.04 179.53,154.89C178.47,156.47 177.75,157.1 176.4,158.39C178.43,153.43 181.02,151.03 186.15,149.25Z"
|
||||||
|
android:fillColor="#020001"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M199.89,178.65L199.89,179.03C198.21,182.13 191.9,182.79 188.75,182.08L188.45,181.48C188.97,180.95 190.04,181.21 190.85,181.26C194.4,181.46 196.86,180.33 199.89,178.65Z"
|
||||||
|
android:fillColor="#020001"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M299.42,329.8C291.03,321.81 303.65,316.18 304.77,324.31C304.93,325.42 303.35,327.86 301.92,327.81C301.48,326.98 301.82,324.4 301.89,323.32L301.6,323.03C299.99,324.27 300.29,325.35 300.24,327.27L299.42,329.8Z"
|
||||||
|
android:fillColor="#F5B3BC"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M168.22,330.7C171.96,330.6 170.87,336.1 171.42,338.89L168.92,337.8C163.31,335.2 161.72,333.64 168.22,330.7Z"
|
||||||
|
android:fillColor="#3E3533"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M299.42,329.8L300.24,327.27L300.33,327.54C301.03,329.43 301.83,329.54 302.14,330.92L301.97,330.55C300.22,330.55 300.86,330.74 299.42,329.8Z"
|
||||||
|
android:fillColor="#E3BCBF"/>
|
||||||
|
</vector>
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
@@ -0,0 +1,621 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<WatchFace width="450" height="450">
|
||||||
|
|
||||||
|
<Metadata key="CLOCK_TYPE" value="DIGITAL"/>
|
||||||
|
<Metadata key="PREVIEW_TIME" value="10:08:32"/>
|
||||||
|
<Metadata key="STEP_GOAL" value="10000"/>
|
||||||
|
|
||||||
|
<UserConfigurations>
|
||||||
|
<PhotosConfiguration
|
||||||
|
id="photoConfig"
|
||||||
|
configType="SINGLE"/>
|
||||||
|
</UserConfigurations>
|
||||||
|
|
||||||
|
<Scene backgroundColor="#FF000000">
|
||||||
|
|
||||||
|
<!-- PHOTO -->
|
||||||
|
|
||||||
|
<Group
|
||||||
|
name="photo"
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
width="450"
|
||||||
|
height="450">
|
||||||
|
|
||||||
|
<Variant
|
||||||
|
mode="AMBIENT"
|
||||||
|
target="alpha"
|
||||||
|
value="0"/>
|
||||||
|
|
||||||
|
<PartImage
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
width="450"
|
||||||
|
height="450">
|
||||||
|
|
||||||
|
<Photos
|
||||||
|
change="TAP"
|
||||||
|
source="[CONFIGURATION.photoConfig]"
|
||||||
|
defaultImageResource="piggy"
|
||||||
|
scaleMode="CENTER_CROP"/>
|
||||||
|
|
||||||
|
</PartImage>
|
||||||
|
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- TIME -->
|
||||||
|
|
||||||
|
<!-- HOURS -->
|
||||||
|
|
||||||
|
<DigitalClock
|
||||||
|
x="72"
|
||||||
|
y="165"
|
||||||
|
width="130"
|
||||||
|
height="115">
|
||||||
|
|
||||||
|
<TimeText
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
width="130"
|
||||||
|
height="115"
|
||||||
|
format="hh"
|
||||||
|
hourFormat="SYNC_TO_DEVICE"
|
||||||
|
align="CENTER"
|
||||||
|
verticalAlign="CENTER">
|
||||||
|
|
||||||
|
<Font
|
||||||
|
family="SYNC_TO_DEVICE"
|
||||||
|
size="90"
|
||||||
|
weight="BOLD"
|
||||||
|
color="#FFFFFFFF">
|
||||||
|
|
||||||
|
<Shadow
|
||||||
|
color="#B0000000"
|
||||||
|
offsetX="0"
|
||||||
|
offsetY="3"
|
||||||
|
radius="7"/>
|
||||||
|
|
||||||
|
</Font>
|
||||||
|
|
||||||
|
</TimeText>
|
||||||
|
|
||||||
|
</DigitalClock>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- COLON -->
|
||||||
|
|
||||||
|
<PartText
|
||||||
|
x="202"
|
||||||
|
y="165"
|
||||||
|
width="46"
|
||||||
|
height="115">
|
||||||
|
|
||||||
|
<Text
|
||||||
|
align="CENTER"
|
||||||
|
verticalAlign="CENTER">
|
||||||
|
|
||||||
|
<Font
|
||||||
|
family="SYNC_TO_DEVICE"
|
||||||
|
size="90"
|
||||||
|
weight="BOLD"
|
||||||
|
color="#FFFFFFFF">
|
||||||
|
|
||||||
|
<Shadow
|
||||||
|
color="#B0000000"
|
||||||
|
offsetX="0"
|
||||||
|
offsetY="3"
|
||||||
|
radius="7"/>
|
||||||
|
|
||||||
|
<![CDATA[:]]>
|
||||||
|
|
||||||
|
</Font>
|
||||||
|
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
</PartText>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- MINUTES -->
|
||||||
|
|
||||||
|
<DigitalClock
|
||||||
|
x="248"
|
||||||
|
y="165"
|
||||||
|
width="130"
|
||||||
|
height="115">
|
||||||
|
|
||||||
|
<TimeText
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
width="130"
|
||||||
|
height="115"
|
||||||
|
format="mm"
|
||||||
|
align="CENTER"
|
||||||
|
verticalAlign="CENTER">
|
||||||
|
|
||||||
|
<Font
|
||||||
|
family="SYNC_TO_DEVICE"
|
||||||
|
size="90"
|
||||||
|
weight="BOLD"
|
||||||
|
color="#FFFFFFFF">
|
||||||
|
|
||||||
|
<Shadow
|
||||||
|
color="#B0000000"
|
||||||
|
offsetX="0"
|
||||||
|
offsetY="3"
|
||||||
|
radius="7"/>
|
||||||
|
|
||||||
|
</Font>
|
||||||
|
|
||||||
|
</TimeText>
|
||||||
|
|
||||||
|
</DigitalClock>
|
||||||
|
|
||||||
|
<!-- WEATHER -->
|
||||||
|
|
||||||
|
<Group
|
||||||
|
name="weather"
|
||||||
|
x="70"
|
||||||
|
y="54"
|
||||||
|
width="80"
|
||||||
|
height="80">
|
||||||
|
|
||||||
|
<Variant
|
||||||
|
mode="AMBIENT"
|
||||||
|
target="alpha"
|
||||||
|
value="0"/>
|
||||||
|
|
||||||
|
<PartDraw
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
width="80"
|
||||||
|
height="80">
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="2"
|
||||||
|
y="4"
|
||||||
|
width="76"
|
||||||
|
height="76">
|
||||||
|
<Fill color="#40000000"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
width="76"
|
||||||
|
height="76">
|
||||||
|
<Fill color="#0000004D"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="1"
|
||||||
|
y="1"
|
||||||
|
width="74"
|
||||||
|
height="74">
|
||||||
|
<Stroke
|
||||||
|
color="#35FFFFFF"
|
||||||
|
thickness="1"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
</PartDraw>
|
||||||
|
|
||||||
|
|
||||||
|
<PartDraw
|
||||||
|
x="11"
|
||||||
|
y="23"
|
||||||
|
width="25"
|
||||||
|
height="35">
|
||||||
|
|
||||||
|
<RoundRectangle
|
||||||
|
x="9"
|
||||||
|
y="1"
|
||||||
|
width="7"
|
||||||
|
height="22"
|
||||||
|
cornerRadiusX="4"
|
||||||
|
cornerRadiusY="4">
|
||||||
|
|
||||||
|
<Stroke
|
||||||
|
color="#FFFFFFFF"
|
||||||
|
thickness="2.5"
|
||||||
|
cap="ROUND"/>
|
||||||
|
|
||||||
|
</RoundRectangle>
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="6"
|
||||||
|
y="19"
|
||||||
|
width="13"
|
||||||
|
height="13">
|
||||||
|
<Fill color="#FFFFFFFF"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
<RoundRectangle
|
||||||
|
x="11"
|
||||||
|
y="8"
|
||||||
|
width="3"
|
||||||
|
height="18"
|
||||||
|
cornerRadiusX="2"
|
||||||
|
cornerRadiusY="2">
|
||||||
|
<Fill color="#FFFFFFFF"/>
|
||||||
|
</RoundRectangle>
|
||||||
|
|
||||||
|
</PartDraw>
|
||||||
|
|
||||||
|
|
||||||
|
<Condition>
|
||||||
|
|
||||||
|
<Expressions>
|
||||||
|
<Expression name="weatherAvailable">
|
||||||
|
[WEATHER.IS_AVAILABLE]
|
||||||
|
</Expression>
|
||||||
|
</Expressions>
|
||||||
|
|
||||||
|
<Compare expression="weatherAvailable">
|
||||||
|
|
||||||
|
<PartText
|
||||||
|
x="33"
|
||||||
|
y="17"
|
||||||
|
width="40"
|
||||||
|
height="44">
|
||||||
|
|
||||||
|
<Text
|
||||||
|
align="CENTER"
|
||||||
|
verticalAlign="CENTER"
|
||||||
|
isAutoSize="TRUE">
|
||||||
|
|
||||||
|
<Font
|
||||||
|
family="SYNC_TO_DEVICE"
|
||||||
|
size="25"
|
||||||
|
weight="BOLD"
|
||||||
|
color="#FFFFFFFF">
|
||||||
|
|
||||||
|
<Template><![CDATA[%d°]]>
|
||||||
|
<Parameter expression="[WEATHER.TEMPERATURE]"/>
|
||||||
|
</Template>
|
||||||
|
|
||||||
|
</Font>
|
||||||
|
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
</PartText>
|
||||||
|
|
||||||
|
</Compare>
|
||||||
|
|
||||||
|
<Default>
|
||||||
|
|
||||||
|
<PartText
|
||||||
|
x="33"
|
||||||
|
y="17"
|
||||||
|
width="40"
|
||||||
|
height="44">
|
||||||
|
|
||||||
|
<Text
|
||||||
|
align="CENTER"
|
||||||
|
verticalAlign="CENTER">
|
||||||
|
|
||||||
|
<Font
|
||||||
|
family="SYNC_TO_DEVICE"
|
||||||
|
size="24"
|
||||||
|
weight="BOLD"
|
||||||
|
color="#FFFFFFFF">
|
||||||
|
—
|
||||||
|
</Font>
|
||||||
|
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
</PartText>
|
||||||
|
|
||||||
|
</Default>
|
||||||
|
|
||||||
|
</Condition>
|
||||||
|
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- BATTERY -->
|
||||||
|
|
||||||
|
<Group
|
||||||
|
name="battery"
|
||||||
|
x="300"
|
||||||
|
y="54"
|
||||||
|
width="80"
|
||||||
|
height="80">
|
||||||
|
|
||||||
|
<Variant
|
||||||
|
mode="AMBIENT"
|
||||||
|
target="alpha"
|
||||||
|
value="0"/>
|
||||||
|
|
||||||
|
<PartDraw
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
width="80"
|
||||||
|
height="80">
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="2"
|
||||||
|
y="4"
|
||||||
|
width="76"
|
||||||
|
height="76">
|
||||||
|
<Fill color="#40000000"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="4"
|
||||||
|
y="0"
|
||||||
|
width="76"
|
||||||
|
height="76">
|
||||||
|
<Fill color="#0000004D"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="5"
|
||||||
|
y="1"
|
||||||
|
width="74"
|
||||||
|
height="74">
|
||||||
|
<Stroke
|
||||||
|
color="#35FFFFFF"
|
||||||
|
thickness="1"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
<Arc
|
||||||
|
centerX="42"
|
||||||
|
centerY="38"
|
||||||
|
width="57"
|
||||||
|
height="57"
|
||||||
|
startAngle="-135"
|
||||||
|
endAngle="135">
|
||||||
|
|
||||||
|
<Stroke
|
||||||
|
color="#35FFFFFF"
|
||||||
|
thickness="3.5"
|
||||||
|
cap="ROUND"/>
|
||||||
|
|
||||||
|
</Arc>
|
||||||
|
|
||||||
|
<Arc
|
||||||
|
centerX="42"
|
||||||
|
centerY="38"
|
||||||
|
width="57"
|
||||||
|
height="57"
|
||||||
|
startAngle="-135"
|
||||||
|
endAngle="-135">
|
||||||
|
|
||||||
|
<Transform
|
||||||
|
target="endAngle"
|
||||||
|
value="-135 + ([BATTERY_PERCENT] * 2.7)"/>
|
||||||
|
|
||||||
|
<Stroke
|
||||||
|
color="#FFFFFFFF"
|
||||||
|
thickness="3.5"
|
||||||
|
cap="ROUND"/>
|
||||||
|
|
||||||
|
</Arc>
|
||||||
|
|
||||||
|
<RoundRectangle
|
||||||
|
x="29"
|
||||||
|
y="31"
|
||||||
|
width="25"
|
||||||
|
height="14"
|
||||||
|
cornerRadiusX="3"
|
||||||
|
cornerRadiusY="3">
|
||||||
|
|
||||||
|
<Stroke
|
||||||
|
color="#FFFFFFFF"
|
||||||
|
thickness="2.5"/>
|
||||||
|
|
||||||
|
</RoundRectangle>
|
||||||
|
|
||||||
|
<RoundRectangle
|
||||||
|
x="54"
|
||||||
|
y="35"
|
||||||
|
width="4"
|
||||||
|
height="6"
|
||||||
|
cornerRadiusX="1"
|
||||||
|
cornerRadiusY="1">
|
||||||
|
|
||||||
|
<Fill color="#FFFFFFFF"/>
|
||||||
|
|
||||||
|
</RoundRectangle>
|
||||||
|
|
||||||
|
</PartDraw>
|
||||||
|
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- STEPS -->
|
||||||
|
|
||||||
|
<Group
|
||||||
|
name="steps"
|
||||||
|
x="145"
|
||||||
|
y="347"
|
||||||
|
width="160"
|
||||||
|
height="66">
|
||||||
|
|
||||||
|
<Variant
|
||||||
|
mode="AMBIENT"
|
||||||
|
target="alpha"
|
||||||
|
value="0"/>
|
||||||
|
|
||||||
|
<PartDraw
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
width="160"
|
||||||
|
height="66">
|
||||||
|
|
||||||
|
<RoundRectangle
|
||||||
|
x="2"
|
||||||
|
y="4"
|
||||||
|
width="156"
|
||||||
|
height="59"
|
||||||
|
cornerRadiusX="30"
|
||||||
|
cornerRadiusY="30">
|
||||||
|
|
||||||
|
<Fill color="#40000000"/>
|
||||||
|
|
||||||
|
</RoundRectangle>
|
||||||
|
|
||||||
|
<RoundRectangle
|
||||||
|
x="2"
|
||||||
|
y="0"
|
||||||
|
width="156"
|
||||||
|
height="58"
|
||||||
|
cornerRadiusX="29"
|
||||||
|
cornerRadiusY="29">
|
||||||
|
|
||||||
|
<Fill color="#0000004D"/>
|
||||||
|
|
||||||
|
</RoundRectangle>
|
||||||
|
|
||||||
|
<RoundRectangle
|
||||||
|
x="3"
|
||||||
|
y="1"
|
||||||
|
width="154"
|
||||||
|
height="56"
|
||||||
|
cornerRadiusX="28"
|
||||||
|
cornerRadiusY="28">
|
||||||
|
|
||||||
|
<Stroke
|
||||||
|
color="#35FFFFFF"
|
||||||
|
thickness="1"/>
|
||||||
|
|
||||||
|
</RoundRectangle>
|
||||||
|
|
||||||
|
</PartDraw>
|
||||||
|
|
||||||
|
|
||||||
|
<PartDraw
|
||||||
|
x="24"
|
||||||
|
y="14"
|
||||||
|
width="38"
|
||||||
|
height="31">
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="6"
|
||||||
|
y="8"
|
||||||
|
width="9"
|
||||||
|
height="15">
|
||||||
|
<Fill color="#FFFFFFFF"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="5"
|
||||||
|
y="3"
|
||||||
|
width="5"
|
||||||
|
height="5">
|
||||||
|
<Fill color="#FFFFFFFF"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="11"
|
||||||
|
y="1"
|
||||||
|
width="5"
|
||||||
|
height="5">
|
||||||
|
<Fill color="#FFFFFFFF"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="24"
|
||||||
|
y="11"
|
||||||
|
width="9"
|
||||||
|
height="15">
|
||||||
|
<Fill color="#FFFFFFFF"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="24"
|
||||||
|
y="6"
|
||||||
|
width="5"
|
||||||
|
height="5">
|
||||||
|
<Fill color="#FFFFFFFF"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
<Ellipse
|
||||||
|
x="30"
|
||||||
|
y="4"
|
||||||
|
width="5"
|
||||||
|
height="5">
|
||||||
|
<Fill color="#FFFFFFFF"/>
|
||||||
|
</Ellipse>
|
||||||
|
|
||||||
|
</PartDraw>
|
||||||
|
|
||||||
|
|
||||||
|
<PartText
|
||||||
|
x="65"
|
||||||
|
y="5"
|
||||||
|
width="78"
|
||||||
|
height="48">
|
||||||
|
|
||||||
|
<Text
|
||||||
|
align="CENTER"
|
||||||
|
verticalAlign="CENTER"
|
||||||
|
isAutoSize="TRUE">
|
||||||
|
|
||||||
|
<Font
|
||||||
|
family="SYNC_TO_DEVICE"
|
||||||
|
size="25"
|
||||||
|
weight="BOLD"
|
||||||
|
color="#FFFFFFFF">
|
||||||
|
|
||||||
|
<Template><![CDATA[%d]]>
|
||||||
|
<Parameter expression="[STEP_COUNT]"/>
|
||||||
|
</Template>
|
||||||
|
|
||||||
|
</Font>
|
||||||
|
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
</PartText>
|
||||||
|
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- AMBIENT -->
|
||||||
|
|
||||||
|
<Group
|
||||||
|
name="ambient_time"
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
width="450"
|
||||||
|
height="450"
|
||||||
|
alpha="0">
|
||||||
|
|
||||||
|
<Variant
|
||||||
|
mode="AMBIENT"
|
||||||
|
target="alpha"
|
||||||
|
value="255"/>
|
||||||
|
|
||||||
|
<PartText
|
||||||
|
x="75"
|
||||||
|
y="175"
|
||||||
|
width="300"
|
||||||
|
height="100">
|
||||||
|
|
||||||
|
<Text
|
||||||
|
align="CENTER"
|
||||||
|
verticalAlign="CENTER"
|
||||||
|
ellipsis="FALSE">
|
||||||
|
|
||||||
|
<Font
|
||||||
|
family="SYNC_TO_DEVICE"
|
||||||
|
size="72"
|
||||||
|
weight="NORMAL"
|
||||||
|
color="#FFFFFFFF">
|
||||||
|
|
||||||
|
<Template><![CDATA[%s:%s]]>
|
||||||
|
<Parameter expression="[HOUR_1_24]"/>
|
||||||
|
<Parameter expression="[MINUTE_Z]"/>
|
||||||
|
</Template>
|
||||||
|
|
||||||
|
</Font>
|
||||||
|
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
</PartText>
|
||||||
|
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
</Scene>
|
||||||
|
|
||||||
|
</WatchFace>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<WatchFaceInfo>
|
||||||
|
<Preview value="@drawable/piggy" />
|
||||||
|
<Editable value="true" />
|
||||||
|
</WatchFaceInfo>
|
||||||
@@ -50,6 +50,7 @@ koin-core = "4.2.2"
|
|||||||
koin-compiler = "1.1.0"
|
koin-compiler = "1.1.0"
|
||||||
kotlin-dsl-version = "5.1.2"
|
kotlin-dsl-version = "5.1.2"
|
||||||
coreKtx = "1.19.0"
|
coreKtx = "1.19.0"
|
||||||
|
watchface = "1.2.1"
|
||||||
workRuntimeKtx = "2.11.2"
|
workRuntimeKtx = "2.11.2"
|
||||||
krpc = "0.10.3"
|
krpc = "0.10.3"
|
||||||
core = "1.19.0"
|
core = "1.19.0"
|
||||||
@@ -82,6 +83,7 @@ androidx-media3-ui = { module = "androidx.media3:media3-ui", version.ref = "medi
|
|||||||
androidx-media3-exoplayer = { module = "androidx.media3:media3-exoplayer", version.ref = "media3" }
|
androidx-media3-exoplayer = { module = "androidx.media3:media3-exoplayer", version.ref = "media3" }
|
||||||
androidx-sqlite-framework = { module = "androidx.sqlite:sqlite-framework", version.ref = "sqlite" }
|
androidx-sqlite-framework = { module = "androidx.sqlite:sqlite-framework", version.ref = "sqlite" }
|
||||||
androidx-sqlite = { module = "androidx.sqlite:sqlite", version.ref = "sqlite" }
|
androidx-sqlite = { module = "androidx.sqlite:sqlite", version.ref = "sqlite" }
|
||||||
|
androidx-watchface = { module = "androidx.wear.watchface:watchface", version.ref = "watchface" }
|
||||||
androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "workRuntimeKtx" }
|
androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "workRuntimeKtx" }
|
||||||
coil-compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil-compose" }
|
coil-compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil-compose" }
|
||||||
com-android-application-gradle-plugin = { module = "com.android.application:com.android.application.gradle.plugin", version.ref = "agp" }
|
com-android-application-gradle-plugin = { module = "com.android.application:com.android.application.gradle.plugin", version.ref = "agp" }
|
||||||
|
|||||||
Reference in New Issue
Block a user