本文介绍了如何设置图像的顶部和底部为Android相同的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示在相同尺寸的中心和顶部和底部的形象是指波纹管屏,有谁知道请给code到我...
感谢所有

I want to display image in center and top and bottom in same size refer bellow screens,anybody know please give the code to me...Thanks All

推荐答案

使用

的android:scaleType =centerInside

ImageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE)

这篇关于如何设置图像的顶部和底部为Android相同的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-16 01:53