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

Android: ImageView.image from XHR no longer shows new image

    Details

      Description

      After installing SDK 3.1.3.v20130913160104 to verify the fix for TIMOB-14777

      i.e. https://github.com/appcelerator/titanium_mobile/pull/4657

      I have found that setting the .image property on an ImageView does not show the actual image.

      Here's a reduced repro (that can be placed into FirstView.js after creating a new project, for example):

      var win = Ti.UI.createWindow();
      function FirstView() {
          var imageView = Ti.UI.createImageView();
           
          var xhr = Ti.Network.createHTTPClient();
          xhr.onload = function() {
              imageView.image = xhr.responseData;
          };
           
          xhr.open('GET', 'http://nicj.net/wd-icon-small.png');
          xhr.send();
           
          return imageView;
      }
      var v = FirstView();
       
      win.add(v);
      win.open();
      

      On SDK 3.1.2, the logo shows up.

      On SDK 3.1.3.v20130913160104, the logo does not show up.

      The XHR.onload event does fire, but it appears setting imageView.image has no effect.

      I suspect that it may be related to the fix I mention TIMOB-14777.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwang Ping Wang
                Reporter:
                nicjansma Nic Jansma
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration