RoundedImageView icon indicating copy to clipboard operation
RoundedImageView copied to clipboard

Supported Multiple nonzero corner radii.

Open xxjy opened this issue 6 years ago • 2 comments

xxjy avatar Jul 08 '19 11:07 xxjy

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?

vinc3m1 avatar Jul 08 '19 22:07 vinc3m1

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.

http://androidxref.com/2.2.3/xref/frameworks/base/graphics/java/android/graphics/drawable/GradientDrawable.java#310

I can modify the code if it is necessary to only use the path API when different radii are specified.

xxjy avatar Jul 09 '19 03:07 xxjy