imageView

You must Login before you can answer or comment on any questions.

Hi,

I see that when you specify height for imageView. the width is automatically calculated. but when you specifiy the width, the height is not calculated...

have you any information about that. i want to display photos like this : http://dzmob.net/photos2.png

3 Answers

refer http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.UI.ImageView-property-height I think this can help you,You can use auto property but as it is deprecated , can set Titanium.UI.SIZE

I have used ImageView with declaration of only width of the image and shows the image with its by default height.

var footer_banner=Ti.UI.createImageView({ image:'Banner.jpg', top:1100, left:60, width:'920' });

What is the exact thing you are looking for?Do you want to set the height = size of the actual image?can you give more details so that i can help you

— answered 8 months ago by Jyoti Gupta
answer permalink
1 Comment
  • thanks...i solved the problem. it is a bug from titanium.. here is my solution :

    http://developer.appcelerator.com/question/142886/image-object

    thanks.

    — commented 8 months ago by Djamel ZAHAL

Your Answer

Think you can help? Login to answer this question!