[AC-3237] Alloy widget assets directory structure seems reversed...a little counterintuitive.
GitHub Issue | n/a |
Type | Improvement |
Priority | n/a |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-02-07T01:27:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy |
Labels | alloy, assets, directory |
Reporter | Senica Gonzalez |
Assignee | Tony Lukasavage |
Created | 2013-02-04T10:13:12.000+0000 |
Updated | 2016-03-08T07:57:38.000+0000 |
Description
I created an Alloy widget (right click > New > Alloy Widget). Then under assets I created a subfolder called categories then a subfolder called error so it looks like ASSETS > CATEGORIES > ERROR. I was trying to access a file in the error directory called error.png but it kept coming up blank. So I looked in the resources directory and the directory structure seemed backwards. See the image attached. It was essentially RESOURCES > CATEGORIES > ERROR > COM.[widget name] > error.png
It's a little counterintuitive. Could each widget not have their own directory structure instead of sharing?
Attachments
The reason it is structured in this manner is so that you can take advantage of Titanium's platform-specific folders. If they are structured in this way, you can easily make use of the android, iphone, and mobileweb folders with a widget while still preventing the chance of filename collisions.