Uploaded image for project: 'Documentation'
  1. Documentation
  2. TIDOC-648

APIDoc: Document interaction of backgroundImage, backgroundColor, and windowPixelFormat on Android

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 2.0.1
    • Fix Version/s: 2013 Sprint 04, Release 3.1.0
    • Component/s: APIDoc
    • Labels:
      None

      Description

      On Android, backgroundImages are not composited with backgroundColor unless the window pixel format is set, like:

      var pixelFormat = "";
      if (Ti.Platform.name === "android") {
      	pixelFormat = Ti.UI.Android.PIXEL_FORMAT_TRANSLUCENT;
      }
      var win = Ti.UI.createWindow({
      	title : "Transparency Test",
      	fullscreen : false,
      	windowPixelFormat: pixelFormat
      });
      

      As reported in a Q&A issue, this causes confusion and should be documented.

      http://developer.appcelerator.com/question/137402/views---png-with-backgroundcolor

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhatfield Benjamin Hatfield (Inactive)
                Reporter:
                aevans Arthur Evans
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 hours
                  3h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes Time Not Required
                  30m

                    Backbone Issue Sync

                    • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                      Git Integration