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

Android: backgroundRepeat returns black view when using density images (xhdpi, hdpi etc...)

    Details

      Description

      So I was trying to repeat a background, which always works. But when using density images (xhdpi, hdpi etc...) it's not working. It returns a black view.
      To reproduce:
      Put an image in your Resources directory, according to the docs: https://wiki.appcelerator.org/display/guides/Using+density-specific+resources+on+Android

      I have this code:

      app.js

      var win = Ti.UI.createWindow({
      	navBarHidden : true,
      	exitOnClose : true
      });
      var logo = Ti.UI.createView({
      	left : 0,
      	top : 0,
      	right : 0,
      	height : "44dp",
      	zIndex : 3,
      	backgroundImage : "/images/barbg.png",
          backgroundRepeat : true
      });
      win.add(logo);
      win.open();
      

      The view will be black instead of a repeated image.

      Thanks!

        Attachments

          Activity

            People

            • Assignee:
              pwang Ping Wang
              Reporter:
              peterwilli Peter Willemsen
              Reviewer:
              Hieu Pham
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration