Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25049] Different behaviour handling images on iOS and Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.1.1, Release 8.0.1
Fix Version/sn/a
Componentsn/a
Labelsandroid, cut, engReviewed, image, imageView, ios
ReporterFabio
AssigneeUnknown
Created2017-07-20T09:11:45.000+0000
Updated2019-06-04T21:19:22.000+0000

Description

I have a problem when I tried to create a tableview to show articles with a image that should be full-width and with a fixed height. I want that the app put the image in full-width and keep the aspect ratio if the height is bigger that the selected height is should cut the image. In iOS is works well but on android the exactly same code produce a different result. To reproduce the issue you can create a default alloy project and past this code: https://pastebin.com/Aef8yihy -> index.xml https://pastebin.com/e7R4Gmqt - index.tss In attachment I put an image with the different results achieved with the same code on iOS and on Android.

Attachments

FileDateSize
imageissueiosandroid.jpg2017-07-20T09:04:29.000+000038056

Comments

  1. Sharif AbuDarda 2017-08-01

    Hello, I can reproduce the issue for iOS and Android different behavior. Although, Making Image height to "Ti.UI.FILL" in index.tss, will make the image covering the full width (The full image shows in the row, covering the full width and height. ) of the row but not the height cut as in iOS. Thanks.

JSON Source