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

Can't use createDensityScaledBitmap() with 9-patch

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium 3.6.0 android (next version on the master branch)

      Description

      I was looking at the upcoming code changes in the master branch, and noticed that in TiFileHelper$loadDrawable, at the code that handles 9-patch, you create the bitmap using TiUIHelper.createDensityScaledBitmap. Then you pass it to the 9-patch processor.
      If the target density is changed, this will ruin the borders of the 9-patch and the processor will see it as a normal bitmap.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              buddyguards grebulon
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code