Reputation: 9583
i have to add a number images to the view. the images i have from the designer are of correct size. it would speed up my work if i don't have to manually size each image-view as per size of the image and then select the image ( which anyways contains the right dimensions )
is there a way in which i can put an image-view of any size select image property and then select an option that would resize the image-view as per image
Upvotes: 0
Views: 56
Reputation: 8772
You can set their content mode to a position like center, left, right, top, bottom... That way the image will keep its original size.
You just need to make sure that the imageview is large enough to display the image, so it doesn't get cropped.
I don't know exactly what your designer provides you in terms of position of the elements, but it's probably the top left position, so use the Top Left mode so that the image within the imageview hugs the top left corner and keeps its original size.
Upvotes: 1