RoundedImageView
RoundedImageView copied to clipboard
Supported Multiple nonzero corner radii.
Nice, though I wonder if the hardware acceleration support for path is different from drawRoundRect?
https://developer.android.com/guide/topics/graphics/hardware-accel#scaling
Would be nice to clearly understand the limitations first. Or another option is to only use the path API when different radii are specified?
The project may not involve Canvas scaling, I tested it properly on device API16.
In addition, I found the drawPath in GradientDrawable to achieve rounded corners.
I can modify the code if it is necessary to only use the path API when different radii are specified.