Android图像视图和矩阵

Android图像视图和矩阵,android,matrix,imageview,Android,Matrix,Imageview,我正在使用imageview显示图像库中的图像 不确定,但我的图像有点扭曲和倾斜 我试过缩放型FITXY,但它不能保持纵横比 原始图像是 我现在拥有的是 我想有类似的 我正在使用下面的XML <ImageView android:id="@+id/imageview1" android:layout_width="80dp"

我正在使用imageview显示图像库中的图像

不确定,但我的图像有点扭曲和倾斜

我试过缩放型FITXY,但它不能保持纵横比

原始图像是

我现在拥有的是

我想有类似的

我正在使用下面的XML

 <ImageView
                            android:id="@+id/imageview1"
                            android:layout_width="80dp"
                            android:layout_height="76dp"
                            android:src="@drawable/ic_add_a_photo_black_361px"
                            android:background="@drawable/back"
                            android:scaleType="matrix"
                            android:layout_marginRight="20dp"
                            android:layout_marginBottom="20dp"
                            />

任何帮助都将不胜感激。

尝试使用android:adjustViewBounds=“true”

例如

<ImageView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:adjustViewBounds="true"
    />


看到了吗?

有矩阵还是没有?没有任何比例?为什么使用矩阵我不确定…我想对图像进行一点缩放…文档用于
FIT_XY
FIT_XY使用FILL
缩放图像,对于
FILL
在X和Y中独立填充比例,以便src与dst精确匹配。这可能会改变src的纵横比。
谢谢您提供的信息。。我一直在处理图像问题很长时间了,实际上我是android开发的新手。我希望你们能指导我
<ImageView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:adjustViewBounds="true"
    />