Pour ajouter les fleches sur le tracé, je dois également leur appliquer une rotation pour suivre le direction du tracé.
J'ai vu que OSMBonusPack permet d'utiliser des objets "Marker" et d'appliquer dessus "setRotation(X°)".
Par contre dès lors que j'essaie d'instancier un variable de type "Marker", j'ai un message d'erreur :
Après une petite recherche, cela proviendrait de fichier manuant. En lisant la doc, on peut lire :Erreur ..... : Resource ID #0x0
Je modifie l'assistant :First of all, you MUST put in your project res directory all resources needed for the default InfoWindow or "bubble":
in your res/layout: bonuspack_bubble.xml
in res/drawable-mpi:
bonuspack_bubble.9.png
moreinfo_arrow.png
moreinfo_arrow_pressed.png
in res/drawable: btn_moreinfo.xml
Lorsque je joins les fichiers dans l'assistant de génération de l'application, j'ai un message :D:\Mes Projets Mobile\OSM 4\Exe\bonuspack_bubble.xml X layout Intégré dans l'application
D:\Mes Projets Mobile\OSM 4\Exe\bonuspack_bubble.9.png X drawable-mdpi Intégré dans l'application
D:\Mes Projets Mobile\OSM 4\Exe\moreinfo_arrow.png X drawable-mdpi Intégré dans l'application
D:\Mes Projets Mobile\OSM 4\Exe\moreinfo_arrow_pressed.png X drawable-mdpi Intégré dans l'application
D:\Mes Projets Mobile\OSM 4\Exe\btn_moreinfo.xml X drawable Intégré dans l'application
Aurais tu déjà rencontrer ce problème ?Erreur retournée :
D:\Mes Projets Mobile\OSM 4\Android\Generation\res\layout\bonuspack_bubble_4.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/bonuspack_bubble').
D:\Mes Projets Mobile\OSM 4\Android\Generation\res\layout\bonuspack_bubble_4.xml:28: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/btn_moreinfo').
D:\Mes Projets Mobile\OSM 4\Android\Generation\res\drawable\btn_moreinfo_3.xml:3: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/moreinfo_arrow_pressed').
D:\Mes Projets Mobile\OSM 4\Android\Generation\res\drawable\btn_moreinfo_3.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/moreinfo_arrow').
D:\Mes Projets Mobile\OSM 4\Android\Generation\res\drawable\btn_moreinfo_3.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/moreinfo_arrow').
Partager