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

Android: Titanium.UI.backgroundImage Not Implemented

    Details

      Description

      {html}<div><h1>Problem</h1>
      <p>iOS supports both Titanium.UI.backgroundImage and
      Titanium.UI.backgroundColor. Android only supports backgroundColor.
      I also looked at UIModule.java to verify that setBackgroundColor
      exists, but setBackgroundImage does not exist (therefore, it is not
      implemented).</p>
      <h1>Solution</h1>
      <p>Add support for backgroundImage to Android, and clarify this
      feature in the documentation.</p>
      <h1>Associated Documentation</h1>
      <p><a href=
      "http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI-module.html">
      http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI-...</a></p>
      <h1>Sample Code</h1>
      <p>The following will show a red background with a transparent
      background over it for iOS. Android only shows a red background.
      Also note that if you comment out the background color, nothing
      will show up for Android.</p>
      <pre>
      <code class="javascript">Ti.UI.backgroundColor = '#f00';
      Ti.UI.backgroundImage = 'KS_nav_ui.png';

      var win = Ti.UI.createWindow();
      win.open();</code>
      </pre>
      <h2>Associated Helpdesk Ticket</h2>
      <p><a href=
      "http://developer.appcelerator.com/helpdesk/view/75321">http://developer.appcelerator.com/helpdesk/view/75321</a></p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              dthorp Don Thorp
              Reporter:
              dtoth Dawson Toth
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration