Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3025] Android: UI - density-based images don't work on buttons & annotations

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-12-25T09:15:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterTaazza GO
AssigneePaul Dowsett
Created2011-12-24T03:46:37.000+0000
Updated2016-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 in Resources/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.

Discussions

* my question in the Q&A: [Density-based images don't work on buttons & annotations](http://developer.appcelerator.com/question/129524/density-based-images-dont-work-on-buttons--annotations) * somebody else seems to have faced a similar issue with annotations: [Density specific graphics for Android Map Annotations](http://developer.appcelerator.com/question/123062/density-specific-graphics-for-android-map-annotations)

Comments

  1. Paul Dowsett 2011-12-25

    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.
  2. Paul Dowsett 2011-12-25

    Please also complete the missing information, denoted by the question marks. Thanks
  3. Paul Dowsett 2012-02-17

    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

JSON Source