[AC-3025] Android: UI - density-based images don't work on buttons & annotations
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2011-12-25T09:15:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Taazza GO |
Assignee | Paul Dowsett |
Created | 2011-12-24T03:46:37.000+0000 |
Updated | 2016-03-08T07:48:03.000+0000 |
Description
Problem
Using the instructions in the wiki guide at [Using density-specific resources on Android](https://wiki.appcelerator.org/display/guides/Using+density-specific+resources+on+Android), I added my icons inResources/android/images/res-mdpi/media/icons/
.
I see that all the icons are getting copied to the build/android/res/drawable-mdpi
directory correctly but when I run the app the icons which were used on buttons & as annotation markers don't show up.
The following results in a transparent button:
Ti.UI.createButton({image: '/images/media/icons/buttonicon.png'})
Similarly, the following results in a transparent annotation which is clickable, but not visible:
Ti.Map.createAnnotation({image: '/images/media/icons/marker_pin.png'})
All other density-specific icons used in the app work correctly.
Taazza In order for me to escalate this to the core team, the test case must run without modification, as per the [Creating a Test Case](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase). Also, despite a community member attempting to assist you [in the Q&A](http://developer.appcelerator.com/question/129524/density-based-images-dont-work-on-buttons--annotations), you have not responded to his questions. Please go back and make certain that you have exhausted this route to resolving this issue. I will close this for now. Please reopen the ticket once it is complete, and I will move it to the main project.
Please also complete the missing information, denoted by the question marks. Thanks
Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) to ensure that we can escalate it quickly. Read [How to Submit a Bug Report](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report) if you have not read it before, and always start a ticket using the [JIRA Ticket Template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template). Thanks in advance