
由于我的触摸/缩放代码取决于矩阵比例类型,因此无法从矩阵更改scaletype.
activity_main.xml中
<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"androID:orIEntation="vertical"tools:context=".ActivityHome" ><mytouchImageVIEwandroID:ID="@+ID/imgVIEw"androID:layout_wIDth="wrap_content"androID:layout_height="wrap_content"androID:layout_gravity="center_horizontal"androID:layout_marginleft="0dp"androID:layout_margintop="0dp"androID:scaleType="matrix" /></relativeLayout>
但是,这就是我得到的:
解决方法 1-将androID:scaleType =“matrix”更改为androID:scaleType =“fitXY”,这意味着图像将被拉伸以适合父级(ImageVIEw)的所有侧面,但是如果要保留,这将改变其分辨率分辨率使用androID:scaleType =“centerInsIDe”. 总结以上是内存溢出为你收集整理的android:make imageview全屏大小全部内容,希望文章能够帮你解决android:make imageview全屏大小所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)