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

Android: Cannot use elevation and translation properties with border properties

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 5.1.0, Release 5.0.0, Release 6.1.1, Release 8.2.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Titanium SDK 5.0.0.GA and Titanium SDK 5.1.0.v20150917165223
      Android 6.0 (API 23) and Android 5.0 (API 21)
      Genymotion "Google Nexus 7 - 5.0.0 - API 21 - 800x1280"
      Nexus 5 w/ Android 5.0

      Description

      REPRODUCTION:
      Run the code below in the Genymotion Emulator or device.

      RESULTS:
      The View with the borderColor property is not elevated. If you omit the translationX property, the entire square will be white. Seems the border is cutting off the translated view.

      var win = Ti.UI.createWindow({
          layout: 'vertical',
          backgroundColor: '#cccccc'
      });
       
      var view1 = Ti.UI.createView({
          top: 25,
          elevation: 50,
          backgroundColor: 'white',
          height: 100,
          width: 100,
          translationX: -25
       
      });
       
      var view2 = Ti.UI.createView({
          top: 25,
          elevation: 50,
          backgroundColor: 'white',
          height: 100,
          width: 100,
          borderColor: 'black',
          translationX: -25
      });
       
      win.add(view1);
      win.add(view2);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              lchoudhary Lokesh Choudhary
              Reporter:
              bhatfield Benjamin Hatfield (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration