I have wrapped an Android library (FloatingActionBar Library) with ressources.
The package name of the library is de.amberhome.objects.floatingactionbutton so I add the ressources to a B4A project with:
The library references a drawable named "shadow" so there are several shadow.png files in the res/drawable-xxxx folders of the library.
I have thought that because of the package name the library will always use the drawables from its corresponding ressource folder.
Now a user has added some resource files to the projects Objects/res/drawable-xxx folders (read only). Unfortunately he added a shadow.png file there. Now the library started to use the wrong resource file from the Objects/res path and not from the res path given with the #AdditionalRes attribute.
Why? I really thought that because of the package name always the right resource file would be used. With this behavior in mind it may give conflicts if many libraries are added with resources and two libraries have resource files with the same name.
The package name of the library is de.amberhome.objects.floatingactionbutton so I add the ressources to a B4A project with:
B4X:
#AdditionalRes: C:\Users\stm\Dropbox\Basic4Android\CustomLibsRes\b4a_floatingactionbutton, de.amberhome.objects.floatingactionbutton
The library references a drawable named "shadow" so there are several shadow.png files in the res/drawable-xxxx folders of the library.
I have thought that because of the package name the library will always use the drawables from its corresponding ressource folder.
Now a user has added some resource files to the projects Objects/res/drawable-xxx folders (read only). Unfortunately he added a shadow.png file there. Now the library started to use the wrong resource file from the Objects/res path and not from the res path given with the #AdditionalRes attribute.
Why? I really thought that because of the package name always the right resource file would be used. With this behavior in mind it may give conflicts if many libraries are added with resources and two libraries have resource files with the same name.