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

Android: backgroundGradient on heavyweight window force-closes app

    Details

      Description

      Expected results

      Per the changes in TIMOB-1124, I should be able to set a backgroundGradient on a heavyweight Android window (i.e. in a tab group or purposely set)

      Actual results

      Causes force-close. Works as expected on lightweight window.

      // comment out navBarHidden and the following will work
      var win = Titanium.UI.createWindow({  
          title:'Gradients',
          navBarHidden: false,
          backgroundGradient: {
              type: 'linear',
              startPoint: { x: '0%', y: '0%' },
              endPoint: { x: '100%', y: '100%' },
              colors: [ { color: '#fff', offset: 0.0}, { color: '#444', offset: 0.5 }, { color: '#fff', offset: 1.0 } ]
          }
      });
      var linearGradient = Ti.UI.createView({
          top: 10,
          width: 100,
          height: 100,
          backgroundGradient: {
              type: 'linear',
              startPoint: { x: '0%', y: '50%' },
              endPoint: { x: '100%', y: '50%' },
              colors: [ { color: 'red', offset: 0.0}, { color: 'blue', offset: 0.25 }, { color: 'red', offset: 1.0 } ]
          }
      });
      win.add(linearGradient);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sunila Sunila
                Reporter:
                skypanther Tim Poulsen
                Reviewer:
                Allen Yeung
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code