How can I display image in screen center?
I want to display the image like first image but my images are displaying like second image. I want to display images开发者_开发问答 like first image, like center in screen and equal spaces top and bottom look first image, but my images are displaying not center in screen and no spaces in top.
What can I do for display image like first images... Anybody knows,please give solution for that Thanks All
Just set android:scaleType="center"
to your ImageView
for ImageBitmap,
or set android:layout_gravity="center"
to your ImageView
for its layout in his parents.
精彩评论