![]() Crop all images to a 1:1 aspect ratio. Sometimes cover art will not be a square. I never realized this because all covers in my music library are square. This led to many strange bugs that I would rather avoid, so create a new transformation that crops the image to a 1:1 aspect ratio. The reason why we use a transformation is that it won't be dependent on the actual state of the ImageView, which is what would happen if we used ScaleType.CENTER_CROP. In the case that we use a very weird hacky ImageView like in the widgets, doing such would result in any cropping not actually working correctly. It's better to do it in the Transformation stage simply to ensure consistency. |
||
---|---|---|
.. | ||
src | ||
build.gradle | ||
proguard-rules.pro |