A search (quite a lot), but could you confirme me that it is not possible ?
WatchUi.loadResource("iconX_Y");
Actually I load desired resource with a function :
function getIcons(p_id, p_size) {
if (p_id == 0) {
if (p_size == 32) { return Rez.Drawables.icon0_32;}
if (p_size == 25) { return Rez.Drawables.icon0_24b;}
if (p_size == 24) { return Rez.Drawables.icon0_24;}
}
if (p_id == 1) {
if (p_size == 32) { return Rez.Drawables.icon1_32;}
if (p_size == 25) { return Rez.Drawables.icon1_24b;}
if (p_size == 24) { return Rez.Drawables.icon1_24;}
}
if (p_id == 2) {
if (p_size == 32) { return Rez.Drawables.icon2_32;}
if (p_size == 25) { return Rez.Drawables.icon2_24b;}
if (p_size == 24) { return Rez.Drawables.icon2_24;}
}
...
Note, I tested also with a pre-fteched array, but even if you get better size for "application code", you use more memory, and finally it's better with a function.
Thanks for your confirmation, or new ideas