I'm create a Image View using of com.github.chrisbanes.photoview.PhotoView
I wanna to set rounded corner programmatically of this photoview.
If You know other library which is help me to pinch to zoom image and i set rounded corner as well then suggest me.
Asked
Active
Viewed 165 times
0
Akash Attal
- 61
- 8
-
You can wrap PhotoView in Cardview and give it rounded corners. – EraftYps Jun 14 '20 at 11:54
-
@user667634 i already use photoview into cardview but when i save image storage. then the rounded corners not showing – Akash Attal Jun 14 '20 at 12:40
-
Well, that only displays the rounded corner image in the ImageView. It'll not save it to the storage. You'll need some sort of image processing to achieve that. – EraftYps Jun 14 '20 at 12:58
-
https://stackoverflow.com/a/60058794/2016562 – Gabriele Mariotti Jun 14 '20 at 14:36