Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drawable is show very fast in android studio project #349

Open
samantrader opened this issue Sep 2, 2021 · 0 comments
Open

drawable is show very fast in android studio project #349

samantrader opened this issue Sep 2, 2021 · 0 comments

Comments

@samantrader
Copy link

samantrader commented Sep 2, 2021

Hi

i create a vector drawable with shape shifter and show good in shape shifter but when export
and use in android project animation show very very fast

where is problem ?

my drawable

<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt"> <aapt:attr name="android:drawable"> <vector android:name="vector" android:width="340dp" android:height="82dp" android:viewportWidth="340" android:viewportHeight="82"> <group android:name="group"> <path android:name="path" android:pathData="M 133.12 10.14 C 136.15 10 139.19 10.03 142.24 10.04 C 142.15 10.47 141.97 11.34 141.89 11.78 C 141.43 13.94 141.22 16.14 140.99 18.34 C 138.31 18.4 135.62 18.35 132.94 18.31 L 131.54 18.29 C 132 15.56 132.59 12.85 133.12 10.14 Z M 144.37 10.16 C 147.43 9.99 150.5 10.02 153.56 10.02 C 153.44 11.23 153.27 12.44 153.07 13.64 C 152.74 15.23 152.39 16.81 152.06 18.39 C 149.03 18.42 146 18.38 142.97 18.28 C 143.2 16.81 143.43 15.33 143.68 13.85 C 143.9 12.62 144.13 11.39 144.37 10.16 Z M 170.84 10.04 C 173.8 10.04 176.77 10.04 179.73 10.01 L 179.56 10.91 C 179.09 13.49 178.78 16.09 178.52 18.69 C 176.59 18.62 174.66 18.56 172.74 18.53 C 171.54 18.52 170.35 18.51 169.15 18.51 C 169.59 15.66 170.24 12.85 170.84 10.04 Z M 193.01 14.15 C 196.66 14.1 200.32 14.11 203.97 14.12 C 203.9 14.53 203.75 15.35 203.68 15.77 C 202.7 24.55 199.87 33.05 199.21 41.86 C 198.57 45.27 202.72 45.59 204.99 44.64 C 206.47 42.94 207.38 40.85 207.75 38.64 C 208.9 32.86 210.12 27.09 211.26 21.31 C 217.53 21.35 223.82 21.04 230.08 21.54 C 233.71 21.83 237.68 23.11 239.72 26.34 C 241.75 31.69 240.92 37.7 239.03 42.97 C 236.97 48.65 231.72 53 225.7 53.75 C 220.66 55.07 215.59 52.82 210.53 53.6 C 203.4 54.63 196.03 54.82 189 53.07 C 188.31 51.94 187.58 50.82 187 49.64 C 186.92 41.07 189.67 32.86 191.06 24.48 C 191.61 21.02 192.37 17.6 193.01 14.15 M 225.33 28.41 C 222.41 30.36 222.24 34.17 221.46 37.26 C 220.98 40.21 219.8 43.31 220.66 46.29 C 222.07 47.6 224.6 46.92 225.26 45.1 C 226.93 41.29 227.39 37.05 227.97 32.96 C 228.18 31.19 227.99 27.65 225.33 28.41 Z M 247.94 14.17 C 251.59 13.98 255.25 13.81 258.9 14.16 C 258.82 14.57 258.66 15.4 258.58 15.81 C 257.69 20.51 257.15 25.28 256.08 29.95 C 255.18 34.45 253.79 38.98 254.27 43.61 C 255.4 45.79 258.12 45.1 260 44.57 C 262.4 41.78 262.74 38.03 263.47 34.58 C 264.29 30.29 265.29 26.04 266.03 21.73 C 269.65 21.6 273.28 21.6 276.91 21.72 L 276.72 22.8 C 275.86 30.94 273.14 38.83 273.18 47.06 C 274.53 46.84 275.99 46.92 277.26 46.3 C 278.75 44.28 279.03 41.68 279.58 39.3 C 280.37 34.92 281.39 30.59 282.12 26.21 C 282.33 24.79 282.53 23.37 282.71 21.95 C 286.38 21.43 290.1 21.64 293.8 21.73 L 293.58 22.83 C 292.62 30.96 289.9 38.86 290.09 47.09 C 291.93 46.86 294.34 47 294.88 44.72 C 296.87 38.41 297.73 31.79 299.11 25.32 C 299.2 24.44 299.4 22.67 299.5 21.78 L 300.11 21.78 C 303.51 21.78 306.91 21.8 310.31 21.87 C 309.03 32.8 306.6 43.57 304.18 54.3 C 298.44 54.16 292.7 54.48 286.98 54.16 C 284.04 54.11 281.47 52.63 279.06 51.13 C 276.53 52.44 273.96 54.13 270.99 54.05 C 262.63 53.39 254.24 55.12 245.89 53.87 C 244.09 53.16 242.59 51.65 242.05 49.77 C 241.39 42.8 243.92 36.12 245 29.33 C 245.84 24.25 246.94 19.22 247.94 14.17 Z M 46.71 21.54 C 50.21 21.53 53.71 21.42 57.21 21.48 C 56.06 30.2 54.55 38.86 52.68 47.46 C 51.43 53.03 51.13 59.54 46.55 63.58 C 43.75 66.42 39.49 65.57 35.91 65.66 C 35.23 65.64 33.88 65.61 33.2 65.59 C 33.73 62.9 34.33 60.22 34.78 57.51 C 37.18 56.61 39.86 55.35 40.36 52.53 C 42.64 42.24 44.6 31.87 46.71 21.54 Z M 61.11 24.24 C 61.26 23.54 61.55 22.15 61.7 21.46 C 68.79 21.71 75.91 21.26 82.99 21.68 C 85.75 21.92 87.57 24.3 88.33 26.78 C 88.51 32.83 85.44 38.88 87.16 44.84 C 87.63 44.84 88.55 44.82 89.02 44.82 C 91.8 45.32 94.24 43.35 94.7 40.64 C 96.12 34.4 97.43 28.11 98.49 21.79 L 99.1 21.79 C 102.48 21.78 105.86 21.8 109.24 21.88 C 108.48 28.81 107.05 35.65 105.61 42.46 C 104.78 46.12 103.53 50.07 100.38 52.4 C 97.39 54.56 93.49 54.27 90 54.32 C 79.27 54.09 68.53 54.48 57.81 53.79 L 55.53 53.71 C 56.25 50.87 56.76 47.98 57.22 45.09 C 61.6 44.92 66.19 45.81 70.44 44.46 C 73.75 42.24 73.74 37.82 73.94 34.26 C 73.64 32.98 73.61 31.39 72.25 30.72 C 68.19 30.16 64.06 30.27 59.98 29.95 C 60.35 28.05 60.73 26.14 61.11 24.24 Z M 120.86 21.71 C 124.36 21.85 127.87 21.83 131.37 21.84 C 130.99 29.52 128 36.88 128.4 44.62 C 130.26 44.87 132.17 45.15 134.04 44.74 C 138.29 39.58 137.55 32.29 139.49 26.17 C 140.05 24.79 139.82 22.8 141.18 21.93 C 144.46 21.48 147.79 21.69 151.08 21.89 C 151.1 22.4 151.14 23.43 151.16 23.94 C 151.06 24.35 150.87 25.17 150.77 25.58 C 148.15 33.64 148.45 42.66 144.11 50.1 C 140.02 56.19 131.7 53.81 125.53 54.34 C 124.44 57.92 123.32 61.87 120.15 64.19 C 117.5 66.31 113.87 65.72 110.71 65.81 C 109.55 65.75 108.39 65.64 107.23 65.49 C 107.86 62.79 108.44 60.08 109.04 57.37 C 110.89 56.65 113.1 56 113.93 53.99 C 115 51.47 115.28 48.71 115.87 46.06 C 117.44 37.92 119.38 29.86 120.86 21.71 M 143.41 25.37 C 142.01 32.16 140.81 38.99 139.27 45.76 C 140.44 45.74 141.6 45.73 142.77 45.72 C 144.26 38.51 145.8 31.3 146.9 24.02 C 145.83 24.54 143.68 23.86 143.41 25.37 Z M 157.78 21.65 C 161.28 21.83 164.79 21.85 168.3 21.86 C 167.92 29.55 164.92 36.92 165.38 44.67 C 167.24 44.9 169.14 45.15 171 44.71 C 175.03 39.84 174.35 32.99 176.25 27.23 C 176.64 25.46 176.96 23.68 177.27 21.9 C 180.92 21.79 184.58 21.82 188.23 21.71 C 188.11 22.28 187.87 23.41 187.76 23.98 C 186.48 31.16 185.35 38.38 183.5 45.44 C 182.39 49.88 178.75 53.86 173.98 54.12 C 168.32 54.5 162.6 54.43 156.95 53.81 C 153.53 52.45 152.43 48.31 153.07 44.98 C 154.25 37.13 156.41 29.46 157.78 21.65 Z M 79.24 57.21 C 81.89 57.2 84.55 57.17 87.2 57.13 C 86.91 59.95 86.61 62.78 86.41 65.62 C 84.25 65.64 82.1 65.64 79.94 65.64 C 79.2 65.65 77.72 65.65 76.98 65.65 C 77.26 63.38 77.61 61.12 77.92 58.85 L 79.24 57.21 Z M 89.7 57.41 C 92.72 57.15 95.75 57.16 98.78 57.21 C 98.25 60.03 97.83 62.88 97.57 65.75 C 94.42 65.65 91.28 65.58 88.13 65.61 C 88.71 62.89 89.3 60.17 89.7 57.41 Z" android:fillColor="#ffffff" android:strokeColor="#58abb4" android:strokeWidth="3" android:trimPathEnd="0"/> </group> <group android:name="group_1"> <path android:name="path_1" android:pathData="M 178.52 18.69 C 178.78 16.09 179.09 13.49 179.56 10.91 C 180.63 12.69 181.93 14.33 182.76 16.24 C 182.83 17.88 182.58 19.5 182.41 21.13 C 184.36 21.21 186.3 21.37 188.23 21.71 C 184.58 21.82 180.92 21.79 177.27 21.9 C 176.96 23.68 176.64 25.46 176.25 27.23 C 177.78 23.14 171.72 22.35 172.74 18.53 C 174.66 18.56 176.59 18.62 178.52 18.69 Z M 140.99 18.34 C 141.22 16.14 141.43 13.94 141.89 11.78 C 141.99 12.53 142.21 14.04 142.32 14.79 C 142.66 14.56 143.34 14.09 143.68 13.85 C 143.43 15.33 143.2 16.81 142.97 18.28 C 146 18.38 149.03 18.42 152.06 18.39 C 152.39 16.81 152.74 15.23 153.07 13.64 C 154.3 14.62 155.93 15.39 156.41 17.01 C 156.29 20.2 153.52 22.25 151.16 23.94 C 151.14 23.43 151.1 22.4 151.08 21.89 C 147.79 21.69 144.46 21.48 141.18 21.93 C 139.82 22.8 140.05 24.79 139.49 26.17 C 139.31 25.49 138.95 24.12 138.77 23.44 C 137.76 23.07 136.76 22.69 135.75 22.3 C 134.97 20.86 134.09 19.48 132.94 18.31 C 135.62 18.35 138.31 18.4 140.99 18.34 Z M 199.21 41.86 C 199.87 33.05 202.7 24.55 203.68 15.77 C 205.11 17.35 207.66 18.62 207.54 21.07 C 206.71 28.7 203.95 36.08 203.52 43.74 C 203.89 43.97 204.62 44.42 204.99 44.64 C 202.72 45.59 198.57 45.27 199.21 41.86 Z M 256.08 29.95 C 257.15 25.28 257.69 20.51 258.58 15.81 C 259.64 16.93 261.12 17.8 261.7 19.28 C 262.57 27.58 258.61 35.43 258.4 43.63 C 258.8 43.87 259.6 44.34 260 44.57 C 258.12 45.1 255.4 45.79 254.27 43.61 C 253.79 38.98 255.18 34.45 256.08 29.95 Z M 57.21 21.48 L 57.34 20.78 C 57.48 21.66 57.77 23.41 57.91 24.29 C 58.71 24.28 60.31 24.25 61.11 24.24 C 60.73 26.14 60.35 28.05 59.98 29.95 C 64.06 30.27 68.19 30.16 72.25 30.72 C 73.61 31.39 73.64 32.98 73.94 34.26 C 71.64 34.42 69.31 34.69 67.02 34.39 C 64.52 33.3 62.28 31.65 59.61 30.95 C 58.76 35.66 57.93 40.36 57.22 45.09 C 56.76 47.98 56.25 50.87 55.53 53.71 C 53.78 58.87 52.85 64.82 48.68 68.68 C 44.74 71.2 36.45 71.96 35.91 65.66 C 39.49 65.57 43.75 66.42 46.55 63.58 C 51.13 59.54 51.43 53.03 52.68 47.46 C 54.55 38.86 56.06 30.2 57.21 21.48 Z" android:fillColor="#58abb4" android:strokeWidth="1"/> <path android:name="path_2" android:pathData="M 99.1 21.79 C 102.59 21.01 106.18 21.5 109.71 21.34 C 109.73 21.99 109.78 23.28 109.8 23.93 C 111.24 25.8 113.26 27.81 112.49 30.42 C 111.31 36.5 110.16 42.61 108.68 48.63 C 107.69 53.55 103.05 56.15 100.04 59.74 C 102.12 62.44 103.02 66.64 100.07 69.08 C 96.37 72 91.9 68.46 87.83 69.82 C 85.37 70.52 82.85 70.32 80.43 69.62 C 80.27 68.29 80.11 66.97 79.94 65.64 C 82.1 65.64 84.25 65.64 86.41 65.62 C 86.61 62.78 86.91 59.95 87.2 57.13 C 84.55 57.17 81.89 57.2 79.24 57.21 L 77.92 58.85 C 72.22 58.33 66.44 59.2 60.78 58.26 C 58.65 57.86 58.5 55.42 57.81 53.79 C 68.53 54.48 79.27 54.09 90 54.32 C 93.49 54.27 97.39 54.56 100.38 52.4 C 103.53 50.07 104.78 46.12 105.61 42.46 C 107.05 35.65 108.48 28.81 109.24 21.88 C 105.86 21.8 102.48 21.78 99.1 21.79 M 89.7 57.41 C 89.3 60.17 88.71 62.89 88.13 65.61 C 91.28 65.58 94.42 65.65 97.57 65.75 C 97.83 62.88 98.25 60.03 98.78 57.21 C 95.75 57.16 92.72 57.15 89.7 57.41 Z M 120.86 21.71 C 124.45 21.09 128.1 21.47 131.72 21.33 C 131.96 22.39 132.21 23.44 132.46 24.49 C 133.2 25.12 133.91 25.77 134.59 26.46 C 135.32 31.08 133.76 35.59 132.89 40.08 C 132.27 41.77 132.9 43.44 134.04 44.74 C 132.17 45.15 130.26 44.87 128.4 44.62 C 128 36.88 130.99 29.52 131.37 21.84 C 127.87 21.83 124.36 21.85 120.86 21.71 Z M 157.78 21.65 C 161.34 21.24 164.93 21.37 168.51 21.36 C 168.57 23.83 170.72 25.22 171.67 27.25 C 172.11 31.62 170.64 35.83 169.84 40.07 C 169.21 41.76 169.95 43.39 171 44.71 C 169.14 45.15 167.24 44.9 165.38 44.67 C 164.92 36.92 167.92 29.55 168.3 21.86 C 164.79 21.85 161.28 21.83 157.78 21.65 Z M 300.11 21.78 C 303.59 21.06 307.17 21.47 310.7 21.33 C 310.77 22.48 310.86 23.62 310.95 24.77 C 312.22 26.16 314.17 27.5 313.59 29.67 C 312.47 36.91 310.64 44.04 309.41 51.27 C 308.75 53.92 308.46 57.83 305.08 58.29 C 298 59.07 290.65 59.24 283.74 57.29 C 281.42 56.58 279.08 57.53 276.8 57.93 C 273.9 58.64 270.91 58.4 267.96 58.45 C 261.95 58.48 255.88 59.28 249.91 58.28 C 247.67 57.92 245.87 56.23 245.89 53.87 C 254.24 55.12 262.63 53.39 270.99 54.05 C 273.96 54.13 276.53 52.44 279.06 51.13 C 281.47 52.63 284.04 54.11 286.98 54.16 C 292.7 54.48 298.44 54.16 304.18 54.3 C 306.6 43.57 309.03 32.8 310.31 21.87 C 306.91 21.8 303.51 21.78 300.11 21.78 Z" android:fillColor="#58abb4" android:strokeWidth="1"/> <path android:name="path_3" android:pathData="M 273.18 47.06 C 273.14 38.83 275.86 30.94 276.72 22.8 C 277.86 24.86 279.84 25.91 282.12 26.21 C 281.39 30.59 280.37 34.92 279.58 39.3 C 279.03 41.68 278.75 44.28 277.26 46.3 C 275.99 46.92 274.53 46.84 273.18 47.06 Z M 290.09 47.09 C 289.9 38.86 292.62 30.96 293.58 22.83 C 294.81 24.77 296.72 26.38 299.11 25.32 C 297.73 31.79 296.87 38.41 294.88 44.72 C 294.34 47 291.93 46.86 290.09 47.09 Z M 143.41 25.37 C 143.68 23.86 145.83 24.54 146.9 24.02 C 145.8 31.3 144.26 38.51 142.77 45.72 C 141.6 45.73 140.44 45.74 139.27 45.76 C 140.81 38.99 142.01 32.16 143.41 25.37 Z M 183.5 45.44 C 185.35 38.38 186.48 31.16 187.76 23.98 C 188.85 24.17 189.95 24.35 191.06 24.48 C 189.67 32.86 186.92 41.07 187 49.64 C 185.06 55.37 178.8 58.41 173.04 58.46 C 167.88 58.5 162.34 58.95 157.62 56.44 C 157.45 55.78 157.12 54.47 156.95 53.81 C 162.6 54.43 168.32 54.5 173.98 54.12 C 178.75 53.86 182.39 49.88 183.5 45.44 Z" android:fillColor="#58abb4" android:strokeWidth="1"/> <path android:name="path_4" android:pathData="M 144.11 50.1 C 148.45 42.66 148.15 33.64 150.77 25.58 C 151.44 25.93 152.79 26.62 153.47 26.97 C 153.88 32.39 151.96 37.55 151.11 42.83 C 149.99 47.97 148.81 54.12 143.74 56.86 C 139.43 59.36 134.34 57.9 129.69 58.76 C 126.44 61.88 125.79 67.61 120.93 69.13 C 117.42 70.91 110.93 70.96 110.71 65.81 C 113.87 65.72 117.5 66.31 120.15 64.19 C 123.32 61.87 124.44 57.92 125.53 54.34 C 131.7 53.81 140.02 56.19 144.11 50.1 Z M 239.72 26.34 C 241.4 27.47 243.15 28.5 245 29.33 C 243.92 36.12 241.39 42.8 242.05 49.77 C 238.99 52.53 236.3 56.04 232.22 57.31 C 228.31 58.79 224.08 58.5 219.99 58.34 C 211.67 57.86 203.3 59.58 195 58.27 C 192.16 57.8 190.59 55.18 189 53.07 C 196.03 54.82 203.4 54.63 210.53 53.6 C 215.59 52.82 220.66 55.07 225.7 53.75 C 231.72 53 236.97 48.65 239.03 42.97 C 240.92 37.7 241.75 31.69 239.72 26.34 Z M 88.33 26.78 C 90.66 28.7 91.8 31.87 91.14 34.83 C 90.4 38.14 90.81 41.81 89.02 44.82 C 88.55 44.82 87.63 44.84 87.16 44.84 C 85.44 38.88 88.51 32.83 88.33 26.78 Z" android:fillColor="#58abb4" android:strokeWidth="1"/> <path android:name="path_5" android:pathData="M 225.33 28.41 C 227.99 27.65 228.18 31.19 227.97 32.96 C 227.39 37.05 226.93 41.29 225.26 45.1 C 224.6 46.92 222.07 47.6 220.66 46.29 C 219.8 43.31 220.98 40.21 221.46 37.26 C 222.24 34.17 222.41 30.36 225.33 28.41 Z" android:fillColor="#58abb4" android:strokeWidth="1"/> </group> </vector> </aapt:attr> <target android:name="path"> <aapt:attr name="android:animation"> <objectAnimator android:propertyName="trimPathEnd" android:startOffset="1" android:duration="1999" android:valueFrom="0" android:valueTo="1" android:valueType="floatType" android:interpolator="@android:interpolator/fast_out_slow_in"/> </aapt:attr> </target> </animated-vector>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant