Activity: added scooter (incl. icon).

Fixes #1695.
This commit is contained in:
Dennis Guse
2023-09-23 21:52:00 +02:00
parent 10e65035ee
commit 165dd401f4
6 changed files with 726 additions and 0 deletions
@@ -17,6 +17,7 @@ public enum ActivityIcon {
UNKNOWN("UNKNOWN", R.drawable.ic_logo_24dp),
WALK("WALK", R.drawable.ic_activity_walk_24dp),
ESCOOTER("ESCOOTER", R.drawable.ic_activity_escooter_24dp),
KICKSCOOTER("KICKSCOOTER", R.drawable.ic_activity_scooter_24dp),
INLINE_SKATING("INLINES_SKATING", R.drawable.ic_activity_inline_skating_24dp),
SKATE_BOARDING("SKATE_BOARDING", R.drawable.ic_activity_skateboarding_24dp),
CLIMBING("CLIMBING", R.drawable.ic_activity_climbing_24dp),
@@ -58,6 +58,7 @@ public enum ActivityType {
ROWING("rowing", R.string.activity_type_rowing, ActivityIcon.UNKNOWN, true),
RUNNING("running", R.string.activity_type_running, ActivityIcon.RUN, false),
SAILING("sailing", R.string.activity_type_sailing, ActivityIcon.SAILING, true),
KICKSCOOTER("kickscooter", R.string.activity_type_kickscooter, ActivityIcon.KICKSCOOTER, true),
SEAPLANE("seaplane", R.string.activity_type_seaplane, ActivityIcon.AIRPLANE, true),
SKATE_BOARDING("skate boarding", R.string.activity_type_skate_boarding, ActivityIcon.SKATE_BOARDING, true),
SKATING("skating", R.string.activity_type_skating, ActivityIcon.UNKNOWN, true),
@@ -47,6 +47,7 @@ public class ChooseActivityTypeDialogFragment extends DialogFragment implements
ActivityType.SNOW_BOARDING,
ActivityType.SKIING,
ActivityType.WALKING,
ActivityType.KICKSCOOTER,
ActivityType.ESCOOTER,
ActivityType.INLINE_SKATING,
ActivityType.SKATE_BOARDING,
@@ -0,0 +1,239 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="5.8208"
android:viewportHeight="5.8208">
<path
android:pathData="m-1.3253,1.5033 l-0.4101,0.6834a0.1285,0.1285 60.4819,0 0,0.1102 0.1945l0.2496,-0 -0.11,0.5496a0.0898,0.0898 21.1422,0 0,0.1651 0.0638L-0.9105,2.3112A0.1285,0.1285 60.4819,0 0,-1.0206 2.1167H-1.2702L-1.1602,1.5671a0.0898,0.0898 21.1422,0 0,-0.1651 -0.0638z"
android:strokeLineJoin="round"
android:strokeWidth="0.264583"
android:fillColor="#fdbc4b"
android:strokeColor="#00000000"
android:strokeLineCap="round"/>
<path
android:pathData="M14.7722,-15.5564l26.5377,0l0,30.6204l-26.5377,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.6652"
android:fillColor="#cacaca"
android:strokeLineCap="square"/>
<path
android:pathData="M15.7928,-14.5358l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#e74c3c"
android:strokeLineCap="square"/>
<path
android:pathData="M19.8755,-14.5358l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#ed1515"
android:strokeLineCap="square"/>
<path
android:pathData="M23.9583,-14.5358l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#f47750"
android:strokeLineCap="square"/>
<path
android:pathData="M28.041,-14.5358l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#fdbc4b"
android:strokeLineCap="square"/>
<path
android:pathData="M32.1237,-14.5358l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#c9ce3b"
android:strokeLineCap="square"/>
<path
android:pathData="M15.7928,-10.453l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#da4453"
android:strokeLineCap="square"/>
<path
android:pathData="M19.8755,-10.453l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#c0392b"
android:strokeLineCap="square"/>
<path
android:pathData="M23.9583,-10.453l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#d35400"
android:strokeLineCap="square"/>
<path
android:pathData="M28.041,-10.453l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#f67400"
android:strokeLineCap="square"/>
<path
android:pathData="M32.1237,-10.453l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#f39c1f"
android:strokeLineCap="square"/>
<path
android:pathData="M15.7928,-4.329l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#1cdc9a"
android:strokeLineCap="square"/>
<path
android:pathData="M19.8755,-4.329l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#2ecc71"
android:strokeLineCap="square"/>
<path
android:pathData="M23.9583,-4.329l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#1abc9c"
android:strokeLineCap="square"/>
<path
android:pathData="M28.041,-4.329l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#3498db"
android:strokeLineCap="square"/>
<path
android:pathData="M32.1237,-4.329l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#3daee9"
android:strokeLineCap="square"/>
<path
android:pathData="M15.7928,-0.2463l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#10d116"
android:strokeLineCap="square"/>
<path
android:pathData="M19.8755,-0.2463l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#27ae60"
android:strokeLineCap="square"/>
<path
android:pathData="M23.9583,-0.2463l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#16a085"
android:strokeLineCap="square"/>
<path
android:pathData="M28.041,-0.2463l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#2980b9"
android:strokeLineCap="square"/>
<path
android:pathData="M32.1237,-0.2463l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#1d99f3"
android:strokeLineCap="square"/>
<path
android:pathData="M36.2064,-4.329l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#9b59b6"
android:strokeLineCap="square"/>
<path
android:pathData="M36.2064,-0.2463l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#8e44ad"
android:strokeLineCap="square"/>
<path
android:pathData="M15.7928,5.8778l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#34495e"
android:strokeLineCap="square"/>
<path
android:pathData="M19.8756,5.8778l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#31363b"
android:strokeLineCap="square"/>
<path
android:pathData="M23.9583,5.8778l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#7f8c8d"
android:strokeLineCap="square"/>
<path
android:pathData="M28.041,5.8778l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#bdc3c7"
android:strokeLineCap="square"/>
<path
android:pathData="M32.1237,5.8778l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#fcfcfc"
android:strokeLineCap="square"/>
<path
android:pathData="M15.7928,9.9605l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#2c3e50"
android:strokeLineCap="square"/>
<path
android:pathData="M19.8756,9.9605l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#232629"
android:strokeLineCap="square"/>
<path
android:pathData="M23.9583,9.9605l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#4d4d4d"
android:strokeLineCap="square"/>
<path
android:pathData="M28.041,9.9605l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#95a5a6"
android:strokeLineCap="square"/>
<path
android:pathData="M32.1237,9.9605l4.0827,0l0,4.0827l-4.0827,0z"
android:strokeLineJoin="round"
android:strokeWidth="5.7692"
android:fillColor="#eff0f1"
android:strokeLineCap="square"/>
<path
android:pathData="M3.7026,1.1906A0.1323,0.1323 0,0 0,3.5858 1.264A0.1323,0.1323 0,0 0,3.6453 1.4413L3.9445,1.5911C4.0556,1.6468 4.1371,1.748 4.1672,1.8686L4.6013,3.6044C4.0697,3.6801 3.6613,4.0946 3.5987,4.6302L2.2221,4.6302C2.1532,4.0395 1.668,3.5724 1.0594,3.5719C1.0537,3.5718 1.048,3.5718 1.0423,3.5719L0.5292,3.5719A0.1323,0.1323 0,0 0,0.3969 3.7042A0.1323,0.1323 0,0 0,0.5292 3.8365L1.0423,3.8365A0.1323,0.1323 0,0 0,1.0433 3.8365C1.048,3.8364 1.0526,3.8364 1.0573,3.8365A0.1323,0.1323 0,0 0,1.0583 3.8365C1.5713,3.8365 1.9844,4.2495 1.9844,4.7625A0.1323,0.1323 0,0 0,2.1167 4.8948L3.7042,4.8948A0.1323,0.1323 0,0 0,3.8365 4.7625C3.8365,4.2495 4.2495,3.8365 4.7625,3.8365A0.1323,0.1323 0,0 0,4.8907 3.6721L4.4235,1.8045C4.3747,1.6092 4.2433,1.4446 4.0633,1.3544A0.1323,0.1323 0,0 0,4.0628 1.3544L3.7631,1.2046A0.1323,0.1323 0,0 0,3.7026 1.1906z"
android:strokeLineJoin="round"
android:strokeWidth="0.265"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:fillType="nonZero"
android:strokeLineCap="round"/>
<path
android:pathData="M4.7617,4.1367C4.4266,4.1367 4.1523,4.4109 4.1523,4.7461C4.1523,5.0812 4.4266,5.3555 4.7617,5.3555C5.0969,5.3555 5.3711,5.0812 5.3711,4.7461C5.3711,4.4109 5.0969,4.1367 4.7617,4.1367zM4.7617,4.3379C4.9879,4.3379 5.168,4.5199 5.168,4.7461C5.168,4.9723 4.9879,5.1543 4.7617,5.1543C4.5355,5.1543 4.3535,4.9723 4.3535,4.7461C4.3535,4.5199 4.5355,4.3379 4.7617,4.3379z"
android:strokeAlpha="0.997"
android:strokeLineJoin="round"
android:strokeWidth="0.201567"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:fillType="nonZero"
android:fillAlpha="0.997"
android:strokeLineCap="butt"/>
<path
android:pathData="m1.0222,4.1367c-0.3352,0 -0.6094,0.2742 -0.6094,0.6094 0,0.3352 0.2742,0.6094 0.6094,0.6094 0.3352,-0 0.6094,-0.2742 0.6094,-0.6094 -0,-0.3352 -0.2742,-0.6094 -0.6094,-0.6094zM1.0222,4.3379c0.2262,0 0.4062,0.182 0.4063,0.4082 -0,0.2262 -0.18,0.4082 -0.4063,0.4082 -0.2262,0 -0.4082,-0.182 -0.4082,-0.4082 0,-0.2262 0.182,-0.4082 0.4082,-0.4082z"
android:strokeAlpha="0.997"
android:strokeLineJoin="round"
android:strokeWidth="0.201567"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:fillType="nonZero"
android:fillAlpha="0.997"
android:strokeLineCap="butt"/>
</vector>
+1
View File
@@ -117,6 +117,7 @@ limitations under the License.
<string name="activity_type_driving_bus">driving bus</string>
<string name="activity_type_driving_car">driving car</string>
<string name="activity_type_escooter">escooter</string>
<string name="activity_type_kickscooter">scooter</string>
<string name="activity_type_ferry">ferry</string>
<string name="activity_type_frisbee">frisbee</string>
<string name="activity_type_gliding">gliding</string>