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

Android: backgroundColor/backgroundImage/backgroundRepeat compositing not working with heavyweight windows

    Details

      Description

      When compositing the backgroundColor and backgroundImage, it works fine with lightweight windows but not with heavyweight windows (unless a view is added specifying the two params). See code samples below. For the heavyweight window, it is ignoring the backgroundColor. Also, setting windowPixelFormat: Ti.UI.Android.PIXEL_FORMAT_TRANSLUCENT has not effect. Might be related to TIMOB-4800.

      NOT WORKING:

      var win = Ti.UI.createWindow({
          backgroundColor: 'orange',
          backgroundImage: 'KS_nav_views.png',
          modal: false,
      });
      win.open();
      

      BOTH OF THESE WORK:
      1. LIGHTWEIGHT:

      var win = Ti.UI.createWindow({
          backgroundColor: 'orange',
          backgroundImage: 'KS_nav_views.png',
      });
      win.open();
      

      2. HEAVYWEIGHT W/ VIEW:

      var win = Ti.UI.createWindow({
          modal: false,
      });
      var view = Ti.UI.createView ({
          backgroundColor: 'orange',
          backgroundImage: 'KS_nav_views.png',
      });
       
      win.add(view);
      win.open();
      

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                bhatfield Benjamin Hatfield (Inactive)
                Reviewer:
                Ping Wang
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration