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

Android: ImageView: 'Autorotate' property behavior should match on iOS and Android

    Details

      Description

      Steps to Reproduce:
      1. Create an application with code below and launch the application
      2. Click and verify Tab 1, Tab 2 and Tab 3.

      Actual:
      1. In Tab 1, image appears in portrait mode on both iOS and Android
      2. In Tab 2, image appears in landscape mode on iOS but appears in potrait on Android
      3. In Tab 3, image appears in potrait mode on iOS but appears in landscape on Android

      Expected: Should match the image autorotate properties on iOS and Android.

      var win1 = Titanium.UI.createWindow({
          backgroundColor:'white',
          title:'AUTOROTATE - TRUE'
       });
       var image1 = Ti.UI.createImageView({
           autorotate: true,
           image: 's2.jpg'
       })
         
       win1.add(image1);
       var win2 = Titanium.UI.createWindow({
           backgroundColor:'white',
           title:'AUTOROTATE - FALSE'
       });
       var image2 = Ti.UI.createImageView({
           autorotate: false,
           image: 's2.jpg'
       })
       win2.add(image2);
       var win3 = Titanium.UI.createWindow({
           backgroundColor:'white',
           title:'AUTOROTATE - UNDEFINED'
       });
       var image3 = Ti.UI.createImageView({
           image: 's2.jpg'
       })
       win3.add(image3);
        
       var tab1 = Ti.UI.createTab({
           title:'TAB1',
           window:win1
       })
       var tab2 = Ti.UI.createTab({
           title:'TAB2',
           window:win2
       })
       var tab3 = Ti.UI.createTab({
           title:'TAB3',
           window:win3
       })
       
       var tabGrp = Ti.UI.createTabGroup();
       tabGrp.addTab(tab1);
       tabGrp.addTab(tab2);
       tabGrp.addTab(tab3);
       tabGrp.open();
      

        Attachments

          Activity

            People

            • Assignee:
              ayeung Allen Yeung
              Reporter:
              djha Dhirendra Jha
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration