problem with image inside view

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

Hi, When I add a imageview in a view(with width and height)... the image lost quality...the same thing happend if I add a label to the view..

only if the view not have defined size works normally.

Anybody have a solution for this ?

— asked 2 years ago by Javier Rubio
1 Comment
  • Please post a minimal usecase showing the issue. This will make it more likely that the question gets an answer.

    — commented 2 years ago by Sindre Sorhus

1 Answer

try this ::

var imageview = Ti.UI.createImageView({
height : 'auto'
width : 'auto'
size:{
height : 60,
width : 60
},
canScale: true
});
this code will only work for imageView.Please vote this answer if it works.

Your Answer

Think you can help? Login to answer this question!