开发者

How can I display image in screen center?

How can I display image in screen center?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜