Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-6649

Android: elevation on View with custom edge radii renders incorrectly

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Component/s: Titanium SDK & CLI
    • Labels:
    • Environment:

      Android; 9.2.2.GA; 9.3.0.GA

      Description

      When you set the elevation of a view with multiple values for borderRadius the elevation shadow doesn't follow the borderRadius. This does work correctly when you set the borderRadius to a single value.

      To reproduce

      1. Run the code on a Android device/emulator

      var window = Ti.UI.createWindow({
      	backgroundColor: 'white'
      });
       
      window.add(Ti.UI.createView({
      	top: 0,
      	height: 120,
      	backgroundColor: 'green',
      	borderRadius: "0 0 60 60",
      	elevation: 5
      }));
       
      window.open();
      

      Expected behaviour

      The elevation shadow follows the view border.

      Actual behaviour

      The elevation shadow renders as if the view is rectangular.

        Attachments

          Activity

            People

            • Assignee:
              amukherjee Abir Mukherjee
              Reporter:
              teunklijn@telfort.nl Teun Klijn
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Integration