缩放到android ImageView的特定部分
我可以缩放缩放到android ImageView的特定部分,android,imageview,zooming,scale,Android,Imageview,Zooming,Scale,我可以缩放RelativeLayout中的图像,它将适合该RelativeLayout。setScaleX和setScaleY方法将比例设置为图像的中心。但如何缩放到图像的特定坐标?我也尝试了setX和setY方法,但当图像缩放时,它们不起作用。图像是在RelativeLayout中设置为背景还是在RelativeLayout中设置为ImageView?@VivekRK它是RelativeLayout中的ImageView是在RelativeLayout中设置为背景还是在RelativeLayo
RelativeLayout
中的图像,它将适合该RelativeLayout
。setScaleX
和setScaleY
方法将比例设置为图像的中心。但如何缩放到图像的特定坐标?我也尝试了setX
和setY
方法,但当图像缩放时,它们不起作用。图像是在RelativeLayout中设置为背景还是在RelativeLayout中设置为ImageView?@VivekRK它是RelativeLayout中的ImageView是在RelativeLayout中设置为背景还是在RelativeLayout中设置为ImageView?@VivekRK它是RelativeLayout中的ImageView