Hi, I have to show a image in vertically center on the screen. The image is originally of big size, but I reduce it and display it. Problem is I have to maintain the ratio of the image like example. Original image is of 200 X 400, then I might reduce it 100 X 200. Again if Image is of 500 X 200 then I might reduce it 250 X 100.
Problem is that My Image doesn't have fixed width or height. How can i keep it such a way that Whenever image loads it should be vertically centered. I tried setting android:layout_centerVertical in xml, but it doesn't work as in xml I have to pass layout height and width. But as i said my height / width of image is not fixed. Please help me with this case. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en