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

Android: Nine-patch images not displayed when placed in density-specific folder

    Details

      Description

      To reproduce:

      1. Create a project: ti create -p android -n nine --id test.nine -d .
      2. Replace app.js code by:

          var win = Titanium.UI.createWindow({  
              backgroundColor:'#fff'
          });
       
          var view = Ti.UI.createView({
              width: 100,
              height: 100,
              backgroundImage: '/images/foo.png'
          });
       
          win.add(view);
       
          win.open();
          

      3. Place the attached (or any) image in /images/foo.9.png
      4. Run the project to confirm it works.
      5. Move the image to /android/images/foo.9.png
      6. Run the project again to confirm it works.
      5. Move the image to /android/images/res-mdpi/foo.9.png (or any other density-specific folder)
      6. Run the project again to confirm it does not work.

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              fokkezb Fokke Zandbergen
              Reviewer:
              Allen Yeung
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code