80,349
社区成员
发帖
与我相关
我的任务
分享
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<ImageView
android:id="@+id/imageView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/example"
android:background="@drawable/background"
android:scaleType="matrix" />
</RelativeLayout>
float scale = newDist/oriDis;
matrix.postScale(scale, scale, midPoint.x, midPoint.y);
view.setImageMatrix(matrix);