android布局图像质量不好 [英] android layout images bad quality

查看:59
本文介绍了android布局图像质量不好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在布局上添加图像时,它显示的质量很差

when I add images on layout it show in bad quality

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ImageView
    android:id="@+id/imageView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/sbackground" />

如何解决?(我只需要以编程方式就可以修复它)

how to fix it? (I need to fix it only without programmatically)

谢谢

推荐答案

我认为您的图片正在拉伸,请使用imageview的属性获取完整图片..

i think your images are stretching use the properties for imageview to get full image ..

 android:scaleType="matrix"

控制如何调整图像大小或移动图像以匹配此ImageView的大小.

Controls how the image should be resized or moved to match the size of this ImageView.

这篇关于android布局图像质量不好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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