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

Android: Background Gradient does not work on Ti.UI.Android.CardView

    Details

    • Type: Bug
    • Status: In Review
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 8.2.0, Release 8.1.1
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None

      Description

      Our CI highly relies on card-views to create well-shaped rounded views with a background gradient. Unfortunately, this does not work on Android:

      var win = Ti.UI.createWindow();
       
      var cardView = Ti.UI.Android.createCardView({
          width: 200,
          height: 200,
          backgroundGradient: {
              type: 'linear',
              colors: ['#6AECD5', '#50DBB8'],
              startPoint: { x: '50%', y: 0 },
              endPoint: { x: '50%', y: '100%' },
              backFillStart: false
          }
      });
       
      win.add(cardView);
      win.open();
      

      It works fine on iOS and other views like Ti.UI.View or Ti.UI.Button, but those cannot be used because of the rounded / shadowed combination.

        Attachments

          Activity

            People

            • Assignee:
              ybanev Yordan Banev
              Reporter:
              hknoechel Hans Knöchel
              Reviewer:
              Gary Mathews
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code