Android Example ImageView - Circular, Hexagonal, Triangular, Bubble, Star Imageviews (with inline Java code)

Parrots.png
See attached project with inline Java code to create round imageviews. You only need library JavaObject V2.01 to be enabled.
 

Attachments

Last edited:
Yippie!, I did it :)... I had to:
1. Draw a path with a white fill
2. Draw the second path with a slightly lesser dimension..

Thanks a lot @Johan Schoeman...

Took me hours since I'm a bit new to Java o_O
I don't know if that's the standard way though, but I go it to work the way I wanted ;).
View attachment 40281
Well done! Now you have learnt something. There are plenty of ways to skin a cat...
 
Last edited:
Thanks, this is nice and helpful. The bitmap loaded in the heart shaped imageview comes in rotated 90 degrees counterclockwise. Is there a way to maintain same image orientation from original picture?
 
on which device are you testing this?
 
Thanks - this worked great!
 
Back
Top