We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 616115e commit 28fc432Copy full SHA for 28fc432
1 file changed
notes/深入理解Android中的Matrix.md
@@ -99,7 +99,6 @@ public class SimpleCustomAnimation extends Animation {
99
100
@Override
101
protected void applyTransformation(float interpolatedTime, Transformation t) {
102
- Matrix matrix = t.getMatrix();
103
Matrix matrix = t.getMatrix();
104
matrix.preScale(interpolatedTime, interpolatedTime);//缩放
105
matrix.preRotate(interpolatedTime * 360);//旋转
@@ -117,7 +116,7 @@ public class SimpleCustomAnimation extends Animation {
117
116
118
实际上这几行代码用矩阵来表示就相当于如下所示:
119
120
-
+
121
122
关于代码的作用上边已经给出了注释,这里就不多写了。主要还是要弄明白 Matrix 复合变换中 pre 、 post 等操作与其对应的矩阵发生的左乘、右乘变化。
123
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments