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

Android: ImageView parity on Android, not rendering the image as expected

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: Release 3.0.2
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium Studio: 3.0.2.201302191606,
      SDK: 3.0.2.GA,
      Devices: Nexus 4(4.2), Droid3(2.3.4)

      Description

      While testing image rendering from a URL using the following code with imageView properties set to width: Ti.UI.FILL and height: Ti.UI.SIZE, there is a parity on how the image is being rendered on Android.
      Please see the attached screenshots for parity on Android vs iOS.
      This is not a regression. Also occurs on 3.0.0.GA and 2.1.4.GA.

      Steps to reproduce:
      1. Create a Titanium app in the Studio
      2. Copy the following code in the app.js
      3. Build the app using SDK: 3.0.2.GA on an Android device

      Ti.UI.backgroundColor = 'white';
         var win =Ti.UI.createWindow({
         });
         var view = Titanium.UI.createScrollView({
          layout: 'vertical',
          backgroundColor:'white',
          scrollType:'vertical'
         });
         win.add(view);
         var numObjects=10;
         for (var i = 0; i <numObjects; i++ ) {
         var image = Ti.UI.createImageView({
          image:'http://static.appcelerator.com/images/header/appc_logo.png',
          backgroundColor: 'black',
          width: Ti.UI.FILL,
          height: Ti.UI.SIZE
         });
         view.add(image);
         }
         //eval(name+myString);
         Ti.API.info("image"+ i);
         Ti.API.info(JSON.stringify(image));
         win.open();
      

      Actual result:
      The Appcelerator logo is not being scaled correctly.

      Expected result:
      The Appcelerator logo should be scaled correctly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                sguduru Smitha Guduru
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration