Meshtastic-Android/app/src/main/res/drawable
James Rich 993f659742
feat: add support for Device Hardware json and svg graphics (#1449)
* feat: add support for Device Hardware json and svg graphics

Allows for better hardware device display names, graphics, and indication of support.

* make detekt happy

* Fix: Use first image name to find vector drawable

Use the first image name from the `images` list (after removing the ".svg" suffix) to find the corresponding vector drawable resource.

* Refactor: Update device detail layout

Updated the device detail layout to group device-specific information under a "Device" category.
Added a circular background with device-specific color behind the device icon.
Moved hardware, support status details to the Device section.

* Refactor: Move device hardware logic to MetricsViewModel

Moves the logic for retrieving device hardware information and image resources from NodeDetail to MetricsViewModel.

Also replaces id lookup with when statement for image resource id mapping.

* fix: cache deviceHardwareList, add exception handling

* refactor: mutable list unnecessary

* default to hw_unknown device image
2024-12-10 12:02:57 -03:00
..
cloud_off.xml UI is a little less ugly (but still ugly) 2020-02-10 11:30:10 -08:00
cloud_on.xml UI is a little less ugly (but still ugly) 2020-02-10 11:30:10 -08:00
hw_diy.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_ht62_esp32c3_sx1262.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_mesh_node_t114.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_mesh_node_t114_case.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_v3.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_v3_case.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_vision_master_e213.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_vision_master_e290.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_vision_master_t190.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_wireless_paper.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_wireless_paper_v1_0.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_wireless_tracker.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_wireless_tracker_v1_0.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_heltec_wsl_v3.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_nano_g2_ultra.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_pico.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_promicro.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_rak4631.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_rak4631_case.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_rak11310.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_rak_wismeshtap.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_rpipicow.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_seeed_sensecap_indicator.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_seeed_xiao_s3.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_station_g2.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_t_deck.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_t_echo.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_t_watch_s3.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_tbeam.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_tbeam_s3_core.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_tlora_c6.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_tlora_t3s3_epaper.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_tlora_t3s3_v1.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_tlora_v2_1_1_6.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_tlora_v2_1_1_8.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_tracker_t1000_e.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_unknown.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_wio_tracker_wm1110.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
hw_wm1110_dev_kit.xml feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
ic_antenna_24.xml Display battery level of remote nodes #64 2020-07-01 08:28:06 -04:00
ic_baseline_drag_handle_24.xml Add basic quick chat action settings 2022-08-10 17:34:18 +01:00
ic_baseline_edit_24.xml Add basic quick chat action settings 2022-08-10 17:34:18 +01:00
ic_baseline_location_on_24.xml fix: change vector background color to transparent 2023-04-10 20:35:03 -03:00
ic_battery_alert.xml Improved battery/voltage info in node list (#874) 2024-02-26 19:19:32 -03:00
ic_battery_high.xml Improved battery/voltage info in node list (#874) 2024-02-26 19:19:32 -03:00
ic_battery_low.xml Improved battery/voltage info in node list (#874) 2024-02-26 19:19:32 -03:00
ic_battery_medium.xml Improved battery/voltage info in node list (#874) 2024-02-26 19:19:32 -03:00
ic_battery_outline.xml Improved battery/voltage info in node list (#874) 2024-02-26 19:19:32 -03:00
ic_battery_unknown.xml Improved battery/voltage info in node list (#874) 2024-02-26 19:19:32 -03:00
ic_filled_radioactive_24.xml feat: add EnvironmentMetrics radiation to node detail 2024-12-05 19:39:37 -03:00
ic_launcher2_background.xml switch app launcher to new icon 2021-01-30 14:44:55 +08:00
ic_launcher2_foreground.xml update to latest launcher icon from @thepoweroftwo 2021-02-01 10:31:24 +08:00
ic_lock_open_right_24.xml feat: add encryption status icon and dialog to node list items 2024-09-23 10:13:27 -03:00
ic_map_location_dot_24.xml feat: add custom map navigation icon 2023-08-22 22:52:33 -03:00
ic_map_navigation_24.xml feat: add custom map navigation icon 2023-08-22 22:52:33 -03:00
ic_outlined_dew_point_24.xml feat: add info cards for environment and power metrics 2024-10-19 13:28:16 -03:00
ic_power_plug_24.xml Display power plug icon when no battery #99 2020-07-16 08:50:47 -04:00
ic_satellite.xml Add elevation and number of GPS satellites to node info (#895) 2024-03-07 06:34:43 -03:00
ic_twotone_add_24.xml convert changeRadioButton to fab 2022-01-08 16:18:36 -03:00
ic_twotone_cloud_upload_24.xml node list is ugly but it kinda works 2020-04-08 15:36:49 -07:00
ic_twotone_contactless_24.xml define our four screens 2020-02-16 18:54:29 -08:00
ic_twotone_delete_24.xml add action mode menu to messages (delete select all) 2022-02-28 15:47:52 -03:00
ic_twotone_lock_24.xml channel editing kinda works 2020-03-15 18:44:10 -07:00
ic_twotone_map_24.xml begin adding map view 2020-03-12 11:54:22 -07:00
ic_twotone_message_24.xml define our four screens 2020-02-16 18:54:29 -08:00
ic_twotone_people_24.xml define our four screens 2020-02-16 18:54:29 -08:00
ic_twotone_select_all_24.xml add action mode menu to messages (delete select all) 2022-02-28 15:47:52 -03:00
ic_twotone_send_24.xml update send icon 2022-01-26 02:38:15 -03:00
ic_twotone_settings_applications_24.xml define our four screens 2020-02-16 18:54:29 -08:00
ic_twotone_sort_24.xml feat: add nodelist sort options 2024-06-02 09:24:22 -03:00
ic_twotone_visibility_24.xml feat: add password TextField 2023-07-27 06:47:34 -03:00
ic_twotone_visibility_off_24.xml feat: add password TextField 2023-07-27 06:47:34 -03:00
ic_twotone_volume_off_24.xml feat: add ActionMenu option to mute contacts (#1003) 2024-04-28 16:18:16 -03:00
ic_twotone_volume_up_24.xml feat: add ActionMenu option to mute contacts (#1003) 2024-04-28 16:18:16 -03:00