如何根据屏幕分辨率和大小调整图像视图视图、图像、根据、大小

2023-09-04 04:15:06 作者:戒烟戒酒不戒你

我想根据屏幕分辨率和大小来调整图像视图。怎么做?我搜索android开发教程..但它是没有用的..请帮助..这是我的小项目。

I want to resize image view according to screen resolution and size. How to do it? I searched android development tutorials.. but it is useless.. pls help.. It's for my mini project..

推荐答案

您可以尝试缩放图像以X,Y通过设置坐标:

You can try to scale the image to X,Y coordinates by setting:

android:scaleType="fitXY"

属性。