Android: What is the difference of TextureView's setTransform() and setScaleX/Y()?
问题 I am using TextureView for displaying graphical video content. As the MediaCodec will render the content occupying the whole of the TextureView, so I need to scale it to keep the aspect ratio of the original content. We know that TextureView has its own method of transforming: setTransform(android.graphics.Matrix) And also two other methods inherited from View class: setScaleX (float scaleX) setScaleY (float scaleY) Both can be used to achieve the same purpose. However, I noticed some