Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4900] view images (for tabs of custom tabBar) not displayed in Tweetanium when FastDev enabled

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-02-06T18:29:12.000+0000
Affected Version/sRelease 1.7.0, Release 1.7.2
Fix Version/sn/a
ComponentsAndroid
Labelslook1
ReporterErik Beugelaar
AssigneeBill Dawson
Created2011-07-04T15:08:32.000+0000
Updated2017-03-17T18:29:12.000+0000

Description

When FastDev server is running, images (on/off) of the tabbar in Tweetanium are not displayed. If the FastDev property is set to false in tiapp.xml, all images are displayed. See [ApplicationWindow.js](https://github.com/appcelerator-titans/tweetanium/blob/master/mobile/Tweetanium/Resources/tweetanium/ui/ApplicationWindow.js) Before running the project I removed the build directory and cleaned the project. The project is installed in the default Titanium workspace folder in Windows 7. In my case the first time doesn't show the images in the tabbar, only the one in the top-right corner (after closing the Account window) is showed correctly. Setting the property "ti.android.fastdev" to false in tiapp.xml solved the problem. I also find a workaround to work with FastDev server enabled by copying the tabbar images to the platform specific directory of Android (Recources/android/images/res-hdpi etc.)

Attachments

FileDateSize
screenshot-1.jpg2011-07-11T06:28:37.000+000033092
screenshot-2.jpg2011-07-11T06:30:46.000+000033092

Comments

  1. Erik Beugelaar 2011-07-05

    FastDev has some strange behaviours. All images in project Tweetanium are referenced via path 'images\...' This works for the header view but fails for the tabbar button images. If I move the tabbar images to Resource\android\images\res- folders, the images are shown correctly. I have no idea why this happens only for the tabbar images in ApplicationWindow.js
  2. Paul Dowsett 2011-07-09

    Erik Please try the latest Continuous Build 1.7.X, and state the Titanium SDK build date and hash in the environment field. Then I will be happy to move this over. Cheers
  3. Paul Dowsett 2011-07-09

    Please also state the exact Android version tested. Please see the [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist) to find out what is required when raising tickets. Thanks
  4. Erik Beugelaar 2011-07-11

    Tabbar icons are not displayed when FastDev is enabled.
  5. Erik Beugelaar 2011-07-11

    Hi Paul, I have tested with: - Titanium Studio, build: 1.0.1.201106171427. Build date: 17 June 2011, 14:29:22 - Titanium mobile SDK, build 1.7.2.v20110707155439, sha1: c31bc0109c7d6fed707882c39b6d99a91a979ba1 - Android SDK 2.2 Before running the project I removed the build directory and cleaned the project. The project is installed in the default Titanium workspace folder in Windows 7. In my case the first time doesn't show the images in the tabbar, only the one in the top-right corner (after closing the Account window) is showed correctly. Setting the property "ti.android.fastdev" to false in tiapp.xml solved the problem. I also find a workaround to work with FastDev server enabled by copying the tabbar images to the platform specific directory of Android (Recources/android/images/res-hdpi etc.) Maybe the problem is a referral/copying of resources issue. Regards, Erik
  6. Paul Dowsett 2011-08-05

    Erik Thank you for your update - it was useful. I have amended the ticket. Would you kindly read the [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist) and bear the following notes in mind when raising your next ticket? * tickets really need a proper usecase, in the body of the ticket, as explained in [Creating Good Use-cases](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases) * all the definitive information should be in the main body of the ticket, so the issue is clearly defined for the core devs. I have moved the ticket to the proper project now though. Thanks for bring this issue to our attention. Cheers
  7. Paul Dowsett 2011-08-05

    btw, the two screenshots look identical to me. Am I overlooking something?
  8. Erik Beugelaar 2011-08-05

    Hi Paul, No you are not overlooking something. It's my fault. I uploaded the same picture twice. My apologizes for that. Cheers, Erik
  9. Bill Dawson 2012-02-06

    Work was done in TIMOB-7507.
  10. Lee Morris 2017-03-17

    Closing ticket as duplicate.

JSON Source