Hello
I've made test application to add multi pictures above each others
my problem started after Titanium.Media.openPhotoGallery success and bring the image
so when i create first imageView and append it dynamically to the screen its working perfect
--> but after than if I've selected another image from the gallery and append it to the screen its become to much smaller and has large Black background ,
-> after second image the third and the forth become smaller and smaller when
so only the first imageView working well , after first imageView the rest become smaller each time i select picture from gallery
any advice ?
this is my simple code
//fix max width and height var width = ( photo.width > Alloy.Globals.editorScreen.width) ? Alloy.Globals.editorScreen.width/2 : photo.width;
//create imageView
var imageView = Ti.UI.createImageView({ backgroundColor : 'transperant',
height : 'auto',
width : width,
image : 'location',});
//make this image dragable
var dragabel = Alloy.Globals.drag.createView({width: Ti.UI.SIZE,
degree : 0,
height :Ti.UI.SIZE,});
//when drag end save x and y
dragabel.addEventListener('end', function(e){
this.left = e.left;
this.top = e.top;
});
//ability to drag Text
dragabel.add(imageView);
//Add Dragabel layout to screen
Alloy.Globals.editorScreen.add(dragabel);
imageView.image = photo;