Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-4518

Android: defaultImage doesn't appear when a remote image is loading on a ImageView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 1.7.0, Release 1.7.1
    • Fix Version/s: Sprint 2011-37
    • Component/s: Android
    • Environment:

      Google API Android 2.2

      Description

      When I click the button, its event creates 20 remote images. The issue is happened when the images are
      loading but the defaultImage doesn't show.

      app.js

       
      var win = Titanium.UI.createWindow({
        backgroundColor:'white'
      });
      var view = Ti.UI.createView({
        backgroundColor:'blue',
        top:10,
        bottom:10,
        right:10,
        left:10
      });
       
      var button = Titanium.UI.createButton({
         title: 'Click',
         top:230
      });
       
      button.addEventListener('click',function(e)
      {
        for (var i=0; i<30; i++)
        {
            var tempImage = Titanium.UI.createImageView({
              defaultImage:"android.png",
              image:'http://www.hetemeel.com/einsteinshow.php?text=test' + i.toString(),
              top:20,
              width:200,
              height:150
            });
            view.add(tempImage);
        }
      });
      view.add(button);
      win.add(view);
      win.open();
      

      Associated Helpdesk Ticket:

      http://support.appcelerator.com/tickets/APP-773771

      Associated Jira Ticket

      http://jira.appcelerator.org/browse/TC-91

        Attachments

          Activity

            People

            • Assignee:
              ayeung Allen Yeung
              Reporter:
              mvizcaino Miguel Vizcaino
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-3857
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration