如何根据屏幕分辨率和大小调整图像视图 [英] How to resize image view according to screen resolution and size

查看:94
本文介绍了如何根据屏幕分辨率和大小调整图像视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想根据屏幕分辨率和大小来调整图像视图。怎么做?我搜索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"

属性。

这篇关于如何根据屏幕分辨率和大小调整图像视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆