画面中的ImageView android的拉伸 [英] the picture is stretched in imageview android

查看:237
本文介绍了画面中的ImageView android的拉伸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使动画与两张图片,但他们steretched。当我打开这个形象像imageView- SRC一切正常(图片1),但是当我运行动画 - 它steretced(图片2)

i want to make animation with two pictures, but they are steretched. When i open this image like src in imageView- all is ok(image 1) , but when i run animation - it steretced(image 2).

<ImageView
    android:id="@+id/iv_exercise_info"
    android:layout_width="fill_parent"
    android:layout_height="238dp"
    android:layout_gravity="center" />

我尝试设置scaleType fitXY,但它并不能帮助我。索里我的英语水平。

I try to set scaleType fitXY, but it does not help me. Sory for my english.


推荐答案

使用如下: -
    机器人:ID =@ + ID / iv_exercise_info
    机器人:layout_width =FILL_PARENT
    机器人:layout_height =238dp
    机器人:ScaleType =CENTER

Use following :- android:id="@+id/iv_exercise_info" android:layout_width="fill_parent" android:layout_height="238dp" android:ScaleType="CENTER"

这篇关于画面中的ImageView android的拉伸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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