Changes
Jump to navigation
Jump to search
Line 1:
Line 1:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Development Team/Almanac/sugar.graphics.icon (view source)
Revision as of 12:45, 10 July 2008
, 12:45, 10 July 2008no edit summary
=== Where do I put images for icons so that they can easily be referenced in my code? ===
In your main activity bundle directory, you should have a subdirectory called 'icons'. In this directory, place any image files (usually in svg) format and then you can refer to those images by using the filename without the extension. For example, the activity containing the files below could refer to the following images for use with icons: 'edit-custom', 'ok-button', 'next-page' and 'prev-page'.
<pre>
Annotate.activity
|-- activity
| |-- activity-annotate.svg
| `-- activity.info
|-- icons
| |-- edit-custom.svg
| |-- next-page.svg
| |-- ok-button.svg
| `-- prev-page.svg
</pre>
= Class: Icon =
= Class: Icon =