From 6aa7280967696de9e192bbdbde9534cf9688618e Mon Sep 17 00:00:00 2001 From: huyz Date: Thu, 14 Nov 2024 21:08:18 +0800 Subject: [PATCH] Add some workout icons --- .../gadgetbridge/model/ActivityKind.java | 30 +++++++++---------- .../main/res/drawable/ic_activity_archery.xml | 15 ++++++++++ .../drawable/ic_activity_billiard_pool.xml | 15 ++++++++++ .../main/res/drawable/ic_activity_bowling.xml | 11 +++++++ .../main/res/drawable/ic_activity_curling.xml | 15 ++++++++++ .../main/res/drawable/ic_activity_frisbee.xml | 14 +++++++++ .../res/drawable/ic_activity_hula_hoop.xml | 14 +++++++++ .../res/drawable/ic_activity_ice_skating.xml | 18 +++++++++++ .../drawable/ic_activity_indoor_running.xml | 14 +++++++++ .../drawable/ic_activity_obstacle_race.xml | 17 +++++++++++ .../main/res/drawable/ic_activity_pilates.xml | 14 +++++++++ .../drawable/ic_activity_rock_climbing.xml | 10 +++++++ .../drawable/ic_activity_stair_stepper.xml | 21 +++++++++++++ .../main/res/drawable/ic_activity_stairs.xml | 14 +++++++++ 14 files changed, 207 insertions(+), 15 deletions(-) create mode 100644 app/src/main/res/drawable/ic_activity_archery.xml create mode 100644 app/src/main/res/drawable/ic_activity_billiard_pool.xml create mode 100644 app/src/main/res/drawable/ic_activity_bowling.xml create mode 100644 app/src/main/res/drawable/ic_activity_curling.xml create mode 100644 app/src/main/res/drawable/ic_activity_frisbee.xml create mode 100644 app/src/main/res/drawable/ic_activity_hula_hoop.xml create mode 100644 app/src/main/res/drawable/ic_activity_ice_skating.xml create mode 100644 app/src/main/res/drawable/ic_activity_indoor_running.xml create mode 100644 app/src/main/res/drawable/ic_activity_obstacle_race.xml create mode 100644 app/src/main/res/drawable/ic_activity_pilates.xml create mode 100644 app/src/main/res/drawable/ic_activity_rock_climbing.xml create mode 100644 app/src/main/res/drawable/ic_activity_stair_stepper.xml create mode 100644 app/src/main/res/drawable/ic_activity_stairs.xml diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/ActivityKind.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/ActivityKind.java index b964cec3d..2b2ea83bd 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/ActivityKind.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/ActivityKind.java @@ -67,8 +67,8 @@ public enum ActivityKind { HANDCYCLING_INDOOR(0x04000005, R.string.activity_type_handcycling_indoor), TRANSITION(0x04000006, R.string.activity_type_transition), FITNESS_EQUIPMENT(0x04000007, R.string.activity_type_fitness_equipment), - STAIR_STEPPER(0x04000008, R.string.activity_type_stair_stepper), - PILATES(0x04000009, R.string.activity_type_pilates), + STAIR_STEPPER(0x04000008, R.string.activity_type_stair_stepper, R.drawable.ic_activity_stair_stepper), + PILATES(0x04000009, R.string.activity_type_pilates, R.drawable.ic_activity_pilates), POOL_SWIM(0x0400000a, R.string.activity_type_pool_swimming, R.drawable.ic_activity_swimming), TENNIS(0x0400000b, R.string.activity_type_tennis), PLATFORM_TENNIS(0x0400000c, R.string.activity_type_platform_tennis), @@ -94,12 +94,12 @@ public enum ActivityKind { HUNTING(0x04000023, R.string.activity_type_hunting), FISHING(0x04000024, R.string.activity_type_fishing), INLINE_SKATING(0x04000025, R.string.activity_type_inline_skating), - ROCK_CLIMBING(0x04000026, R.string.activity_type_rock_climbing), + ROCK_CLIMBING(0x04000026, R.string.activity_type_rock_climbing, R.drawable.ic_activity_rock_climbing), CLIMB_INDOOR(0x04000027, R.string.activity_type_climb_indoor), BOULDERING(0x04000028, R.string.activity_type_bouldering), SAIL_RACE(0x0400002a, R.string.activity_type_sail_race, R.drawable.ic_activity_sailing), SAIL_EXPEDITION(0x0400002b, R.string.activity_type_sail_expedition, R.drawable.ic_activity_sailing), - ICE_SKATING(0x0400002c, R.string.activity_type_ice_skating), + ICE_SKATING(0x0400002c, R.string.activity_type_ice_skating, R.drawable.ic_activity_ice_skating), SKY_DIVING(0x0400002d, R.string.activity_type_sky_diving), SNOWSHOE(0x0400002e, R.string.activity_type_snowshoe), SNOWMOBILING(0x0400002f, R.string.activity_type_snowmobiling), @@ -194,20 +194,20 @@ public enum ActivityKind { ROLLER_SKATING(0x04000087, R.string.activity_type_roller_skating), MARTIAL_ARTS(0x04000088, R.string.activity_type_martial_arts), TAI_CHI(0x04000089, R.string.activity_type_tai_chi), - HULA_HOOPING(0x0400008a, R.string.activity_type_hula_hooping), + HULA_HOOPING(0x0400008a, R.string.activity_type_hula_hooping, R.drawable.ic_activity_hula_hoop), DISC_SPORTS(0x0400008b, R.string.activity_type_disc_sports), DARTS(0x0400008c, R.string.activity_type_darts), - ARCHERY(0x0400008d, R.string.activity_type_archery), + ARCHERY(0x0400008d, R.string.activity_type_archery, R.drawable.ic_activity_archery), HORSE_RIDING(0x0400008e, R.string.activity_type_horse_riding), KITE_FLYING(0x0400008f, R.string.activity_type_kite_flying), SWING(0x04000090, R.string.activity_type_swing), - STAIRS(0x04000091, R.string.activity_type_stairs), + STAIRS(0x04000091, R.string.activity_type_stairs, R.drawable.ic_activity_stairs), MIND_AND_BODY(0x04000092, R.string.activity_type_mind_and_body), WRESTLING(0x04000093, R.string.activity_type_wrestling), KABADDI(0x04000094, R.string.activity_type_kabaddi), KARTING(0x04000095, R.string.activity_type_karting), BILLIARDS(0x04000096, R.string.activity_type_billiards), - BOWLING(0x04000097, R.string.activity_type_bowling), + BOWLING(0x04000097, R.string.activity_type_bowling, R.drawable.ic_activity_bowling), SHUTTLECOCK(0x04000098, R.string.activity_type_shuttlecock), HANDBALL(0x04000099, R.string.activity_type_handball), DODGEBALL(0x0400009a, R.string.activity_type_dodgeball), @@ -222,14 +222,14 @@ public enum ActivityKind { JET_SKIING(0x040000a3, R.string.activity_type_jet_skiing), SKATING(0x040000a4, R.string.activity_type_skating), ICE_HOCKEY(0x040000a5, R.string.activity_type_ice_hockey), - CURLING(0x040000a6, R.string.activity_type_curling), + CURLING(0x040000a6, R.string.activity_type_curling, R.drawable.ic_activity_curling), CROSS_COUNTRY_SKIING(0x040000a8, R.string.activity_type_cross_country_skiing), SNOW_SPORTS(0x040000a9, R.string.activity_type_snow_sports), LUGE(0x040000ab, R.string.activity_type_luge), SKATEBOARDING(0x040000ac, R.string.activity_type_skateboarding), PARACHUTING(0x040000ae, R.string.activity_type_parachuting), PARKOUR(0x040000af, R.string.activity_type_parkour), - INDOOR_RUNNING(0x040000b0, R.string.activity_type_indoor_running), + INDOOR_RUNNING(0x040000b0, R.string.activity_type_indoor_running, R.drawable.ic_activity_indoor_running), OUTDOOR_RUNNING(0x040000b1, R.string.activity_type_outdoor_running, R.drawable.ic_activity_running), OUTDOOR_WALKING(0x040000b2, R.string.activity_type_outdoor_walking, R.drawable.ic_activity_hiking), OUTDOOR_CYCLING(0x040000b3, R.string.activity_type_outdoor_cycling, R.drawable.ic_activity_biking), @@ -251,13 +251,13 @@ public enum ActivityKind { FINSWIMMING(0x040000c3, R.string.activity_type_finswimming), FLOWRIDING(0x040000c4, R.string.activity_type_flowriding), FOLK_DANCE(0x040000c5, R.string.activity_type_folk_dance), - FRISBEE(0x040000c6, R.string.activity_type_frisbee), + FRISBEE(0x040000c6, R.string.activity_type_frisbee, R.drawable.ic_activity_frisbee), FUTSAL(0x040000c7, R.string.activity_type_futsal), HACKY_SACK(0x040000c8, R.string.activity_type_hacky_sack), HIP_HOP(0x040000c9, R.string.activity_type_hip_hop), - HULA_HOOP(0x040000ca, R.string.activity_type_hula_hoop), + HULA_HOOP(0x040000ca, R.string.activity_type_hula_hoop, R.drawable.ic_activity_hula_hoop), INDOOR_FITNESS(0x040000cb, R.string.activity_type_indoor_fitness), - INDOOR_ICE_SKATING(0x040000cc, R.string.activity_type_indoor_ice_skating), + INDOOR_ICE_SKATING(0x040000cc, R.string.activity_type_indoor_ice_skating, R.drawable.ic_activity_ice_skating), JAI_ALAI(0x040000cd, R.string.activity_type_jai_alai), JUDO(0x040000ce, R.string.activity_type_judo), JUJITSU(0x040000cf, R.string.activity_type_jujitsu), @@ -284,8 +284,8 @@ public enum ActivityKind { BODY_COMBAT(0x040000e5, R.string.activity_type_body_combat), PLAZA_DANCING(0x040000e6, R.string.activity_type_plaza_dancing), LASER_TAG(0x040000e7, R.string.activity_type_laser_tag), - OBSTACLE_RACE(0x040000e8, R.string.activity_type_obstacle_race), - BILLIARD_POOL(0x040000e9, R.string.activity_type_billiard_pool), + OBSTACLE_RACE(0x040000e8, R.string.activity_type_obstacle_race, R.drawable.ic_activity_obstacle_race), + BILLIARD_POOL(0x040000e9, R.string.activity_type_billiard_pool, R.drawable.ic_activity_billiard_pool), CANOEING(0x040000ea, R.string.activity_type_canoeing), WATER_SCOOTER(0x040000eb, R.string.activity_type_water_scooter), BOBSLEIGH(0x040000ec, R.string.activity_type_bobsleigh), diff --git a/app/src/main/res/drawable/ic_activity_archery.xml b/app/src/main/res/drawable/ic_activity_archery.xml new file mode 100644 index 000000000..d23dff0fc --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_archery.xml @@ -0,0 +1,15 @@ + + + + diff --git a/app/src/main/res/drawable/ic_activity_billiard_pool.xml b/app/src/main/res/drawable/ic_activity_billiard_pool.xml new file mode 100644 index 000000000..e2afb76c1 --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_billiard_pool.xml @@ -0,0 +1,15 @@ + + + + diff --git a/app/src/main/res/drawable/ic_activity_bowling.xml b/app/src/main/res/drawable/ic_activity_bowling.xml new file mode 100644 index 000000000..5220264b5 --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_bowling.xml @@ -0,0 +1,11 @@ + + + diff --git a/app/src/main/res/drawable/ic_activity_curling.xml b/app/src/main/res/drawable/ic_activity_curling.xml new file mode 100644 index 000000000..15243ce1a --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_curling.xml @@ -0,0 +1,15 @@ + + + + diff --git a/app/src/main/res/drawable/ic_activity_frisbee.xml b/app/src/main/res/drawable/ic_activity_frisbee.xml new file mode 100644 index 000000000..1517045aa --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_frisbee.xml @@ -0,0 +1,14 @@ + + + + diff --git a/app/src/main/res/drawable/ic_activity_hula_hoop.xml b/app/src/main/res/drawable/ic_activity_hula_hoop.xml new file mode 100644 index 000000000..2bd45f283 --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_hula_hoop.xml @@ -0,0 +1,14 @@ + + + + diff --git a/app/src/main/res/drawable/ic_activity_ice_skating.xml b/app/src/main/res/drawable/ic_activity_ice_skating.xml new file mode 100644 index 000000000..21125a261 --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_ice_skating.xml @@ -0,0 +1,18 @@ + + + + + diff --git a/app/src/main/res/drawable/ic_activity_indoor_running.xml b/app/src/main/res/drawable/ic_activity_indoor_running.xml new file mode 100644 index 000000000..e6aeb49fd --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_indoor_running.xml @@ -0,0 +1,14 @@ + + + + diff --git a/app/src/main/res/drawable/ic_activity_obstacle_race.xml b/app/src/main/res/drawable/ic_activity_obstacle_race.xml new file mode 100644 index 000000000..1b32d0470 --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_obstacle_race.xml @@ -0,0 +1,17 @@ + + + + + diff --git a/app/src/main/res/drawable/ic_activity_pilates.xml b/app/src/main/res/drawable/ic_activity_pilates.xml new file mode 100644 index 000000000..7f89263d6 --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_pilates.xml @@ -0,0 +1,14 @@ + + + + diff --git a/app/src/main/res/drawable/ic_activity_rock_climbing.xml b/app/src/main/res/drawable/ic_activity_rock_climbing.xml new file mode 100644 index 000000000..f499e1d00 --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_rock_climbing.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_activity_stair_stepper.xml b/app/src/main/res/drawable/ic_activity_stair_stepper.xml new file mode 100644 index 000000000..a2c84ee07 --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_stair_stepper.xml @@ -0,0 +1,21 @@ + + + + + + diff --git a/app/src/main/res/drawable/ic_activity_stairs.xml b/app/src/main/res/drawable/ic_activity_stairs.xml new file mode 100644 index 000000000..caf514fd7 --- /dev/null +++ b/app/src/main/res/drawable/ic_activity_stairs.xml @@ -0,0 +1,14 @@ + + + +