草庐IT

mImageViewWidth

全部标签

Android:ImageView 上的矩阵运算,动画?

我正在使用矩阵来平移/缩放ImageView,设置ImageMatrix后,结果直接显示,是否有任何方式使其动画化?谢谢! 最佳答案 放大将是平移和缩放的组合://zoomsintothecenterofthescreenmZoomIn=newAnimationSet(true);mTranslate=newTranslateAnimation(Animation.ABSOLUTE,0.0f,Animation.ABSOLUTE,-imageViewXCoord/(mScreenWidth/mImageViewWidth),Anim